/* Site v2 /security and /case-studies: only what the shared v2 classes don't cover. Both pages are built from the
   v2 hero, heads, points, checks, cards and FAQ rows (base.css) on the flat tint (.v2-tinted); this file adds the
   tinted closing panel and the sticky section bar (v2-trust-), /security's standards row, two-column sections,
   document cards and contact list (v2-sec-), and /case-studies' logo marquee, highlighted stories, story cards,
   Problem / Solution / Result sections and product chips (v2-cs-). Colours are the v2 theme's (tokens.css). */

/* ---------- The tinted panel: a head beside the addresses (/security) or the consultation button ---------- */
.v2-trust-panel {
  display: grid;
  gap: var(--space-8);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-lg);
  background: var(--tint);
  box-shadow: var(--ring);
}
.v2-trust-panel .v2-head {
  margin-bottom: var(--space-6);
}
.v2-trust-panel--cta .v2-head {
  margin-bottom: 0;
}
@media (min-width: 1024px) {
  .v2-trust-panel {
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    align-items: start;
    gap: 56px;
  }
  .v2-trust-panel--cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

/* ---------- The section bar (both pages) ---------- */
/* Anchored sections also clear the sticky bar (the page's scroll padding already clears the header). */
.v2-sec section[id],
.v2-cs section[id] {
  scroll-margin-top: 56px;
}

/* The sticky section bar under the hero: jump links to the page's sections. */
.v2-trust-bar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-3));
  z-index: 5;
  display: flex;
  gap: var(--space-1);
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin: 0 auto var(--section);
  padding: 6px;
  overflow-x: auto;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--ring), var(--shadow-pop);
}
.v2-trust-bar a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}
.v2-trust-bar a:hover {
  background: var(--paper-3);
  color: var(--ink);
}
/* The bar ends the hero, so the first section needs no gap of its own. */
.v2-trust-bar + .v2-section {
  padding-top: 0;
}

/* ---------- /security ---------- */
/* Two columns from 1024px: the head on the left, the content on the right. */
@media (min-width: 1024px) {
  .v2-sec-split {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    column-gap: var(--space-16);
    align-items: start;
  }
  .v2-sec-split > .v2-head {
    margin-bottom: 0;
  }
  /* The design's smaller title for the narrow head column */
  .v2-sec-split .v2-head__title {
    font-size: clamp(26px, 2.5vw, 32px);
    line-height: 1.2;
  }
}

/* Each control: a check beside its title and text, two across from 720px. */
.v2-sec-checks {
  row-gap: var(--space-6);
}
.v2-sec-checks h3 {
  color: var(--ink);
}
.v2-sec-checks p {
  margin-top: var(--space-1);
}
@media (min-width: 720px) {
  .v2-sec-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-8);
  }
}

/* The five standards: three across from 720px, all five from 1024px. */
@media (min-width: 720px) {
  .v2-sec-standards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .v2-sec-standards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Documents: the icon tile beside the title, note and download link. */
.v2-sec-doc {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-4);
}
.v2-sec-doc__text {
  display: grid;
  gap: var(--space-1);
  justify-items: start;
}
.v2-sec-doc .v2-more {
  margin-top: var(--space-1);
}

/* Contact addresses, two across from 720px, in the tinted panel */
.v2-sec-contacts {
  display: grid;
  column-gap: var(--space-8);
  margin: 0;
}
.v2-sec-contacts > div {
  display: grid;
  gap: var(--space-1);
  align-content: start;
  padding-block: var(--space-4);
  border-top: 1px solid var(--rule);
}
.v2-sec-contacts dd {
  display: grid;
  gap: var(--space-1);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.v2-sec-contacts address {
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
@media (min-width: 720px) {
  .v2-sec-contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- /case-studies ---------- */
/* The hero and the logos share the first screen: more room above the title, less under the buttons and the
   logos, so the pair sits centred with the highlights heading coming up below. */
.v2-cs .v2-hero {
  padding-top: clamp(48px, 8vw, 112px);
  padding-bottom: clamp(40px, 4.5vw, 64px);
}
/* Customer logos: a continuous marquee with faded edges */
.v2-cs-logos {
  padding-bottom: clamp(16px, 3vw, 40px);
}
.v2-cs-logos .v2-wrap {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
  text-align: center;
}
.v2-cs-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    var(--ink) 12%,
    var(--ink) 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    var(--ink) 12%,
    var(--ink) 88%,
    transparent
  );
}
.v2-cs-marquee__track {
  display: flex;
  width: max-content;
  animation: v2-cs-marquee 40s linear infinite;
}
.v2-cs-marquee__track:hover {
  animation-play-state: paused;
}
.v2-cs-marquee__set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}
.v2-cs-marquee__set img {
  width: auto;
  flex-shrink: 0;
  /* Grey artwork: unchanged in light, light grey on navy. */
  filter: var(--logo-filter);
}
@keyframes v2-cs-marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .v2-cs-marquee__track {
    animation: none;
  }
}

