/* GiveActions — design system
   Concept: "the auditor's pen" — claims get scanned, annotated, stamped.
   Palette: green-tinted paper, green-black ink, pine/brand greens, audit red.
   Type: Fraunces (display) · Instrument Sans (body) · IBM Plex Mono (labels). */

:root {
  --paper: #fafdfa;
  --paper-2: #eef5ef;
  --ink: #06201b;
  --ink-60: rgba(6, 32, 27, 0.64);
  --ink-30: rgba(6, 32, 27, 0.3);
  --pine: #14594c;
  --brand: #238c79;
  --brand-soft: #2ca089;
  --mint: #cde9e0;
  --coral: #ef8f71;
  --coral-soft: #fbe0d5;
  --sun: #ffdc9c;
  --alert: #d9532b;
  --alert-soft: #f7ded4;
  --ok: #1f8a5d;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --w: min(1160px, calc(100vw - 3rem));
  --radius: 20px;
  --shadow: 0 18px 40px -22px rgba(12, 43, 37, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--pine);
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  width: var(--w);
  margin-inline: auto;
}

/* ---------- typography ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-family: var(--font-body);
  font-weight: 650;
  letter-spacing: 0;
}
p {
  margin: 0 0 1em;
}
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-60);
  max-width: 38em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2.2em;
  height: 2px;
  background: var(--coral);
}

/* the annotation mark — highlighter stroke under key words */
.mark {
  position: relative;
  white-space: nowrap;
}
.mark::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.04em;
  height: 0.34em;
  background: var(--coral-soft);
  z-index: -1;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.25s;
}
.in-view .mark::after,
.mark.static::after {
  transform: scaleX(1);
}
.mark--alert::after {
  background: var(--alert-soft);
}

/* verdict chips — the product's own language */
.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  white-space: nowrap;
}
.chip--risk {
  background: var(--alert-soft);
  color: #9c3413;
}
.chip--ok {
  background: var(--mint);
  color: var(--pine);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--pine);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  background: var(--brand);
}
.btn--ghost {
  border-color: var(--ink-30);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--pine);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-color: rgba(12, 43, 37, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 0;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  align-items: center;
}
.nav__links a {
  text-decoration: none;
  color: var(--ink-60);
  font-weight: 550;
  font-size: 0.98rem;
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--ink);
}
/* the CTA inside the nav must keep button colors (link rules above are
   more specific than .btn--primary alone) */
.nav__links a.btn {
  color: #fff;
}
.nav__logo img {
  height: 30px;
  width: auto;
}
.nav__burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}
.lang {
  position: relative;
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-60);
  background: transparent;
  border: 1.5px solid rgba(6, 32, 27, 0.14);
  border-radius: 999px;
  padding: 0.5em 0.9em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lang__btn:hover,
.lang__btn[aria-expanded="true"] {
  border-color: var(--coral);
  color: var(--ink);
}
.lang__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid rgba(6, 32, 27, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  z-index: 80;
  animation: lang-pop 0.22s var(--ease);
}
.lang__menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.55em 0.9em;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-60);
  transition: background 0.15s, color 0.15s;
}
.lang__menu a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.lang__menu a.active {
  color: var(--pine);
  font-weight: 650;
}
.lang__menu a.active span {
  color: var(--coral);
}
@keyframes lang-pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* the scanned-ad exhibit */
.exhibit {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  position: relative;
  border: 1px solid rgba(12, 43, 37, 0.06);
}
.exhibit__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-30);
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
}
.exhibit__claim {
  position: relative;
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--paper);
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}
.exhibit__claim .chip {
  opacity: 0;
  transform: scale(0.7);
}
.exhibit.playing .exhibit__claim .chip {
  animation: stamp 0.5s var(--ease) forwards;
}
.exhibit.playing .exhibit__claim:nth-child(2) .chip {
  animation-delay: 1.1s;
}
.exhibit.playing .exhibit__claim:nth-child(3) .chip {
  animation-delay: 2.3s;
}
.exhibit.playing .exhibit__claim:nth-child(4) .chip {
  animation-delay: 3.5s;
}
.exhibit__scan {
  position: absolute;
  inset: 0;
  width: 34%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(35, 140, 121, 0.12),
    transparent
  );
  border-right: 2px solid var(--brand);
  transform: translateX(-110%);
  pointer-events: none;
}
.exhibit.playing .exhibit__scan {
  animation: sweep 4.6s var(--ease) 0.2s infinite;
}
@keyframes sweep {
  0% {
    transform: translateX(-110%);
  }
  70%,
  100% {
    transform: translateX(320%);
  }
}
@keyframes stamp {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- sections ---------- */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section--tint {
  background: var(--paper-2);
}
.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--ink .eyebrow {
  color: var(--brand-soft);
}
.section--ink .lead,
.section--ink p {
  color: rgba(247, 250, 247, 0.72);
}
.section__head {
  max-width: 44em;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* proof bar */
.proof {
  border-block: 1px solid rgba(12, 43, 37, 0.1);
  padding: 1.4rem 0;
}
.proof__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-60);
}
.proof__inner strong {
  color: var(--ink);
}

