/* ==========================================================================
   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; }
.trust__item--diia { --logo-h: 32px; }

/* --------------------------------------------------------------------------
   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;
}

/* --- What Ollie connects ------------------------------------------------ */

.stack-panel {
  display: grid;
  gap: var(--sp-6);
  padding: var(--sp-6);
  margin-bottom: var(--sp-7);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
}

@media (min-width: 900px) {
  .stack-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--sp-7);
    align-items: center;
  }
}

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

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

.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);
}

.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);
}

.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 — 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);
}

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

.team__note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  max-width: 46ch;
  margin-inline: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

/* --------------------------------------------------------------------------
   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;
}

.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; }
}
