/* ==========================================================================
   CMO Partners: Sections
   Requires tokens.css and style.css.
   ========================================================================== */

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--c-border);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header { background: var(--c-bg); }
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.header__logo {
  flex: none;
  display: flex;
  align-items: center;
}

/* Height drives the mark; the trimmed viewBox means every pixel of it is
   artwork rather than the ~53% empty canvas the original file carried. */
.header__logo img {
  width: auto;
  height: clamp(32px, 3.2vw, 40px);
}

.header__nav {
  display: none;
  gap: var(--sp-5);
  margin-inline-start: auto;
}

.header__nav a {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  padding-block: var(--sp-2);
  transition: color var(--dur) var(--ease);
}

.header__nav a:hover {
  color: var(--c-text);
}

.header__actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header__cta {
  display: none;
  padding: var(--sp-2) var(--sp-4);
  min-height: 40px;
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .header__nav { display: flex; }
  .header__actions { margin-inline-start: var(--sp-5); }
  .header__cta { display: inline-flex; }
}

/* Burger */
.burger {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
}

/* Must come after the base rule to win on source order */
@media (min-width: 900px) {
  .burger,
  .mobile-menu { display: none !important; }
}

.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--c-text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-menu {
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
  padding: var(--sp-4) var(--gutter) var(--sp-6);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.mobile-menu a {
  padding: var(--sp-3) 0;
  font-size: var(--t-body-lg);
  border-bottom: 1px solid var(--c-border);
}

.mobile-menu .btn {
  margin-top: var(--sp-4);
  border-bottom: none;
  justify-content: center;
}

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

/* One idea per screen: the line, one sentence under it, and a way down.
   Everything that used to sit here (stats, buttons, an eyebrow) either
   repeats further down the page or was noise. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 88svh, 900px);
  padding-block: var(--sp-8);
  overflow: hidden;
}

/* The field lives on the right so it never crosses the headline. */
.hero__field {
  position: absolute;
  inset: 0 -10% 0 38%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.hero__glow {
  position: absolute;
  top: 46%;
  left: 46%;
  width: clamp(180px, 22vw, 320px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: var(--r-full);
  background: radial-gradient(circle, var(--c-pink) 0%, transparent 68%);
  opacity: 0.22;
  filter: blur(26px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* It is punctuation, so it is text: Pink Ink, not Signature Pink.
   Signature Pink lands at 2.98:1 here, just under the 3:1 large-text floor. */
.hero__dot {
  color: var(--c-pink-ink);
}

.contour__svg {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.contour__field path {
  fill: none;
  stroke: var(--c-contour);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* Slow drift so the field feels alive without asking for attention */
.contour__field {
  animation: contour-drift var(--dur-contour) ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes contour-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-1.5%, -1%, 0) scale(1.03); }
}

/* Bigger than the section scale. This line is the whole screen. */
.hero__title {
  font-size: clamp(2.5rem, 1.2rem + 5.6vw, 5rem);
  line-height: 1.06;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
}

.hero__lead {
  font-size: var(--t-body-lg);
  line-height: 1.55;
  color: var(--c-text-muted);
  max-width: 34ch;
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-top: clamp(3rem, 1rem + 8vw, 7rem);
}

.hero__index {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
}

.hero__index span {
  color: var(--c-pink-ink);
  font-variant-numeric: tabular-nums;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  padding-block: var(--sp-2);
  transition: color var(--dur) var(--ease);
}

.hero__scroll:hover {
  color: var(--c-text);
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: var(--c-border-strong);
  transform-origin: top;
  animation: scroll-hint 2.4s var(--ease) infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: scaleY(0.35); opacity: 0.5; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

@media (max-width: 639px) {
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__scroll { flex-direction: row; }
  .hero__scroll-line { width: 32px; height: 1px; animation: none; }
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust {
  border-block: 1px solid var(--c-border);
  background: var(--c-surface-sunk);
  padding-block: var(--sp-5);
}

.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
}

.trust__label,
.trust__meta {
  font-size: var(--t-cap);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.trust__meta {
  margin-inline-start: auto;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8125rem;
}

.trust__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-7);
}

/* All three files are the light-on-dark versions, so they invert together
   for this light strip. Muted by default: these are endorsements, not
   competing brands on our own page. */
.trust__item img {
  height: var(--logo-h, 24px);
  width: auto;
  filter: invert(1) grayscale(1);
  opacity: 0.62;
  transition: opacity var(--dur) var(--ease);
}

.trust__item:hover img {
  opacity: 1;
}

/* Equal box height is not equal optical weight. These three lockups put wildly
   different amounts of type inside the same frame, so each is sized to land its
   NAME at roughly 15-17px rather than to match the others' outer dimensions:

     SMB Norge    single-line wordmark, type fills the frame  24px -> ~24px type
     Nordic Club  badge + two stacked lines                   44px -> ~15px type
     Diia.City    two-line wordmark                           32px -> ~17px type

   Sizing all three to one height is what made the last two unreadable. */
.trust__item--ncua { --logo-h: 44px; }

/* Every other mark in this strip ships light and is inverted to dark grey.
   The Diia lockup is the exception: it is #101010 already, because
   /people/viktoriia-malovanova uses the same file on a light background with
   no filter at all. Inverting it here would turn it white and it would
   disappear into the strip, so this one only loses its colour. */
.trust__item--diia {
  --logo-h: 40px;
}

.trust__item--diia img {
  filter: grayscale(1);
}

/* --------------------------------------------------------------------------
   Shared section furniture
   -------------------------------------------------------------------------- */

.section__title {
  font-size: var(--t-h2);
  line-height: var(--lh-snug);
  font-weight: var(--fw-semibold);
  max-width: 20ch;
  margin-bottom: var(--sp-4);
}

.section__lead {
  font-size: var(--t-body-lg);
  color: var(--c-text-muted);
  max-width: 60ch;
  margin-bottom: var(--sp-7);
}

/* --------------------------------------------------------------------------
   Statement
   -------------------------------------------------------------------------- */

.statement__title {
  font-size: var(--t-h1);
  line-height: var(--lh-tight);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-6);
}

.statement__grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 800px) {
  .statement__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-7); }
}

.statement__lead {
  font-size: var(--t-body-lg);
  color: var(--c-text-muted);
}

.statement__lead--accent {
  color: var(--c-text);
  padding-inline-start: var(--sp-5);
  border-inline-start: 2px solid var(--c-pink);
}

/* --------------------------------------------------------------------------
   Proof
   -------------------------------------------------------------------------- */

.section--proof {
  background: var(--c-surface-sunk);
  border-block: 1px solid var(--c-border);
}

.proof__grid {
  margin-bottom: var(--sp-7);
}

.proof-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-surface);
}

