/* Referenzen (/unsere-erfolge): Uebersicht der Case Studies.
 * Hero mit Projekt-Panels, drei Projekte als Spreads (Herrmann, Kiener und
 * SHK), Gemeinsamkeiten, Kundenstimmen, FAQ und Abschluss. Die ausfuehrlichen
 * Fallstudien liegen auf /fallstudien (Herrmann) und /autozentrum-kiener.
 * Alles ist unter .ev2 gekapselt. erfolge-v2.js setzt .ev2--live (Bewegung
 * erlaubt) und schreibt Fortschritt in CSS-Variablen (--par, --s).
 * Ohne JS oder mit reduzierter Bewegung ist jede Section statisch und komplett. */

.erfolge-v2-page .page-wrapper {
  overflow: clip; /* Parallaxe-Ebenen laufen ueber den Rand */
}

.ev2 {
  --g: var(--ogency-base);
  --g-rgb: var(--ogency-base-rgb);
  --ink: #050506;
  --ink2: #111214;
  --ink3: #1d1f23;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --muted: rgba(255, 255, 255, .72);
  --quiet: rgba(255, 255, 255, .58);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.4, 0, .2, 1);
  background: var(--ink);
  color: var(--ogency-white);
}

.ev2 section {
  position: relative;
}

.ev2 img {
  display: block;
  max-width: 100%;
}

/* Shared type ------------------------------------------------------------ */
.ev2-h2 {
  margin: 18px 0 0;
  max-width: 17ch;
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.ev2-text {
  max-width: 54ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.ev2-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.ev2-meta span {
  padding: 5px 10px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ev2-meta span:first-child {
  border-color: rgba(var(--g-rgb), .6);
  color: var(--g);
}

.ev2-link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--g);
  color: var(--ogency-white);
  font-weight: 700;
  transition: color .3s ease;
}

.ev2-link:hover,
.ev2-link:focus-visible {
  color: var(--g);
}

/* Headline rise: the heading slides up through its own box */
.ev2--live .ev2-rise {
  transition: clip-path 1000ms var(--ease), translate 1000ms var(--ease);
}

.ev2--live .ev2-rise:not(.is-in) {
  clip-path: inset(0 0 100% 0);
  translate: 0 .4em;
}

/* Hero ------------------------------------------------------------------- */
.ev2-hero {
  overflow: hidden;
  /* Pfadnavigation auf derselben Höhe wie bei „Über uns“ (138px). */
  padding: 118px 0 0;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%,
    var(--ink);
  background-position: calc(50% + .5px) 0, 0 0;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .ev2-hero {
    padding-top: 148px;
  }
}

.ev2-hero::before {
  /* fade the measuring grid out towards the index */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 6, .55), var(--ink) 92%);
  pointer-events: none;
}

.ev2-hero > .container {
  position: relative;
}

.ev2-crumbs {
  display: flex;
  gap: 10px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  color: var(--quiet);
  font-size: 14px;
}

.ev2-crumbs li + li::before {
  content: "›";
  margin-right: 10px;
  color: var(--g);
}

.ev2-crumbs a {
  color: var(--muted);
  transition: color .3s ease;
}

.ev2-crumbs a:hover,
.ev2-crumbs a:focus-visible {
  color: var(--g);
}

.ev2-hero__title {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 1;
  letter-spacing: -.055em;
}

.ev2-hero__gold {
  color: var(--g);
}

.ev2-hero__lead {
  max-width: 58ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
}

/* Load sequence: crumbs and lead rise in; headline and panels below */
.ev2--live .ev2-intro {
  transition:
    opacity 800ms var(--ease-out),
    transform 1100ms var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}

.ev2--live .ev2-hero:not(.is-in) .ev2-intro {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

/* Headline: each line is wiped open from the left (clip-path). */
.ev2-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(32px, 5vw, 80px);
}

.ev2-hero__line {
  display: block;
  padding-bottom: .08em;
}

.ev2-hero__grid .ev2-hero__lead {
  margin: 0;
  padding-bottom: .5em;
}

.ev2--live .ev2-hero__line {
  transition: clip-path 1100ms var(--ease), opacity 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 140ms + 100ms);
}

.ev2--live .ev2-hero:not(.is-in) .ev2-hero__line {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
}

/* Project panels: three images side by side, the measured result sits in
   each one. They open like shutters on load; on desktop the hovered or
   focused panel widens. Phones and tablets get a swipeable rail. */