/* cards */
.cards {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid rgba(12, 43, 37, 0.07);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px 16px 16px 4px;
  background: var(--mint);
  display: grid;
  place-items: center;
  color: var(--pine);
}
/* warm up every other card — the coral accent of the brand */
.cards .card:nth-child(3n + 2) .card__icon {
  background: var(--coral-soft);
  color: #b4532f;
}
.cards .card:nth-child(3n) .card__icon {
  background: var(--sun);
  color: #8a6317;
}

/* human illustrations */
.illu {
  border-radius: 38% 62% 55% 45% / 45% 42% 58% 55%;
  background: var(--mint);
  padding: clamp(1rem, 2vw, 2rem);
  max-width: 420px;
  margin-inline: auto;
}
.illu--coral {
  background: var(--coral-soft);
}
.illu--sun {
  background: var(--sun);
}
.card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.card--ink {
  background: var(--pine);
  border: 0;
  color: #fff;
}
.card--ink p {
  color: rgba(255, 255, 255, 0.75);
}

/* stats */
.stats {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat {
  border-left: 3px solid var(--brand);
  padding-left: 1.2rem;
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--pine);
}
.section--ink .stat__value {
  color: var(--brand-soft);
}
.stat__label {
  color: var(--ink-60);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}
.section--ink .stat__label {
  color: rgba(247, 250, 247, 0.6);
}

/* logo marquee */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
  align-items: center;
  padding: 0.6rem 0;
  will-change: transform;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
/* two identical logo sequences, spacing inside each unit → shifting
   exactly half of the track gives a seamless infinite loop */
.marquee__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 60px;
  flex: none;
  margin-right: 2.75rem;
}
.marquee__logo img {
  max-height: 46px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.35s var(--ease), transform 0.35s var(--ease);
}
.marquee__logo:hover img,
.marquee__logo:focus-visible img {
  filter: none;
  transform: scale(1.06);
}
.marquee__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-30);
  white-space: nowrap;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* blog */
.posts {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(12, 43, 37, 0.07);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.post-card__img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  background: var(--mint);
}
.post-card__body {
  padding: 1.4rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.post-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-30);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  gap: 1em;
}
.post-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.post-card--more {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.8rem;
  padding: 2rem;
  background: var(--mint);
  border: 0;
  color: var(--pine);
}
.post-card--more h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  max-width: 11em;
}
.post-card--more__arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
  font-size: 1.4rem;
  transition: transform 0.3s var(--ease);
}
.post-card--more:hover .post-card--more__arrow {
  transform: translateX(6px);
}

/* article */
.article {
  max-width: 720px;
  margin-inline: auto;
}
.article__cover {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 2.5rem;
}
.richtext {
  font-size: 1.1rem;
}
.richtext p {
  margin-bottom: 1.3em;
}
.richtext h2,
.richtext h3 {
  margin-top: 1.6em;
}
.richtext img {
  border-radius: 12px;
  margin: 1.5em 0;
}
.richtext a {
  color: var(--brand);
}
.richtext blockquote {
  border-left: 3px solid var(--brand);
  margin: 1.5em 0;
  padding: 0.3em 0 0.3em 1.2em;
  color: var(--ink-60);
  font-style: italic;
}

/* forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}
.field label {
  font-weight: 600;
  font-size: 0.95rem;
}
.field input,
.field textarea {
  font: inherit;
  padding: 0.85em 1em;
  border-radius: 14px;
  border: 1.5px solid rgba(12, 43, 37, 0.16);
  background: #fff;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.notice {
  background: var(--mint);
  color: var(--pine);
  padding: 1rem 1.3rem;
  border-radius: 14px;
  font-weight: 550;
}

/* newsletter strip */
.newsletter {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.newsletter input {
  flex: 1;
  min-width: 240px;
  font: inherit;
  padding: 0.85em 1.2em;
  border-radius: 999px;
  border: 1.5px solid rgba(247, 250, 247, 0.25);
  background: rgba(247, 250, 247, 0.08);
  color: var(--paper);
}
.newsletter input::placeholder {
  color: rgba(247, 250, 247, 0.5);
}

/* footer */
.footer {
  background: var(--ink);
  color: rgba(247, 250, 247, 0.7);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  margin-top: 0;
}
.footer a {
  color: rgba(247, 250, 247, 0.85);
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 3rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(247, 250, 247, 0.4);
  margin: 0 0 0.4rem;
}
.footer__legal {
  border-top: 1px solid rgba(247, 250, 247, 0.12);
  padding-top: 1.6rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.12s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.36s;
}

/* ---------- inline edit mode ---------- */
.edit-toggle {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.8em 1.4em;
  font: 600 0.9rem var(--font-body);
  cursor: pointer;
  box-shadow: var(--shadow);
}
body.editing [data-tb] {
  outline: 2px dashed var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
  cursor: text;
  min-width: 1em;
  display: inline-block;
}
body.editing [data-tb]:focus {
  outline-style: solid;
  background: #fff;
}
[data-tb].tb-saved {
  animation: tb-flash 0.8s;
}
@keyframes tb-flash {
  0% {
    background: var(--mint);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 1.4rem;
    gap: 1.1rem;
    border-bottom: 1px solid rgba(12, 43, 37, 0.1);
    box-shadow: var(--shadow);
  }
  .nav__links.open {
    display: flex;
  }
  .nav__burger {
    display: block;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mark::after {
    transform: scaleX(1);
    transition: none;
  }
  .exhibit.playing .exhibit__scan {
    animation: none;
  }
  .exhibit.playing .exhibit__claim .chip {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- hero analysis deck ---------- */
.hero {
  position: relative;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -80px;
  background: color-mix(in srgb, var(--mint) 75%, transparent);
  animation: blob-drift 14s ease-in-out infinite alternate;
}
.hero::after {
  width: 300px;
  height: 300px;
  left: 32%;
  bottom: -140px;
  background: color-mix(in srgb, var(--coral-soft) 70%, transparent);
  animation: blob-drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes blob-drift {
  to {
    transform: translate(-40px, 30px) scale(1.12);
  }
}

.deck {
  perspective: 1400px;
  transform: translateY(calc(var(--scrollp, 0) * -26px));
}
.deck__stage {
  position: relative;
  height: 250px;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--tiltx, 0) * 1deg + var(--scrollp, 0) * 9deg))
    rotateY(calc(var(--tilty, 0) * 1deg));
  transition: transform 0.25s ease-out;
}
.deck__card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem 1.8rem;
  background: #fff;
  border: 1px solid rgba(6, 32, 27, 0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-44px) scale(0.88);
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
  will-change: transform, opacity;
}
.deck__card[data-pos="0"],
.deck__card:first-child:not([data-pos]) {
  opacity: 1;
  transform: none;
  z-index: 4;
}
.deck__card:nth-child(2):not([data-pos]) {
  opacity: 0.65;
  transform: translateY(-24px) scale(0.94);
  z-index: 3;
}
.deck__card:nth-child(3):not([data-pos]) {
  opacity: 0.35;
  transform: translateY(-42px) scale(0.89);
  z-index: 2;
}
.deck__card[data-pos="1"] {
  opacity: 0.65;
  transform: translateY(-24px) scale(0.94);
  z-index: 3;
}
.deck__card[data-pos="2"] {
  opacity: 0.35;
  transform: translateY(-42px) scale(0.89);
  z-index: 2;
}
.deck__card.leaving {
  opacity: 0;
  transform: translateY(70px) rotate(-5deg) scale(0.98);
  z-index: 5;
}
.deck__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-30);
}
.deck__claim {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.35;
  margin: auto 0;
  text-wrap: balance;
}
.deck__foot .chip {
  opacity: 0;
  transform: scale(0.6) rotate(-4deg);
}
.deck__card.revealed .deck__foot .chip {
  animation: stamp 0.45s var(--ease) 0.55s forwards;
}
/* highlighter wipe on the risky words */
.hl {
  background: linear-gradient(var(--coral-soft), var(--coral-soft)) no-repeat 0 62% / 0% 42%;
  border-radius: 2px;
}
.hl--ok {
  background-image: linear-gradient(var(--mint), var(--mint));
}
.deck__card.revealed .hl {
  background-size: 100% 42%;
  transition: background-size 0.65s var(--ease) 0.15s;
}
.deck__scan {
  position: absolute;
  inset: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(35, 140, 121, 0.13), transparent);
  border-right: 2px solid var(--brand);
  transform: translateX(-120%);
  pointer-events: none;
}
.deck__card.scanning .deck__scan {
  animation: sweep-once 1.15s var(--ease) forwards;
}
@keyframes sweep-once {
  to {
    transform: translateX(360%);
  }
}

@media (max-width: 900px) {
  .deck__stage {
    height: 215px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }
  .deck,
  .deck__stage {
    transform: none;
  }
  .deck__card,
  .deck__card[data-pos] {
    opacity: 1 !important;
    transform: none !important;
    position: relative;
    inset: auto;
    margin-bottom: 0.9rem;
  }
  .deck__stage {
    height: auto;
  }
  .deck__card .hl {
    background-size: 100% 42%;
  }
  .deck__card .deck__foot .chip {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .deck__scan {
    display: none;
  }
}