.proof-card__kicker {
  font-size: var(--t-cap);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-pink-ink);
  margin-bottom: var(--sp-3);
}

/* The product mark sits after the copy, not beside the kicker: the kicker says
   what the card is, the mark signs off whose it is. Black and white so it reads
   as a signature rather than competing with the pink kicker for attention. */
.proof-card__logo {
  margin-bottom: var(--sp-4);
}

/* inline-flex, not inline: an inline <a> adds line-height leading around the
   image, which pushes the hit area off the mark it is supposed to cover. */
.proof-card__logo a {
  display: inline-flex;
}

.proof-card__logo img {
  height: 24px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition:
    filter var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

/* Same behaviour as the integration chips: muted at rest, true brand colour on
   hover. focus-visible is included because the mark is now a link, and keyboard
   users get no hover. Norway requires WCAG 2.1 AA by law, see docs §2. */
.proof-card__logo a:hover img,
.proof-card__logo a:focus-visible img {
  filter: none;
  opacity: 1;
}

.dd-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: none;
}

.dd-logo {
  display: inline-block;
  vertical-align: -3px;
  margin-inline-end: 6px;
  width: 16px;
  height: 16px;
}

.proof-card__title {
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--sp-3);
}

.proof-card__body {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-5);
}

.proof-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}

.proof-card__stats dt {
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 2px;
}

.proof-card__stats dd {
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

/* --- Chip row ------------------------------------------------------------ *
 * The .stack-panel that used to live here is gone: it was the white Ollie
 * block below the proof cards, and Ollie now sits in the Products section.
 * .stack / .stack__item stay, because /services/integrations uses them for the tool
 * chips on every card.
 * -------------------------------------------------------------------------- */

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.stack__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  background: var(--c-bg);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

@media (hover: hover) {
  .stack__item:hover {
    border-color: var(--c-border-strong);
    transform: translateY(-2px);
  }
}

/* Brand marks arrive in every colour and weight. Desaturating them keeps the
   row reading as one list instead of nine competing logos. */
.stack__item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition:
    filter var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.stack__item:hover img {
  filter: none;
  opacity: 1;
}

.stack__item--more {
  color: var(--c-text-muted);
  font-weight: var(--fw-regular);
  border-style: dashed;
}

.pull {
  max-width: 30ch;
  margin-inline: auto;
  text-align: center;
  font-size: var(--t-h3);
  line-height: 1.45;
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.pull::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--c-pink);
  margin: 0 auto var(--sp-5);
}

/* --------------------------------------------------------------------------
   Capabilities
   -------------------------------------------------------------------------- */

/* Two columns from 960px: the heading parks itself while the six services
   scroll past it, and releases when the grid ends. Two things this depends on:
   `align-items: start`, because a stretched grid item fills the row and leaves
   sticky nothing to travel through; and the sticky ancestor being .cap-layout
   rather than the section, which is what makes it let go at the last service.
   The offset matches the site's own scroll-padding so the sticky header never
   covers the title. */
@media (min-width: 960px) {
  .cap-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--sp-7);
    align-items: start;
  }

  .cap-head {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-5));
  }

  /* The title is sized for a full-width row; in a narrow column it wants to
     use the column it has. */
  .cap-head .section__title {
    max-width: 14ch;
    margin-bottom: 0;
  }
}

.cap-list {
  border-top: 1px solid var(--c-border);
}

.cap {
  display: grid;
  gap: var(--sp-3);
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--c-border);
}

@media (min-width: 760px) {
  .cap {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: var(--sp-5);
  }
}

.cap__num {
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: var(--c-pink-ink);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}

.cap__title {
  font-size: var(--t-h3);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-3);
}

.cap__body > p {
  color: var(--c-text-muted);
  max-width: 62ch;
}

.cap__line {
  margin-top: var(--sp-3);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  color: var(--c-text) !important;
}

/* --------------------------------------------------------------------------
   Products (dark)
   -------------------------------------------------------------------------- */

.section--dark {
  background: var(--c-graphite);
}

.product__grid {
  margin-bottom: var(--sp-7);
}

.product {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
}

.product__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.product__name {
  font-size: 1.5rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-display);
}

.badge {
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border-strong);
  color: var(--c-text-muted);
}

.badge--live {
  border-color: var(--c-pink);
  color: var(--c-pink);
}

.product__tagline {
  font-size: 0.9375rem;
  color: var(--c-pink-ink);
  margin-bottom: var(--sp-4);
}

.product__body {
  color: var(--c-text-muted);
  margin-bottom: var(--sp-5);
}

.product__facts {
  display: grid;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

/* Pin whatever closes the card (a link on Pactly and NorTender, a note on
   Ollie) so three cards of unequal copy still line up along the bottom.
   .product is already a column flex container at height: 100%. */
.product > :last-child {
  margin-top: auto;
}

/* Ollie has no site to link to, and its repository must never be shown
   (docs/AI-PROOF.md §0). The card closes on the honest scope instead. */
.product__note {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.product__facts li {
  position: relative;
  padding-inline-start: var(--sp-5);
  font-size: 0.9375rem;
  color: var(--c-text-muted);
}

.product__facts li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--c-pink);
}

.link-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: var(--fw-medium);
  color: var(--c-pink-ink);
  align-self: flex-start;
}