.ev2-panels {
  display: flex;
  gap: 12px;
  height: clamp(360px, 48vh, 470px);
  margin: clamp(40px, 6vh, 64px) 0 0;
  padding: 0;
  list-style: none;
}

.ev2-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  transition: flex-grow 800ms var(--ease);
}

.ev2-panel__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
  padding: 22px 24px 24px;
  border: 1px solid var(--line-strong);
  color: var(--ogency-white);
  isolation: isolate;
}

.ev2-panel__link:is(:hover, :focus, :focus-visible) {
  color: var(--ogency-white);
}

.ev2-panel__link:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 3px;
}

.ev2-panel__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink2);
}

.ev2-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1600ms var(--ease), opacity 600ms ease;
}

/* Shade: keeps the copy readable, deepens on the panels not in focus. */
.ev2-panel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 5, 6, .96) 0%, rgba(5, 5, 6, .78) 34%, rgba(5, 5, 6, .12) 70%, rgba(5, 5, 6, .55) 100%);
  transition: background-color 600ms ease;
}

/* Device mockup (transparent PNG-style image): shown whole on the dark
   panel instead of cropped, with a lighter shade. */
.ev2-panel--mockup .ev2-panel__media {
  background: radial-gradient(120% 70% at 50% 30%, var(--ink3), var(--ink2) 70%);
}

.ev2-panel--mockup .ev2-panel__media img {
  object-fit: contain;
  object-position: 50% 0;
  padding: 58px 22px 0;
}

.ev2-panel--mockup .ev2-panel__media::after {
  background: linear-gradient(0deg, rgba(5, 5, 6, .96) 0%, rgba(5, 5, 6, .7) 36%, rgba(5, 5, 6, 0) 60%);
}

.ev2-panel__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.ev2-panel__trade {
  color: var(--g);
  font-weight: 700;
}