/* Highlights: the result on a panel in the theme's purple-to-cyan tint with a thin purple frame, the story beside
   it. From 960px the two sit side by side, the panel on the left, then the right, then the left again. */
.v2-cs-highlights {
  display: grid;
  gap: var(--space-6);
}
.v2-cs-hl {
  display: grid;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--ring);
  scroll-margin-top: calc(var(--header-h) + var(--space-6));
}
.v2-cs-hl__result {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: clamp(24px, 3.5vw, 40px);
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--glow-a) 20%, transparent),
      color-mix(in srgb, var(--glow-b) 16%, transparent)
    ),
    var(--paper);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--ink-2);
}
.v2-cs-hl__result::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--glow-a), var(--glow-b));
  filter: blur(90px);
  opacity: 0.25;
}
.v2-cs-hl__result > * {
  position: relative;
}
.v2-cs-hl__result .v2-label {
  color: var(--accent-ink);
}
.v2-cs-hl__big {
  display: grid;
  gap: var(--space-2);
  margin: auto 0 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
}
.v2-cs-hl__big .v2-stat__figure {
  font-size: clamp(56px, 6vw, 80px);
  letter-spacing: -0.04em;
  color: var(--accent-ink);
}
.v2-cs-hl__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding-top: var(--space-6);
  border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.v2-cs-hl__stats dt {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.v2-cs-hl__stats dd {
  margin: var(--space-1) 0 0;
  font-size: var(--fs-sm);
  line-height: 20px;
  color: var(--muted);
}
.v2-cs-hl__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: clamp(24px, 3.5vw, 40px);
}
.v2-cs-hl__title {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
@media (min-width: 960px) {
  .v2-cs-hl {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .v2-cs-hl--flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .v2-cs-hl--flip .v2-cs-hl__result {
    order: 2;
  }
  .v2-cs-hl--flip .v2-cs-hl__result::before {
    left: -120px;
    right: auto;
  }
}

/* The product chips under a story */
.v2-cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: auto 0 0;
  padding: var(--space-2) 0 0;
  list-style: none;
}
.v2-cs-chips li {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--paper-3);
  font-size: var(--fs-label);
  line-height: 18px;
  color: var(--ink-2);
}

/* The other stories: a card each, two across, the figure on top in the accent purple. */
.v2-cs-group + .v2-cs-group {
  padding-top: 0;
}
.v2-cs-cards > li {
  display: flex;
}
.v2-cs-card {
  flex: 1;
  gap: var(--space-3);
  padding: clamp(24px, 2.5vw, 32px);
}
.v2-cs-card__big {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-2);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.v2-cs-card__big .v2-stat__figure {
  font-size: 44px;
  letter-spacing: -0.03em;
  color: var(--accent-ink);
}
.v2-cs-card__title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Problem / Solution / Result: three sections, each a purple caps label (the section labels' style, a size up)
   beside its text from 480px, hairlines between. */
.v2-cs-psr {
  display: grid;
  margin-top: var(--space-2);
}
.v2-cs-psr__part {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-4);
  border-top: 1px solid var(--rule);
}
.v2-cs-psr__part:last-child {
  padding-bottom: var(--space-2);
}
.v2-cs-psr__head {
  font: 500 14px/24px var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.v2-cs-psr__text {
  min-width: 0;
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-2);
}
@media (min-width: 480px) {
  .v2-cs-psr__part {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: var(--space-4);
  }
}

/* ---------- Motion (js/motion.js, base.css "Motion") ---------- */
/* Security: each control's check draws itself as the control rises in, and
   the standards' badges pop in after their cards. From 1024px a section's
   head stays beside its list while the list scrolls, clear of the sticky
   bar (its 36px links in 6px of padding). */
.v2-motion .v2-sec-checks > .v2-rv svg path {
  stroke-dasharray: 24;
}
.v2-motion .v2-sec-checks > .v2-rv.is-in svg path {
  animation: v2-tick 600ms var(--ease-out) calc(var(--v2-d, 0ms) + 250ms)
    backwards;
}
.v2-motion .v2-sec-standards > .v2-rv.is-in img {
  animation: v2-pop 700ms cubic-bezier(0.34, 1.56, 0.64, 1)
    calc(var(--v2-d, 0ms) + 150ms) backwards;
}
@media (min-width: 1024px) {
  .v2-sec-split > .v2-head {
    position: sticky;
    top: calc(var(--header-h) + var(--space-3) + 48px + var(--space-6));
  }
}
/* Case studies: a highlighted story's Problem, Solution and Result follow
   its card in, one after another. */
.v2-motion .v2-cs-highlights > .v2-rv:not(.is-in) .v2-cs-psr__part {
  opacity: 0;
}
.v2-motion .v2-cs-highlights > .v2-rv.is-in .v2-cs-psr__part {
  animation: v2-rise 800ms var(--ease-out)
    calc(var(--v2-d, 0ms) + 250ms + var(--j, 0) * 110ms) backwards;
}
.v2-cs-psr__part:nth-child(2) {
  --j: 1;
}
.v2-cs-psr__part:nth-child(3) {
  --j: 2;
}