.link-arrow .arrow {
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover .arrow {
  transform: translateX(3px);
}

/* Вторая ссылка в карточке продукта уводит на страницу сайта, тогда как
   .link-arrow выше ведёт на сам продукт. Отделена, чтобы две ссылки подряд
   не читались как одна. */
.product__note {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
}

.product__formula {
  text-align: center;
  font-size: var(--t-h3);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-display);
  color: var(--c-text);
  max-width: 34ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Bridge
   -------------------------------------------------------------------------- */

.section--bridge {
  position: relative;
  overflow: hidden;
}

.bridge__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 1rem + 5vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .bridge__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

.bridge__copy > p {
  color: var(--c-text-muted);
  max-width: 58ch;
}

.bridge__case {
  margin-top: var(--sp-6);
  background: var(--c-surface);
}

/* --- Partner endorsement ------------------------------------------------ */

.endorse {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

@media (max-width: 559px) {
  .endorse {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: var(--sp-4);
  }
}

.endorse__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.endorse__lead {
  font-size: var(--t-h3);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--sp-3);
  max-width: 24ch;
}

.endorse__body {
  color: var(--c-text-muted);
  margin-bottom: var(--sp-4);
  max-width: 46ch;
}

.endorse__cta {
  min-height: 24px;
}

/* Their mark, so it keeps its own light-on-dark rendering by inverting.
   see the note on .bridge__case-logo. */
.endorse__logo {
  flex: none;
  height: 44px;
  width: auto;
  filter: invert(1);
}

.bridge__case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

/* The supplied file is the white-on-dark version. Inverting it produces the
   brand's own light-background lockup: the mark's counters are knocked out,
   so the NC/UA letters stay light inside a dark square, exactly as drawn. */
.bridge__case-logo {
  height: 40px;
  width: auto;
  filter: invert(1);
}

.bridge__case-head .proof-card__kicker {
  margin-bottom: 0;
}

.bridge__quote {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-display);
}

.bridge__visual {
  display: flex;
  justify-content: center;
}

/* --- Interactive map --------------------------------------------------- */

.map {
  width: 100%;
  max-width: 460px;
}

.map__canvas {
  position: relative;
}

.map__svg {
  width: 100%;
  height: auto;
}

/* Three kinds of path in this file, and each needs naming explicitly.
   A CSS fill rule outranks both the fill attribute and inheritance from the
   svg root, so any selector broad enough to catch a neighbouring group will
   paint over it. Every rule below therefore excludes the others. */

/* 1. Countries: the only paths carrying their own fill. */
.map__svg path[fill]:not(.cc) {
  fill: #e3e4e8;
  stroke: var(--c-bg);
  stroke-width: 0.75;
  stroke-linejoin: round;
}

/* 2. Border overlays: no fill of their own. Without this they fall back to
      SVG's default black and cover whatever sits beneath them. */
.map__svg path:not([fill]):not(.cc) {
  fill: none;
}

/* 3. The three we operate in. Muted until chosen so the map reads calm. */
.map__svg path.cc {
  fill: var(--c-rose);
  stroke: var(--c-bg);
  stroke-width: 0.75;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill var(--dur) var(--ease);
}

.map__svg path.cc:hover,
.map__svg path.cc:focus-visible {
  fill: var(--c-pink);
  outline: none;
}

.map__svg path.cc.is-active {
  fill: var(--c-pink-ink);
}

/* SVG cannot take the global focus ring, so mirror it here. */
.map__svg path.cc:focus-visible {
  stroke: var(--c-graphite);
  stroke-width: 1.5;
}

.map__panel {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  min-height: 118px;
}

.map__flag {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: var(--sp-3);
}

.map__entity {
  font-size: var(--t-h3);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-display);
  margin-bottom: 2px;
}

.map__place {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.map__id {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  font-variant-numeric: tabular-nums;
}

.map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.map__key {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 32px;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  transition:
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.map__key:hover {
  border-color: var(--c-border-strong);
  color: var(--c-text);
}

.map__key.is-active {
  border-color: var(--c-pink-ink);
  background: var(--c-glass);
  color: var(--c-pink-ink);
}

/* --------------------------------------------------------------------------
   Work
   -------------------------------------------------------------------------- */

/* --- Featured case ------------------------------------------------------ */

.feature {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--c-border);
}

@media (min-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
  }
  .feature__media { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}

.feature__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
}

.feature__caption {
  display: grid;
  gap: 2px;
  margin-top: var(--sp-4);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--c-text-muted);
}

.feature__caption-lead {
  font-size: var(--t-cap);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.feature__caption b {
  font-weight: var(--fw-medium);
  color: var(--c-text);
}

.feature__client {
  font-size: var(--t-h2);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--sp-3);
}

.feature__stat {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.feature__stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-display);
  color: var(--c-text);
  margin-bottom: 2px;
}

.feature__lead {
  font-size: var(--t-body-lg);
  margin-bottom: var(--sp-4);
}

.feature__text {
  color: var(--c-text-muted);
  margin-bottom: var(--sp-4);
}

/* The operations layer is the point of this case. Give it the accent */
.feature__text--accent {
  color: var(--c-text);
  padding-inline-start: var(--sp-5);
  border-inline-start: 2px solid var(--c-pink);
}

.feature__results {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

.feature__results li {
  position: relative;
  padding-inline-start: var(--sp-5);
  font-size: 0.9375rem;
  color: var(--c-text-muted);
}

.feature__results li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--c-pink);
}

.feature__results strong {
  color: var(--c-text);
  font-weight: var(--fw-medium);
}

.feature__quote {
  padding-inline-start: var(--sp-5);
  border-inline-start: 2px solid var(--c-border-strong);
}

.feature__quote p {
  font-size: var(--t-body-lg);
  margin-bottom: var(--sp-2);
}

.feature__quote cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

/* Second feature mirrors the first so the section has rhythm rather than
   two identical slabs. */
@media (min-width: 960px) {
  .feature--reverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .feature--reverse .feature__media { order: 2; }
  .feature--reverse .feature__body { order: 1; }
}