.ev2-panel__time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ev2-panel__result {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ev2-panel__reading {
  color: var(--g);
  font-size: clamp(40px, 3.6vw, 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.ev2-panel__unit {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

/* Before value as a quiet segment, after value as the gold fill. */
.ev2-panel__meter {
  position: relative;
  display: block;
  height: 2px;
  margin-top: 16px;
  overflow: hidden;
  background: rgba(var(--ogency-white-rgb), .14);
}

.ev2-panel__meter::before,
.ev2-panel__meter::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
}

.ev2-panel__meter::before {
  background: rgba(var(--ogency-white-rgb), .45);
  transform: scaleX(var(--m, 0));
}

.ev2-panel__meter::after {
  background: var(--g);
  transform: scaleX(1);
  transition: transform 1500ms var(--ease);
  transition-delay: calc(var(--i, 0) * 140ms + 900ms);
}

.ev2-panel__title {
  display: block;
  max-width: 30ch;
  margin-top: 16px;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
}

/* Load sequence: shutters open one after another, images settle. */
.ev2--live .ev2-panel__link {
  transition: clip-path 1200ms var(--ease);
  transition-delay: calc(var(--i, 0) * 140ms + 380ms);
}

.ev2--live .ev2-hero:not(.is-in) .ev2-panel__link {
  clip-path: inset(100% 0 0 0);
}

.ev2--live .ev2-hero:not(.is-in) .ev2-panel__media img {
  transform: scale(1.14);
}

.ev2--live .ev2-hero:not(.is-in) .ev2-panel__meter::after {
  transform: scaleX(var(--m, 0));
}

@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  .ev2-panels:hover .ev2-panel:hover,
  .ev2-panels:focus-within .ev2-panel:focus-within {
    flex-grow: 1.6;
  }

  .ev2-panel:is(:hover, :focus-within) .ev2-panel__media img {
    transform: scale(1.04);
  }

  .ev2-panels:hover .ev2-panel:not(:hover) .ev2-panel__media::after,
  .ev2-panels:focus-within .ev2-panel:not(:focus-within) .ev2-panel__media::after {
    background-color: rgba(5, 5, 6, .45);
  }
}

@media (max-width: 991px) {
  .ev2-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* Swipeable rail; bleeds to the screen edge, first panel lines up. */
  .ev2-panels {
    height: 400px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 0 calc(50vw - 50%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Snap the first panel to the container edge (Bootstrap widths). */
    scroll-padding-inline: calc((100vw - 720px) / 2 + 15px);
    scrollbar-width: none;
  }

  .ev2-panels::-webkit-scrollbar {
    display: none;
  }

  .ev2-panel {
    flex: 0 0 min(46vw, 380px);
    scroll-snap-align: start;
  }
}

@media (max-width: 767px) {
  .ev2-panels {
    height: 360px;
    gap: 10px;
    margin-top: 32px;
    scroll-padding-inline: calc((100vw - 540px) / 2 + 15px);
  }

  .ev2-panel {
    flex-basis: 82vw;
  }

  .ev2-panel__link {
    padding: 18px 18px 20px;
  }
}

@media (max-width: 575px) {
  .ev2-panels {
    scroll-padding-inline: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ev2-panel,
  .ev2-panel__media img {
    transition: none;
  }

  .ev2-panel__meter::after,
  .ev2--live .ev2-hero:not(.is-in) .ev2-panel__meter::after {
    transform: scaleX(1);
    transition: none;
  }
}

/* Spreads: ein Projekt je Block, Visual mit Ergebniskarte ------------------ */
.ev2-spread {
  --par: 0;
  padding: clamp(100px, 12vw, 170px) 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.ev2-spread--flip {
  background: var(--ink2);
}

.ev2-spread__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}

.ev2-spread--flip .ev2-spread__grid {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}

.ev2-spread--flip .ev2-spread__visual {
  order: 2;
}

.ev2-spread__visual {
  position: relative;
}

.ev2-wipe {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3.05;
  background: var(--ink3);
  clip-path: inset(0);
}

.ev2-wipe img {
  position: absolute;
  inset: -7% 0;
  width: 100%;
  height: 114%;
  object-fit: cover;
  transform: translate3d(0, calc(var(--par) * -2%), 0);
  scale: 1.02;
}

.ev2--live .ev2-wipe {
  transition: clip-path 1300ms var(--ease);
}

.ev2--live .ev2-wipe img {
  transition: scale 1600ms var(--ease);
}

.ev2--live .ev2-wipe:not(.is-in) {
  clip-path: inset(0 100% 0 0);
}

.ev2--live .ev2-wipe--left:not(.is-in) {
  clip-path: inset(0 0 0 100%);
}

.ev2--live .ev2-wipe:not(.is-in) img {
  scale: 1.18;
}

.ev2--live .ev2-spread__visual .ev2-wipe img,
.ev2--live .ev2-stat,
.ev2--live .ev2-sboard {
  will-change: transform;
}

/* Floating result card: second depth layer, moves faster than the image */
.ev2-stat {
  position: absolute;
  right: -28px;
  bottom: -44px;
  width: min(270px, 62%);
  padding: 22px 24px 24px;
  border: 1px solid rgba(var(--g-rgb), .55);
  background: var(--ink);
  box-shadow: 0 40px 70px -30px #000;
  transform: translate3d(0, calc(var(--par) * 14px), 0);
}

.ev2-stat strong {
  display: block;
  color: var(--g);
  font-size: clamp(68px, 7vw, 108px);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.06em;
}

.ev2-stat span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.ev2--live .ev2-stat {
  transition: opacity 800ms var(--ease-out) 450ms, translate 1100ms var(--ease) 450ms;
}

.ev2--live .ev2-stat:not(.is-in) {
  opacity: 0;
  translate: 0 40px;
}

/* Hub: Projekt-Spreads mit Link zur Fallstudie ------------------------------ */
.ev2-wipe--mockup {
  aspect-ratio: 16 / 10;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, var(--ink3), var(--ink2) 75%);
}

.ev2-wipe--mockup img {
  inset: 0;
  height: 100%;
  padding: 3% 2% 11%;
  object-fit: contain;
  scale: 1;
}

.ev2--live .ev2-wipe--mockup:not(.is-in) img {
  scale: 1.1;
}

.ev2-wipe--shot {
  aspect-ratio: 16 / 10;
}

.ev2-spread .ev2-stat strong {
  font-size: clamp(54px, 5.4vw, 80px);
}

@media (min-width: 576px) {
  .ev2-spread .ev2-stat {
    width: min(300px, 66%);
  }
}

.ev2-spread .ev2-h2 {
  font-size: clamp(30px, 3.1vw, 46px);
}

.ev2-spread__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

@media (min-width: 992px) {
  /* Die Ergebniskarte und das Board ragen immer zur Textseite hin. */
  .ev2-spread--flip .ev2-stat {
    right: auto;
    left: -28px;
  }

  .ev2-spread:not(.ev2-spread--flip) .ev2-sboard {
    left: auto;
    right: -44px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .ev2-spread:not(.ev2-spread--flip) .ev2-sboard {
    right: -24px;
  }
}

@media (max-width: 991px) {
  .ev2-spread.ev2-spread--stat .ev2-spread__visual {
    margin-bottom: 68px;
  }
}

@media (max-width: 767px) {
  .ev2-hero__lead-more {
    display: none;
  }
}

.ev2-results {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.ev2-results li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line);
  color: var(--ogency-white);
  font-size: 15px;
  line-height: 1.55;
}

.ev2-results li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 2px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--g);
  border-bottom: 2px solid var(--g);
  transform: rotate(-45deg);
}

.ev2-results li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: rgba(var(--g-rgb), .7);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.ev2--live .ev2-results li::after {
  transition: transform 1000ms var(--ease);
}

.ev2--live .ev2-results li:nth-child(2)::after { transition-delay: 140ms; }
.ev2--live .ev2-results li:nth-child(3)::after { transition-delay: 280ms; }

.ev2-results.is-in li::after {
  transform: scaleX(1);
}

.ev2:not(.ev2--live) .ev2-results li::after {
  display: none;
}

.ev2-verdict {
  margin: 26px 0 32px;
  padding-left: 16px;
  border-left: 2px solid var(--g);
  color: var(--ogency-white);
  font-weight: 600;
  line-height: 1.65;
}

/* Service board (SHK): a ticket travels through the statuses */
.ev2-sboard {
  --s: 3;
  position: absolute;
  left: -44px;
  bottom: -56px;
  width: min(400px, 84%);
  padding: 16px 18px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 8, 10, .9);
  box-shadow: 0 40px 80px -30px #000;
  transform: translate3d(0, calc(var(--par) * 16px), 0);
}

@supports (backdrop-filter: blur(1px)) {
  .ev2-sboard {
    background: rgba(8, 8, 10, .78);
    backdrop-filter: blur(12px);
  }
}

.ev2-sboard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--ogency-white);
  font-size: 13px;
  font-weight: 700;
}

.ev2-sboard__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--g);
  font-size: 12px;
}

.ev2-sboard__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g);
}

.ev2-sboard__rows {
  position: relative;
  display: grid;
  grid-template-rows: repeat(4, 46px);
}

.ev2-sboard__row {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 12px;
  font-weight: 600;
  transition: color .5s ease;
}

.ev2-sboard__row.is-current {
  color: var(--g);
}

.ev2-sboard__ticket {
  position: absolute;
  top: 4px;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 62%;
  height: 38px;
  padding: 0 12px;
  border-left: 2px solid var(--g);
  background: var(--ink3);
  transform: translate3d(0, calc(var(--s) * 46px), 0);
  transition: transform 850ms var(--ease);
}

.ev2-sboard__ticket strong {
  color: var(--ogency-white);
  font-size: 12px;
  line-height: 1.2;
}

.ev2-sboard__status {
  display: grid;
}

.ev2-sboard__status em {
  grid-area: 1 / 1;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity 400ms var(--ease-out), transform 600ms var(--ease);
}

.ev2-sboard[data-s="0"] .ev2-sboard__status em:nth-child(1),
.ev2-sboard[data-s="1"] .ev2-sboard__status em:nth-child(2),
.ev2-sboard[data-s="2"] .ev2-sboard__status em:nth-child(3),
.ev2-sboard:not([data-s]) .ev2-sboard__status em:nth-child(4),
.ev2-sboard[data-s="3"] .ev2-sboard__status em:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 250ms;
}

/* Common ground ---------------------------------------------------------- */
.ev2-common {
  padding: clamp(100px, 12vw, 170px) 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.ev2-common__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  align-items: end;
  gap: 30px 60px;
}

.ev2-common__head .ev2-h2 {
  margin: 0;
}

.ev2-common__head .ev2-text {
  margin: 0;
}