/* The Diia identity lives on black. Showing it on Warm White would
   misrepresent it, so the media column carries its own surface. */
.feature--dark .feature__media {
  background: var(--c-graphite);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
}

.feature--dark .feature__media img {
  border: none;
  border-radius: var(--r-lg);
}

.feature__motion {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Two 16:9 images stacked made the media column overhang the text beside it.
   The strip is a supporting detail, so it gets a shallower crop. */
.feature__strip {
  margin-top: var(--sp-3);
}

.feature__strip img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 40%;
}

.feature--dark .feature__caption {
  padding-inline: var(--sp-2);
  padding-bottom: var(--sp-1);
  color: #a8aab2;
}

.feature--dark .feature__caption b { color: #fafaf8; }

.feature__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

/* --- Smaller cases ------------------------------------------------------ */

/* .card.work-card, not .work-card: the scroll-reveal class declares its own
   transition and would otherwise drop border-color and box-shadow from the
   list, leaving the hover state to snap. */
.card.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden; /* clips the image scale below */
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

/* Restrained on purpose: a small lift and a firmer edge. Enough to say the
   card is a unit, not enough to turn the section into a carousel. */
@media (hover: hover) {
  .work-card:hover {
    transform: translateY(-3px);
    border-color: var(--c-border-strong);
    box-shadow: var(--shadow-md);
  }

  .work-card:hover .work-card__img {
    transform: scale(1.03);
  }

  .work-card:hover .work-card__stat strong {
    color: var(--c-pink-ink);
  }
}

.work-card__stat strong {
  transition: color var(--dur) var(--ease);
}

/* Four cases read better as a 2x2 block than as a row of three with an
   orphan underneath. */
@media (min-width: 760px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
}

.work-card__img {
  width: calc(100% + var(--sp-5) * 2);
  margin: calc(var(--sp-5) * -1) calc(var(--sp-5) * -1) var(--sp-5);
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: left center;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: 1px solid var(--c-border);
  transform-origin: center;
  transition: transform var(--dur-slow) var(--ease);
}

/* A near-square source loses its subject in a 16:8 band, so give it room. */
.work-card__img--tall {
  aspect-ratio: 4 / 3;
  object-position: center 45%;
}

/* Three hard numbers side by side. The strongest card on the page earns
   the same treatment the proof cards get. */
.work-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}

.work-card__metrics dt {
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 2px;
}

.work-card__metrics dd {
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

.work-card__note {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.work-card__sector {
  font-size: var(--t-cap);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-3);
}

.work-card__client {
  font-size: var(--t-h3);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-3);
}

.work-card__stat {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}

.work-card__stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-display);
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.work-card__body {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-5);
}

.work-card__quote {
  margin-top: auto;
  padding-inline-start: var(--sp-4);
  border-inline-start: 2px solid var(--c-pink);
}

.work-card__quote p {
  font-size: 0.9375rem;
  margin-bottom: var(--sp-2);
}

.work-card__quote cite {
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

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

.section--team {
  background: var(--c-surface-sunk);
  border-block: 1px solid var(--c-border);
}

.team {
  display: grid;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

@media (min-width: 640px) {
  .team { grid-template-columns: repeat(3, 1fr); }
}

.team__member {
  text-align: center;
}

/* Placeholder until photography lands. Reads as deliberate, not broken */
.team__avatar,
.team__photo {
  width: clamp(120px, 26vw, 168px);
  aspect-ratio: 1;
  border-radius: var(--r-full);
  margin: 0 auto var(--sp-4);
}

.team__avatar {
  display: grid;
  place-content: center;
  background:
    radial-gradient(120% 120% at 30% 20%, var(--c-glass), var(--c-surface-sunk));
  border: 1px solid var(--c-border);
}

.team__avatar span {
  font-size: 1.75rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  color: var(--c-pink-ink);
}

.team__photo {
  object-fit: cover;
  border: 1px solid var(--c-border);
  filter: grayscale(1);
  transition: filter var(--dur-slow) var(--ease);
}

.team__member:hover .team__photo {
  filter: grayscale(0);
}

.team__name {
  font-size: var(--t-h3);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-1);
}

/* Global `a` is colour-inherit and underline-none, so a name that links to a
   profile would be indistinguishable from the two that do not. The rule sits
   on the anchor, not the heading, so members without a page stay plain text. */
.team__name a {
  text-decoration: underline;
  text-decoration-color: var(--c-border-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur) var(--ease);
}

.team__name a:hover {
  text-decoration-color: var(--c-pink);
}

.team__role {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
}

/* Widened from 46ch when this stopped being one line: three people are the
   management, and the paragraphs below say who actually delivers. */
.team__note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  max-width: 64ch;
  margin-inline: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

.team__note p + p {
  margin-top: var(--sp-4);
}

.team__note-lead {
  font-size: 1.0625rem;
  font-weight: var(--fw-medium);
  color: var(--c-text);
}

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

.cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--c-border);
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta__title {
  font-size: var(--t-h1);
  line-height: var(--lh-tight);
  font-weight: var(--fw-semibold);
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: var(--sp-4);
}

.cta__lead {
  font-size: var(--t-body-lg);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-6);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.btn--lg {
  min-height: 52px;
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--t-body-lg);
}

.cta__note {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

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

.footer {
  background: var(--c-graphite);
  color: var(--c-text-invert);
  padding-block: var(--sp-8) var(--sp-6);
}

.footer__inner {
  display: grid;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}

@media (min-width: 700px) {
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 0.7fr 1fr; }
}

.footer__brand img {
  height: 48px;
  width: auto;
  filter: invert(1) brightness(1.6);
  margin-bottom: var(--sp-4);
}

.footer__tagline {
  color: #a8aab2;
  max-width: 26ch;
}

.footer__col {
  display: flex;
  flex-direction: column;
}

/* Padding rather than gap: it grows the hit area, not just the spacing.
   WCAG 2.5.8 wants 24px minimum and these were coming in under it. */