.ev2-pillars {
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.ev2-pillar {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  align-items: center;
  gap: 24px 56px;
  padding: clamp(22px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line-strong);
}

.ev2-pillar__word {
  position: relative;
  margin: 0;
  padding: .04em 0 .12em;
  color: rgba(255, 255, 255, .13);
  font-size: clamp(52px, 8.2vw, 124px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
  white-space: nowrap;
}

.ev2-pillar__fill {
  position: absolute;
  inset: 0;
  padding: inherit;
  color: var(--g);
  clip-path: inset(0 0 0 0);
}

.ev2--live .ev2-pillar__fill {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1100ms var(--ease);
}

.ev2--live .ev2-pillar.is-active .ev2-pillar__fill {
  clip-path: inset(0 0 0 0);
}

.ev2-pillar__body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.ev2-pillar__body p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Client voices --------------------------------------------------------- */
.ev2-voices {
  padding: clamp(100px, 12vw, 160px) 0;
  border-top: 1px solid var(--line);
  /* wave lines from the V1 testimonial section */
  background: var(--ink2) url("../images/backgrounds/testimonial-bg-1.png") center bottom / cover no-repeat;
}

.ev2-voices__grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px clamp(40px, 6vw, 96px);
}

.ev2-voices__title {
  margin: 8px 0 0;
  color: var(--g);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ev2-voices__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.ev2-voices__controls[hidden] {
  display: none;
}

.ev2-voices__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ogency-white);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}

.ev2-voices__btn[hidden] {
  display: none;
}

.ev2-voices__pause {
  margin-left: 4px;
  border-color: transparent;
  color: var(--quiet);
}

.ev2-voices__play-icon,
.ev2-voices__pause[aria-pressed="true"] .ev2-voices__pause-icon {
  display: none;
}

.ev2-voices__pause[aria-pressed="true"] .ev2-voices__play-icon {
  display: block;
}

.ev2-voices__btn:hover,
.ev2-voices__btn:focus-visible {
  border-color: var(--g);
  color: var(--g);
}

.ev2-voices__btn:active {
  background: rgba(var(--g-rgb), .12);
}

.ev2-voices__count {
  min-width: 3.5em;
  color: var(--quiet);
  font-size: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ev2-voices__count b {
  color: var(--ogency-white);
}

.ev2-voices__stage {
  touch-action: pan-y;
}

.ev2-voices.is-live .ev2-voices__stage {
  display: grid;
}

.ev2-voices.is-live .ev2-voice {
  grid-area: 1 / 1;
}

.ev2-voice {
  margin: 0;
}

.ev2-voice + .ev2-voice {
  margin-top: 56px;
}

.ev2-voices.is-live .ev2-voice + .ev2-voice {
  margin-top: 0;
}

.ev2-voice blockquote {
  margin: 0;
}

.ev2-voice blockquote p {
  margin: 0;
  color: var(--ogency-white);
  font-size: clamp(26px, 3.1vw, 44px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.03em;
  text-wrap: pretty;
}

.ev2-word {
  display: inline-block;
}

.ev2-voice figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* Autoplay timer: the rule above the author fills with gold */
.ev2-voice figcaption {
  position: relative;
}

.ev2-voices.is-auto .ev2-voice figcaption::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--g);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.ev2-voices.is-auto .ev2-voice.is-active figcaption::before {
  animation: ev2-voice-progress 8000ms linear forwards;
}

.ev2-voices.is-auto.is-paused .ev2-voice.is-active figcaption::before {
  animation-play-state: paused;
}

@keyframes ev2-voice-progress {
  to { transform: scaleX(1); }
}

.ev2-voice figcaption {
  align-items: center;
  gap: 6px 18px;
  padding-top: 22px;
}

.ev2-voice figcaption strong {
  color: var(--ogency-white);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.ev2-voice figcaption span {
  color: var(--g);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ev2-voices.is-live .ev2-voice:not(.is-active) {
  visibility: hidden;
  transition: visibility 0s linear 600ms;
}

.ev2--live .ev2-voices.is-live .ev2-word {
  transition: opacity 600ms var(--ease-out), transform 900ms var(--ease);
  transition-delay: calc(var(--w, 0) * 22ms);
}

.ev2--live .ev2-voices.is-live .ev2-voice:not(.is-active) .ev2-word {
  opacity: 0;
  transform: translate3d(0, .5em, 0);
  transition-delay: 0ms;
  transition-duration: 300ms;
}

.ev2--live .ev2-voices.is-live .ev2-voice figcaption {
  transition: opacity 600ms var(--ease-out) 350ms;
}

.ev2--live .ev2-voices.is-live .ev2-voice:not(.is-active) figcaption {
  opacity: 0;
  transition-delay: 0ms;
}

/* Closing CTA --------------------------------------------------------- */
.ev2-cta {
  --par: 0;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(120px, 15vw, 210px) 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.ev2-cta__media {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
  transform: translate3d(0, calc(var(--par) * 22px), 0);
}

.ev2-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
  filter: grayscale(.55);
}

.ev2-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 5, 6, .95) 0%, rgba(5, 5, 6, .78) 55%, rgba(5, 5, 6, .55) 100%);
}

.ev2-cta__title {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(38px, 5.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.ev2-cta__lead {
  max-width: 52ch;
  margin: 28px 0 42px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
}

.ev2-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 36px;
}

/* Responsive ------------------------------------------------------------ */
@media (min-width: 1400px) {
  .ev2 .container {
    max-width: 1280px;
  }
}

@media (max-width: 1199px) {

  .ev2-sboard {
    left: -24px;
  }
}

@media (max-width: 991px) {
  .ev2-hero {
    padding-top: 140px;
    background-size: calc(100% / 3) 100%, auto;
  }

  .ev2-spread__grid,
  .ev2-spread--flip .ev2-spread__grid,
  .ev2-common__head,
  .ev2-voices__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ev2-spread--flip .ev2-spread__visual {
    order: 0;
  }

  .ev2-spread__visual {
    margin-bottom: 40px;
  }

  .ev2-stat {
    right: 14px;
  }

  .ev2-spread--flip .ev2-spread__visual {
    margin-bottom: 0;
  }

  .ev2-sboard {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100% - 28px);
    max-width: 420px;
    margin: -64px 0 0 14px;
  }

  .ev2-voices__side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .ev2-voices__controls {
    margin-top: 0;
  }

  .ev2-pillar {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .ev2-text {
    font-size: 16px;
  }

}

@media (max-width: 575px) {
  .ev2-hero {
    padding-top: 124px;
  }

  .ev2-crumbs {
    margin-bottom: 24px;
  }

  .ev2-stat {
    right: 10px;
    bottom: -40px;
    width: 64%;
    padding: 16px 18px 18px;
  }

  .ev2-voice blockquote p {
    font-size: 24px;
  }
}

/* Phones and small tablets -------------------------------------------- */

.ev2 a,
.ev2 button {
  -webkit-tap-highlight-color: transparent;
}

.ev2 .ogency-btn {
  transition: color .5s ease, transform .2s ease;
}

@media (hover: none), (pointer: coarse) {

  .ev2 .ogency-btn:active,
  .ev2-voices__btn:active {
    transform: scale(.97);
  }

}

@media (max-width: 767px) {
  .ev2-hero {
    background-size: calc(100% / 2) 100%, auto;
  }

  .ev2-hero__lead {
    margin-top: 22px;
  }

  .ev2-spread,
  .ev2-common,
  .ev2-voices {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .ev2-cta {
    padding: 96px 0;
  }

  .ev2-h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .ev2-text {
    margin-top: 16px;
    font-size: 15.5px;
    line-height: 1.7;
  }

  .ev2-spread__visual {
    margin-bottom: 52px;
  }

  .ev2-results {
    margin-top: 22px;
  }

  .ev2-results li {
    padding: 11px 0 11px 28px;
    font-size: 14.5px;
  }

  .ev2-results li::before {
    top: 17px;
  }

  .ev2-verdict {
    margin: 20px 0 26px;
    font-size: 15px;
  }

  .ev2-common__head .ev2-text {
    margin-top: 0;
  }

  .ev2-pillars {
    margin-top: 36px;
  }

  .ev2-pillar {
    gap: 8px;
    padding: 18px 0 20px;
  }

  .ev2-pillar__word {
    font-size: clamp(44px, 13vw, 64px);
  }

  .ev2-pillar__body h3 {
    font-size: 19px;
  }

  .ev2-pillar__body p {
    font-size: 15px;
  }

  .ev2-voice figcaption {
    margin-top: 24px;
  }

  .ev2-cta__lead {
    margin: 20px 0 30px;
  }
}

@media (max-width: 575px) {

  .ev2-meta {
    gap: 6px;
  }

  .ev2-meta span {
    padding: 4px 8px 3px;
    font-size: 11px;
    letter-spacing: .08em;
  }

  .ev2-voice blockquote p {
    font-size: 22px;
  }

  .ev2-voice figcaption span {
    flex-basis: 100%;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .ev2 *,
  .ev2 *::before,
  .ev2 *::after {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}