.footer__col a {
  padding-block: 6px;
  min-height: 24px;
}

.footer__heading {
  font-size: var(--t-cap);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: #a8aab2;
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-2);
}

.footer__col a {
  font-size: 0.9375rem;
  color: #e7e8ec;
  transition: color var(--dur) var(--ease);
}

.footer__col a:hover {
  color: var(--c-pink);
}

.footer__meta {
  font-size: 0.9375rem;
  color: #a8aab2;
}

/* Both legal entities, side by side. The bridge stated as fact rather than
   as a claim. */
.entities {
  display: grid;
  gap: var(--sp-5);
  padding-block: var(--sp-6);
  border-top: 1px solid #2a2b2f;
}

@media (min-width: 620px) {
  .entities { grid-template-columns: repeat(2, 1fr); gap: var(--sp-7); }
}

.entity {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.entity__flag {
  font-size: 1.5rem;
  line-height: 1.2;
  flex: none;
}

.entity__name {
  font-weight: var(--fw-medium);
  color: #fafaf8;
  margin-bottom: 4px;
}

.entity__meta {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #a8aab2;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  justify-content: space-between;
  padding-top: var(--sp-5);
  border-top: 1px solid #2a2b2f;
  font-size: 0.8125rem;
  color: #a8aab2;
}

.footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-block: 4px;
  color: #e7e8ec;
}

.footer__legal a:hover {
  color: var(--c-pink);
}

/* --------------------------------------------------------------------------
   Work page
   -------------------------------------------------------------------------- */

.work-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}

.work-hero > .container {
  position: relative;
  z-index: 1;
}

/* Hero with a named owner on the right. Built from parts the site already has:
   the panel, the eyebrow, the circular portrait with grayscale lifting on
   hover, the same treatment the team section and the product marks use. */
@media (min-width: 960px) {
  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--sp-7);
    align-items: start;
  }
}

.hero-contact {
  margin-top: var(--sp-6);
}

@media (min-width: 960px) {
  .hero-contact { margin-top: 0; }
}

.hero-contact__label {
  font-size: var(--t-cap);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-4);
}

.hero-contact__person {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.hero-contact__photo {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 1px solid var(--c-border);
  filter: grayscale(1);
  transition: filter var(--dur-slow) var(--ease);
}

.hero-contact:hover .hero-contact__photo {
  filter: grayscale(0);
}

.hero-contact__name {
  font-weight: var(--fw-medium);
  line-height: 1.3;
}

.hero-contact__role {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.hero-contact__line {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  font-size: 0.9375rem;
}

/* Cross-promotion for our own products, on a page where the product is the
   natural next step. Lives inside .section--dark.on-dark, so the tokens are
   already flipped. See docs §2 before reaching for --c-text-invert here. */
.promo__card {
  margin-top: var(--sp-6);
}

@media (min-width: 900px) {
  .promo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--sp-7);
    align-items: start;
  }

  .promo__card { margin-top: 0; }
}

.promo__card .btn {
  margin-top: var(--sp-5);
  width: 100%;
}

.crumbs {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-5);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-block: 4px;
}

.crumbs a:hover { color: var(--c-pink-ink); }
.crumbs span[aria-hidden] { margin-inline: var(--sp-2); }

/* A link sitting alone in a note is not an inline link in a sentence, so the
   WCAG 2.5.8 inline exception does not cover it. Give it a real target. */
.work-card__note > .link-arrow {
  min-height: 24px;
  padding-block: 2px;
}

.work-hero__title {
  font-size: var(--t-h1);
  line-height: var(--lh-tight);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-4);
}

.work-hero__lead {
  font-size: var(--t-body-lg);
  color: var(--c-text-muted);
  max-width: 58ch;
  margin-bottom: var(--sp-6);
}

.work-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

.work-hero__stats dt {
  font-size: var(--t-cap);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 4px;
}

.work-hero__stats dd {
  font-size: 1.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
}

/* Stated plainly rather than buried. The reader should not discover the
   dual relationship somewhere else. */
.feature__note-inline {
  margin-bottom: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--c-surface-sunk);
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.feature--dark .feature__note-inline {
  background: rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .contour__field { animation: none; }
}

/* --------------------------------------------------------------------------
   Language switch

   Only the two Norsk Katapult landing pages are translated, so this is a pair
   of siblings rather than a site-wide locale menu. The current language stays
   in the list as plain text: removing it would make the control look like an
   action rather than a state.
   -------------------------------------------------------------------------- */

.lang-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

/* The pill is opted into by class, not by element. It used to be
   `.lang-switch span`, which meant the label added in front of the buttons
   was drawn as a third pill, one that looks clickable and is not. */
.lang-switch a,
.lang-switch__current {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
}

.lang-switch a:hover {
  border-color: var(--c-pink-ink);
  color: var(--c-pink-ink);
}

.lang-switch__current {
  border-color: var(--c-border-strong);
  color: var(--c-text);
}

/* Sits slightly away from the pair it introduces, so the eye reads
   "label, then two options" rather than three items in a row. */
.lang-switch__label {
  margin-right: var(--sp-1);
}

/* --------------------------------------------------------------------------
   Funding model

   Three amounts that have to be read as one sentence: contribution plus
   support equals project. The total is the third card rather than a separate
   summary row, so the arithmetic is visible without a caption explaining it.
   -------------------------------------------------------------------------- */

.model {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

/* auto-fit, not repeat(3): the row carries two figures on the Katapult pages
   and must not leave a dead third column when it does. */
@media (min-width: 760px) {
  .model {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: stretch;
  }
}

.model__card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}

/* The total is the outcome, not a third peer, so it carries the accent. */
.model__card--total {
  border-color: var(--c-pink);
  background: var(--c-glass);
}

.model__label {
  font-size: var(--t-cap);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.model__value {
  font-size: 1.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
}

/* Display size, so Signature Pink clears the 3:1 large-text threshold here
   where it would not at body size. */
.model__card--total .model__value {
  color: var(--c-pink-ink);
}

.model__note {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Use cases
   -------------------------------------------------------------------------- */

.uses {
  margin-top: var(--sp-6);
}

.use {
  padding: var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  height: 100%;
}

.use__title {
  font-size: var(--t-body);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-2);
}

.use__text {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   Lead form

   Two columns from 960px: what happens after you send parks on the left, the
   fields sit on the right. Below that they stack, and the context comes first:
   a form with no preamble on a phone is a wall of inputs.
   -------------------------------------------------------------------------- */

@media (min-width: 960px) {
  .form-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--sp-7);
    align-items: start;
  }
}

.form-aside {
  margin-bottom: var(--sp-6);
}

@media (min-width: 960px) {
  .form-aside { margin-bottom: 0; }
}

.form-aside__list {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.form-aside__list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--sp-3);
  font-size: 0.9375rem;
  color: var(--c-text-muted);
}

.form-aside__list b {
  display: block;
  color: var(--c-text);
  font-weight: var(--fw-medium);
}

.form-aside__num {
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: var(--c-pink-ink);
  font-variant-numeric: tabular-nums;
}

.form__grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 560px) {
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide { grid-column: 1 / -1; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
}

.field__label {
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
}

/* Optional is marked, required is not. Most fields here are required, so
   marking the exception keeps the form from reading as a list of asterisks. */
.field__optional {
  font-weight: var(--fw-regular);
  color: var(--c-text-muted);
}

/* --c-border, not --c-border-strong, is a 1.11:1 line. That is fine for a
   decorative divider and not fine for the edge of a control: WCAG 1.4.11
   wants 3:1 on the boundary that tells you where to type. */
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  color: var(--c-text);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: var(--lh-body);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--c-text-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--c-pink-ink);
  box-shadow: 0 0 0 3px var(--c-glass);
}

/* :focus-visible already draws the global outline; the ring above would sit
   under it and read as a double border. */
.field input:focus:not(:focus-visible),
.field select:focus:not(:focus-visible),
.field textarea:focus:not(:focus-visible) {
  box-shadow: none;
}

/* :user-invalid rather than :invalid, because :invalid paints every empty required
   field red before the visitor has typed a character. */
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: #b3261e;
}

.field__hint {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

/* A notice, deliberately not a tick box. Answering an enquiry someone chose
   to send rests on GDPR art. 6(1)(b)/(f), not consent. Consent that is
   mandatory to proceed is not freely given, so a required checkbox here would
   be both weaker legally and a step the visitor has to complete for nothing. */
.form__consent {
  margin-top: var(--sp-5);
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

.form__consent a {
  color: var(--c-pink-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.form__actions .btn { flex: none; }

.form__status {
  font-size: 0.9375rem;
  min-width: 0;
}

.form__status:empty { display: none; }

.form__status[data-state="pending"] { color: var(--c-text-muted); }
.form__status[data-state="ok"] { color: var(--c-text); font-weight: var(--fw-medium); }
.form__status[data-state="error"] { color: #b3261e; }

/* Hidden from people, irresistible to form-fillers. Not display:none. Some
   bots skip those, and a real visitor never reaches it either way because it
   is out of the tab order and out of the accessibility tree. */
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The no-JavaScript outcome. /api/lead answers a native form post with a 303
   carrying #sent-ok or #sent-error, and :target is the whole mechanism.
   No script runs on this path, so nothing else could report the result. */
.form__flash {
  display: none;
  margin-bottom: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface);
  font-size: 0.9375rem;
}

.form__flash:target { display: block; }

#sent-ok:target {
  border-color: var(--c-pink);
  background: var(--c-glass);
}

#sent-error:target { border-color: #b3261e; }

/* --------------------------------------------------------------------------
   What we connect: card grid

   Was a numbered .cap-list: every tool name buried mid-paragraph, six
   paragraphs in one column, and the caveat arriving before the benefit. The
   names are what the reader came for, so they leave the sentence and become
   chips; what the area buys leads, and what you must know about it follows.

   Also stops this section and "How it runs." from being two identical
   numbered lists on one page.
   -------------------------------------------------------------------------- */

.connect-grid {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

@media (min-width: 780px) {
  .connect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.connect {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

/* Guarded: on touch there is no hover to leave, and the lifted state sticks
   after a tap. */
@media (hover: hover) {
  .connect:hover {
    border-color: var(--c-rose);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
}

.connect__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.connect__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--c-glass);
  color: var(--c-pink-ink);
}

.connect__icon svg {
  width: 22px;
  height: 22px;
}

.connect__title {
  font-size: var(--t-h3);
  font-weight: var(--fw-medium);
}

/* The commercial line, at full text strength while the caveat below it stays
   muted. What you get should land before what you have to know. */
.connect__outcome {
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-4);
}

/* The chips are the site's existing .stack / .stack__item component, the same
   one the Ollie card on the homepage uses: logo at 20px, grayscale until
   hover. One pattern, not two, and a logo drops in without touching CSS.
   Tightened here only: these sit inside a card, not across a full column. */
.connect .stack {
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.connect .stack__item {
  padding: 5px var(--sp-3);
  font-size: 0.8125rem;
  background: var(--c-surface-sunk);
}

.connect .stack__item img {
  width: 16px;
  height: 16px;
}

.connect__note {
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  /* Minimum clearance under the note. The marker's `margin-top: auto` adds
     whatever slack the card has on top of this, so short cards still get a
     gap and tall ones do not collapse. */
  margin-bottom: var(--sp-4);
}

/* Pinned to the bottom so the footers line up across a row whatever the note
   above them runs to. Every marker is lifted from the copy already on the
   page. None of it is a new claim about timing. */
.connect__marker {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-4);
  font-size: var(--t-cap);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* Border only. Setting margin-top here would beat the `auto` above on
   specificity and unpin the footer, which is exactly what it did first
   time round, leaving the markers in a row at different heights. */
.connect__note + .connect__marker {
  border-top: 1px solid var(--c-border);
}

.connect__marker::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--c-pink);
}

/* --------------------------------------------------------------------------
   Funding card: closes the Solutions section

   Not a seventh capability. The programme pays for 01, 03 and 04, so it is
   framed as how to fund the list rather than an item in it.

   Lives outside .cap-layout on purpose. That grid holds a sticky .cap-head
   and depends on `align-items: start` to give it something to travel through.
   A third grid item would add a row and change what the heading is sticky
   against. Its own .container instead, so the grid is untouched.
   -------------------------------------------------------------------------- */

/* Stacked, not two columns. A copy/figures split left 238px of dead space
   between the end of the reading measure and the divider: the body is capped
   at 62ch and the column was 864px. Stacking also puts these three numbers in
   the same shape they already have on both landing pages. */
.funding {
  margin-top: var(--sp-7);
}

.funding__title {
  font-size: var(--t-h3);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-3);
}

.funding__body {
  color: var(--c-text-muted);
  max-width: 62ch;
  margin-bottom: var(--sp-4);
}

.funding__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-5);
  font-size: 0.9375rem;
}

/* The language of the target, not decoration: both links leave an English
   page for one that is not in English. */
.funding__lang {
  color: var(--c-text-muted);
}

.funding__figures {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

.funding__figures dt {
  font-size: var(--t-cap);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 2px;
}

.funding__figures dd {
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
}

.funding__note {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  margin-top: var(--sp-3);
}

/* A link in the closing note inherited the body colour and read as plain
   text, and .cta__note never had one before. */
.cta__note a {
  color: var(--c-pink-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta__note + .cta__note {
  margin-top: var(--sp-3);
}

/* --------------------------------------------------------------------------
   Person profile  (/people/*)

   The profile card is the .hero-contact panel with the portrait promoted from
   a 56px avatar to the full width of the card. On a page about one person the
   photo is the subject, not a decoration. Everything below it (name, role,
   contact line) is the .hero-contact type, unchanged.
   -------------------------------------------------------------------------- */

.profile-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  margin-bottom: var(--sp-4);
  filter: grayscale(1);
  transition: filter var(--dur-slow) var(--ease);
}

.profile-card:hover .profile-card__photo {
  filter: grayscale(0);
}

/* The belief statement sits under a .pull, which supplies its own rule above;
   this is the gap between that mark and the prose it introduces. The auto
   inline margin is not inherited from .container here. The block carries
   .container--text on its own, inside an outer .container. */
.profile__belief {
  margin: var(--sp-7) auto 0;
}

.profile__footnote {
  margin-top: var(--sp-6);
}

/* --------------------------------------------------------------------------
   Brand book: /brand-book

   A specification page, so it is mostly tables and code. None of that existed
   on the site before: every other page is prose and cards. Scoped under
   .spec so the rules cannot leak into a marketing page later.
   -------------------------------------------------------------------------- */

.spec {
  max-width: 100%;
}

/* Prose keeps the reading measure; tables and code get the whole container.
   A five-column colour table inside 76ch wraps every cell to two lines. */
.spec > p,
.spec > ul,
.spec > .feature__note-inline {
  max-width: 76ch;
}

.spec > * + * {
  margin-top: var(--sp-5);
}

.spec h2 {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  scroll-margin-top: calc(var(--header-h) + var(--sp-5));
}

.spec h3 {
  margin-top: var(--sp-6);
}

.spec p,
.spec li {
  color: var(--c-text-muted);
}

.spec strong {
  color: var(--c-text);
  font-weight: var(--fw-medium);
}

.spec ul {
  display: grid;
  gap: var(--sp-2);
  padding-left: var(--sp-5);
  list-style: disc;
}

/* Wide tables must scroll inside their own box rather than pushing the page
   sideways. This one carries eight columns on the colour scale. */
.spec-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.spec-table {
  width: 100%;
  /* Wide enough that the last column does not wrap to four lines. Narrower
     than this and the row grows tall while the visible cells sit empty.
     The scroll has to happen sideways, not downwards. */
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.spec-table th,
.spec-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

.spec-table th {
  font-size: var(--t-cap);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--c-text-muted);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  border-bottom-color: var(--c-border-strong);
}

.spec-table td {
  color: var(--c-text-muted);
}

.spec-table td:first-child {
  color: var(--c-text);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec code,
.spec-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: var(--c-surface-sunk);
  color: var(--c-text);
  white-space: nowrap;
}

.spec pre {
  overflow-x: auto;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-graphite);
  border: 1px solid var(--c-border);
}

.spec pre code {
  display: block;
  padding: 0;
  background: none;
  color: #e8e9ec;
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre;
}

/* The swatch has to survive a white page and a printed one, so it carries its
   own hairline rather than relying on contrast with the background. */
.swatch {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(17, 18, 20, 0.14);
  vertical-align: -5px;
  margin-right: var(--sp-2);
  flex: none;
}

.spec-toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  padding: var(--sp-5);
  margin-bottom: var(--sp-7);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  font-size: 0.9375rem;
}

.spec-toc a {
  color: var(--c-pink-ink);
}

.spec-toc a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The "never claim this" table. Red is doing real work here, so it is paired
   with the word Forbidden in the header rather than carrying the meaning
   alone. Colour is never the only signal on this site. */
.spec-table--rules td:first-child {
  color: #b3261e;
}

/* The reset sets `a { color: inherit }`, so a link inside a spec cell came out
   the same muted grey as the text around it and did not read as clickable,
   which matters most in the downloads table, where the link is the point. */
.spec-table a {
  color: var(--c-pink-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.spec-table a:hover {
  text-decoration-thickness: 2px;
}

/* "13.8 KB" is one thing, not two lines. */
.spec-table td:nth-child(4) {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Named clients on a person's page

   Not the .trust strip: that one inverts every logo because all three source
   files happen to be light-on-dark. Here the sources are mixed: Diia.City is
   light-on-dark, Ukrnafta is dark-on-transparent, so inverting is opt-in per
   logo. Everything stays greyscale: these are the client's marks on our page,
   not a logo wall competing with our own brand.

   Clients without a usable mark sit in the same row as a text wordmark,
   sized to land at roughly the same optical weight as the logos.
   -------------------------------------------------------------------------- */

.clients-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-7);
  margin: var(--sp-5) 0 0;
  padding: 0;
  list-style: none;
}

.clients-row > li {
  display: flex;
  align-items: center;
}

.clients-row img {
  height: var(--logo-h, 28px);
  width: auto;
  filter: grayscale(1);
  opacity: 0.66;
  transition: opacity var(--dur) var(--ease);
}

.clients-row > li:hover img { opacity: 1; }

/* source file is light-on-dark, so it needs inverting for this light page */
.clients-row .is-inverted img { filter: invert(1) grayscale(1); }

.clients-row .client-word {
  font-weight: 600;
  font-size: 1.625rem;
  letter-spacing: -0.01em;
  color: var(--c-text-muted);
  transition: color var(--dur) var(--ease);
}

.clients-row > li:hover .client-word { color: var(--c-text); }

/* Sized by the height of the NAME inside each lockup, not the outer box.
   Proventus is a single-line wordmark that fills its frame, so it needs a
   much smaller box than the two-line lockups to land at the same weight. */
.clients-row .is-ukrnafta  { --logo-h: 51px; }
.clients-row .is-diia      { --logo-h: 58px; }
.clients-row .is-alliance  { --logo-h: 58px; }
/* Sized for the 2025 wordmark, which is far bolder and wider than the one it
   replaced: at the old 26px it shouted over every lockup next to it. */
.clients-row .is-proventus { --logo-h: 22px; }

/* pale blue turns almost white in greyscale, so this one carries more opacity */
.clients-row .is-alliance img { opacity: 0.8; }

/* --------------------------------------------------------------------------
   Skill chips on the profile role cards

   Reuses .stack__item so the chips match the rest of the site. Scoped under
   .use and shrunk: the default chip is sized for a full-width row, and three
   of them inside a card would outweigh the role they describe.
   -------------------------------------------------------------------------- */

.use .skills {
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.use .skills .stack__item {
  padding: 3px var(--sp-3);
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  background: var(--c-surface-sunk);
}

/* The role cards differ a lot in height: the EY card carries three roles and
   the others one. Equal height would leave the short cards half empty, so in
   this grid each card stops at its own content. */
.uses--auto { align-items: start; }
.uses--auto .use { height: auto; }

/* The EY card holds three separate roles, so each one needs its own line. */
.role + .role {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}


/* --------------------------------------------------------------------------
   Consultation booking and the profile pages

   Added when the paid working session went on the two people pages.
   -------------------------------------------------------------------------- */

/* The select arrow is drawn by the platform, so the box needs room on the
   right for it and the native chrome has to go, or Safari paints its own
   rounded control inside ours. */
.field select {
  appearance: none;
  padding-right: var(--sp-7);
  background-image: linear-gradient(45deg, transparent 50%, var(--c-text-muted) 50%),
                    linear-gradient(135deg, var(--c-text-muted) 50%, transparent 50%);
  background-position: right 22px top 22px, right 16px top 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Still grey before a subject is chosen, so the placeholder option does not
   read as an answer already given. */
.field select:invalid { color: var(--c-text-muted); }

/* The line of evidence under a card: smaller and quieter than the claim it
   backs, in the same register as the skill chips above it. */
.use__proof {
  margin-top: var(--sp-3);
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

/* Sits below the four subject cards and above the form, so it needs the gap
   of a new block rather than the gap between paragraphs. */
.consult__how { margin-top: var(--sp-6); }

.hero-contact__cta { margin-top: var(--sp-4); }
.hero-contact__cta .btn { width: 100%; justify-content: center; }

/* Nordic Club UA is a two-line lockup like Diia, so it takes the same box. */
.clients-row .is-ncua { --logo-h: 52px; }

/* Each logo links to its case study. The anchor must not introduce its own
   colour, underline or baseline gap around the image. */
.clients-row > li > a {
  display: flex;
  align-items: center;
  text-decoration: none;
  border: 0;
}

.clients-row a.client-word { text-decoration: none; }

/* Both people pages carry five marks, one of which is a long client name set
   as a word because we hold no logo file for it. At the shared sizes the row
   breaks and strands that single item on a line of its own, so here the gap,
   the word and the lockups all come down until the five sit on one line. */
.clients-row--mixed { gap: var(--sp-4) var(--sp-5); }
.clients-row--mixed .client-word  { font-size: 1.125rem; }
.clients-row--mixed .is-diia      { --logo-h: 48px; }
.clients-row--mixed .is-ncua      { --logo-h: 44px; }
.clients-row--mixed .is-ukrnafta  { --logo-h: 43px; }
.clients-row--mixed .is-alliance  { --logo-h: 48px; }

/* Kyiv City State Administration signs its own letterhead with the Kyiv coat
   of arms and the name beside it, so that is what this cell reproduces. The
   crest alone is unreadable at row height and identifies nobody; the name
   alone sits in a row of logos with nothing to look at. The image is marked
   decorative because the name next to it already carries the meaning. */
.clients-row .is-kmda { gap: var(--sp-2); }
.clients-row .is-kmda img { --logo-h: 40px; }

/* Price tables on /studio: on a phone each row becomes a small card with its
   own labels, instead of a wide table that scrolls sideways. */
@media (max-width: 640px) {
  .spec-table--stack { min-width: 0; }
  .spec-table--stack thead { display: none; }
  .spec-table--stack tr { display: block; padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-border); }
  .spec-table--stack tr:last-child { border-bottom: 0; }
  .spec-table--stack td { display: grid; grid-template-columns: 36% 1fr; gap: var(--sp-3); padding: var(--sp-1) 0; border: 0; }
  .spec-table--stack td::before {
    content: attr(data-label);
    font-size: var(--t-cap);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--c-text-muted);
    padding-top: 2px;
  }
  .spec-table--stack td:first-child { display: block; font-size: 1.0625rem; padding-bottom: var(--sp-2); }
  .spec-table--stack td:first-child::before { content: none; }
}
