:root {
  --impact-cyan: #67e8f9;
  --impact-blue: #60a5fa;
  --impact-violet: #c4b5fd;
  --impact-amber: #fbbf24;
}

html { background: var(--bg); }

.secondary-shell-impact .secondary-shell-inner > nav.secondary-shell-links {
  position: static;
  inset: auto;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(45, 212, 191, .16), transparent 25rem),
    radial-gradient(circle at 88% 18%, rgba(96, 165, 250, .14), transparent 28rem),
    radial-gradient(circle at 72% 62%, rgba(168, 85, 247, .1), transparent 34rem),
    linear-gradient(180deg, #05070f 0%, #07101b 38%, #080815 72%, #05070f 100%) !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .62;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(103,232,249,.75) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(196,181,253,.62) 0 1px, transparent 1.5px);
  background-size: 157px 163px, 233px 227px, 311px 293px;
  background-position: 17px 23px, 89px 71px, 151px 113px;
}

body::after {
  content: '';
  position: fixed;
  inset: 62px 0 0;
  z-index: -1;
  pointer-events: none;
  opacity: .52;
  background:
    radial-gradient(ellipse at 88% 9%, transparent 0 74px, rgba(103,232,249,.2) 75px 76px, transparent 77px 105px, rgba(103,232,249,.1) 106px 107px, transparent 108px),
    radial-gradient(circle at 88% 9%, rgba(96,165,250,.34) 0 18px, rgba(37,99,235,.12) 36px, transparent 68px),
    radial-gradient(ellipse at 5% 72%, transparent 0 92px, rgba(251,191,36,.13) 93px 94px, transparent 95px),
    linear-gradient(116deg, transparent 0 43%, rgba(103,232,249,.035) 43.2% 43.3%, transparent 43.5%);
}

body > .container {
  width: min(1220px, 100%);
  position: relative;
}

.hero {
  position: relative;
  width: 100vw;
  max-width: none;
  min-height: clamp(520px, 68vh, 650px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  margin: 0 calc(50% - 50vw) 1.5rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
  border-radius: 0;
  background: #07101b;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  transform: none;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse 72% 62% at 24% 84%, rgba(3,7,18,.88) 0%, rgba(3,7,18,.5) 42%, transparent 72%),
    linear-gradient(90deg, rgba(3,7,18,.58) 0%, rgba(3,7,18,.2) 40%, transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(103,232,249,.16);
  pointer-events: none;
}

.impact-hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  filter: brightness(1.08) saturate(1.16) contrast(1.02);
}

.hero::after {
  content: 'A2SV  /  2019  →';
  align-self: flex-start;
  margin-top: 1.35rem;
  padding: .4rem .72rem;
  border: 1px solid rgba(103,232,249,.2);
  border-radius: 999px;
  color: var(--impact-cyan);
  background: rgba(6,14,26,.66);
  font: 700 .67rem/1 'Fira Code', monospace;
  letter-spacing: .08em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #f8fafc !important;
  text-align: start;
  text-shadow: 0 12px 40px rgba(0,0,0,.45);
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: .98;
  position: relative;
}

.hero p {
  max-width: 620px;
  margin: 1.25rem 0 0;
  color: #d8e2f0;
  text-align: start;
  text-shadow: 0 5px 24px rgba(0,0,0,.72);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  position: relative;
}

.stats-grid { position: relative; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat-card,
.section,
.cost-section {
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(13,25,40,.76), rgba(10,13,29,.66));
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--impact-cyan), transparent 82%);
  opacity: .72;
}

.stat-card:nth-child(1) .stat-number {
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(2) .stat-number {
  background: linear-gradient(135deg, #a78bfa, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(3) .stat-number {
  background: linear-gradient(135deg, #fbbf24, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(4) .stat-number {
  background: linear-gradient(135deg, #60a5fa, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(5) .stat-number {
  background: linear-gradient(135deg, #34d399, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(6) .stat-number {
  background: linear-gradient(135deg, #fb923c, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section {
  position: relative;
  padding: clamp(2rem, 4vw, 3.4rem);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(9,22,35,.72), rgba(10,10,25,.62));
  box-shadow: var(--shadow);
}

.section:has(.companies-grid) {
  background:
    radial-gradient(circle at 92% 8%, rgba(96,165,250,.11), transparent 24rem),
    linear-gradient(145deg, rgba(8,23,36,.76), rgba(9,12,27,.64));
}

.section:has(.photo-grid),
.section:has(img[src*='/images/impact/']) {
  background:
    radial-gradient(circle at 8% 92%, rgba(168,85,247,.1), transparent 25rem),
    linear-gradient(145deg, rgba(15,13,31,.73), rgba(7,21,27,.64));
}

.section:has(.timeline) {
  background:
    radial-gradient(circle at 90% 12%, rgba(251,191,36,.1), transparent 24rem),
    linear-gradient(145deg, rgba(24,18,11,.72), rgba(8,18,28,.66));
}

.section:has([onclick*='openPdf']),
.section:has([onclick*='pdfViewer']) {
  background:
    radial-gradient(circle at 10% 10%, rgba(45,212,191,.11), transparent 24rem),
    linear-gradient(145deg, rgba(7,24,26,.76), rgba(12,12,30,.66));
}

.impact-notes-section {
  background:
    radial-gradient(circle at 92% 12%, rgba(251,191,36,.1), transparent 22rem),
    radial-gradient(circle at 8% 88%, rgba(103,232,249,.08), transparent 24rem),
    linear-gradient(145deg, rgba(18,17,31,.76), rgba(7,20,29,.66));
}

.impact-notes-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.impact-notes-head .subtitle { margin-bottom: 0; text-align: start; }

.impact-notes-all {
  flex: 0 0 auto;
  color: var(--impact-cyan);
  font: 750 .82rem/1.3 Inter, sans-serif;
}

.impact-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.impact-note-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.impact-note-card:hover,
.impact-note-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(103,232,249,.3);
  background: rgba(255,255,255,.065);
}

.impact-note-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.impact-note-body {
  flex: 1;
  min-width: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
}

.impact-note-kicker {
  color: var(--impact-amber);
  font: 750 .66rem/1 'Fira Code', monospace;
  text-transform: uppercase;
}

.impact-note-body strong {
  font-size: 1rem;
  line-height: 1.35;
}

.impact-note-copy {
  flex: 1;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.58;
}

.impact-note-read {
  color: var(--impact-cyan);
  font-size: .78rem;
  font-weight: 750;
}

.section::before,
.cost-section::before {
  content: '';
  position: absolute;
  inset: 0 10% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--impact-cyan), var(--impact-violet), transparent);
  opacity: .52;
}

.section h2,
.cost-section h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); }

.company-badge,
.impact-photo-card,
.timeline-item {
  background: rgba(255,255,255,.045);
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
}

.cost-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(96,165,250,.15), transparent 24rem),
    linear-gradient(145deg, rgba(10,23,38,.8), rgba(15,10,31,.74));
}

footer {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(45,212,191,.14), transparent 52%),
    rgba(4,7,14,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

[data-theme='light'] body {
  background:
    radial-gradient(circle at 10% 8%, rgba(20,184,166,.22), transparent 26rem),
    radial-gradient(circle at 90% 18%, rgba(59,130,246,.18), transparent 30rem),
    radial-gradient(circle at 70% 70%, rgba(139,92,246,.11), transparent 34rem),
    linear-gradient(180deg, #d7eeea 0%, #e8f3f6 42%, #eceaf5 72%, #dcefeb 100%) !important;
}

[data-theme='light'] body::before {
  opacity: .48;
  filter: contrast(1.15) saturate(1.25);
}

[data-theme='light'] body::after { opacity: .64; mix-blend-mode: multiply; }

[data-theme='light'] .hero::before { box-shadow: inset 0 0 0 1px rgba(13,147,115,.2); }
[data-theme='light'] body.impact-story-page .hero h1 {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc;
}
[data-theme='light'] body.impact-story-page .hero h1 .gradient-text {
  -webkit-text-fill-color: transparent;
}
[data-theme='light'] .hero::after {
  color: #99f6e4;
  border-color: rgba(153,246,228,.32);
  background: rgba(3,7,18,.66);
}

[data-theme='light'] .stat-card,
[data-theme='light'] .section,
[data-theme='light'] .cost-section {
  background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(233,248,247,.68));
  border-color: rgba(13,147,115,.15);
}

[data-theme='light'] .section:has(.companies-grid) {
  background: linear-gradient(145deg, rgba(240,251,255,.86), rgba(220,244,247,.74));
}

[data-theme='light'] .section:has(.photo-grid),
[data-theme='light'] .section:has(img[src*='/images/impact/']) {
  background: linear-gradient(145deg, rgba(249,244,255,.84), rgba(229,242,249,.76));
}

[data-theme='light'] .section:has(.timeline) {
  background: linear-gradient(145deg, rgba(255,249,232,.86), rgba(229,245,243,.76));
}

[data-theme='light'] .section:has([onclick*='openPdf']),
[data-theme='light'] .section:has([onclick*='pdfViewer']) {
  background: linear-gradient(145deg, rgba(232,250,246,.86), rgba(238,239,255,.76));
}

[data-theme='light'] .impact-notes-section {
  background: linear-gradient(145deg, rgba(255,248,232,.86), rgba(228,245,246,.78));
}

[data-theme='light'] .impact-note-card {
  color: #10202a;
  border-color: rgba(13,147,115,.15);
  background: rgba(255,255,255,.68);
  box-shadow: 0 14px 34px rgba(20,82,88,.1);
}

[data-theme='light'] .impact-note-copy { color: #526978; }
[data-theme='light'] .impact-notes-all,
[data-theme='light'] .impact-note-read { color: #08785f; }

[data-theme='light'] .company-badge,
[data-theme='light'] .impact-photo-card,
[data-theme='light'] .timeline-item { background: rgba(255,255,255,.62); }

[data-theme='light'] footer {
  color: #16323b;
  background: rgba(220,244,240,.76);
}

@media (max-width: 700px) {
  body::after { opacity: .34; }
  .hero { min-height: 590px; padding: 1.5rem 1.15rem 2rem; }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(3,7,18,.82) 0%, rgba(3,7,18,.48) 39%, rgba(3,7,18,.02) 70%),
      linear-gradient(90deg, rgba(3,7,18,.18), transparent 64%);
  }
  .impact-hero-photo { object-position: 50% 50%; }
  .hero h1 { max-width: 100%; font-size: clamp(2.65rem, 14vw, 4rem); }
  .hero p { max-width: 92%; margin-top: .9rem; }
  .hero::after { margin-top: 1rem; }
  .section { padding: 1.5rem 1rem; border-radius: 16px; }
  .stat-card { padding: 25px 18px; }
  .impact-notes-head { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .impact-notes-grid { grid-template-columns: 1fr; }
}

@media (min-width: 701px) and (max-width: 980px) {
  .impact-notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-note-card:last-child { grid-column: 1 / -1; width: calc(50% - .5rem); justify-self: center; }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { transition: none; }
}

/* Impact storytelling upgrade */
.impact-story-page .fade-in {
  opacity: 1 !important;
  transform: none !important;
}

.impact-story-page .companies-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  max-width: none;
  margin: 1.8rem 0 0;
}

.company-proof {
  min-width: 0;
  min-height: 112px;
  padding: 1rem;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: .8rem;
  border: 1px solid rgba(103,232,249,.13);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.company-proof:hover {
  transform: translateY(-3px);
  border-color: rgba(103,232,249,.36);
  background: linear-gradient(145deg, rgba(103,232,249,.09), rgba(255,255,255,.035));
}

.company-proof-logo {
  min-height: 44px;
  padding: .4rem .65rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255,255,255,.96);
}

.company-proof-logo img {
  width: 100%;
  max-width: 124px;
  height: 34px;
  object-fit: contain;
}

.company-proof-result {
  min-height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.company-proof-result strong {
  color: var(--impact-cyan);
  font: 850 1.65rem/1 'Fira Code', monospace;
  font-variant-numeric: tabular-nums;
}

.company-proof-source {
  width: fit-content;
  margin: 1rem 0 0 auto;
  display: block;
  color: var(--impact-cyan);
  font-size: .72rem;
  font-weight: 700;
}

.impact-story-page .photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 350px;
  gap: 1rem;
  position: relative;
  left: 50%;
  width: min(1320px, calc(100vw - 40px));
  margin: 2rem 0 0;
  transform: translateX(-50%);
}

.impact-story-page .story-intro {
  max-width: 860px;
  margin-inline: auto;
  font-size: clamp(.92rem, 1.4vw, 1.08rem);
  line-height: 1.78;
  text-align: center;
}

.impact-story-page .impact-photo-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: #07101b;
}

.impact-story-page .impact-photo-card:nth-child(1) { grid-column: 1 / -1; min-height: 520px; }
.impact-story-page .impact-photo-card:nth-child(6) { grid-column: 1 / -1; min-height: 430px; }
[dir='rtl'] .impact-story-page .photo-grid { left: auto; right: 50%; transform: translateX(50%); }

.impact-story-page .impact-photo-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform .45s ease, filter .3s ease;
}

.impact-story-page .impact-photo-card:hover img { transform: scale(1.035); filter: saturate(1.08); }
.impact-story-page .impact-photo-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 2.7rem 1rem 1rem;
  color: #f8fafc;
  background: linear-gradient(180deg, transparent, rgba(3,7,18,.9) 58%, rgba(3,7,18,.98));
}

.impact-story-page .impact-photo-copy strong {
  display: block;
  margin: 0 0 .25rem;
  color: #f8fafc !important;
  font-size: clamp(.82rem, 1.2vw, 1rem);
}

.impact-story-page .impact-photo-copy span {
  display: block;
  color: #c8d3e3 !important;
  font-size: clamp(.68rem, .9vw, .78rem);
  line-height: 1.42;
}

.impact-story-page .timeline {
  position: relative;
  display: block;
  max-width: 920px;
  margin: 2.5rem auto 0;
  padding: 0 0 0 2.75rem;
  overflow: visible;
}

.impact-story-page .timeline::before {
  display: block;
  left: .55rem;
  top: .75rem;
  bottom: .75rem;
  width: 2px;
  background: linear-gradient(180deg, var(--impact-cyan), var(--impact-violet) 52%, var(--impact-amber));
  box-shadow: 0 0 18px rgba(103,232,249,.18);
}
.impact-story-page .timeline-item {
  min-height: 0;
  margin: 0 0 1rem;
  padding: 1.2rem 1.35rem;
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr) 210px;
  align-items: center;
  gap: 1.2rem;
  border: 1px solid rgba(251,191,36,.14);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(103,232,249,.055), transparent 38%),
    rgba(255,255,255,.035);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.timeline-photo {
  width: 210px;
  height: 124px;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(103,232,249,.18);
  border-radius: 6px;
  background-image: var(--timeline-photo);
  background-size: var(--timeline-photo-size, 330%);
  background-position: var(--timeline-photo-position, center);
  background-repeat: no-repeat;
  background-color: rgba(3,7,18,.78);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  transition: transform .25s ease, border-color .25s ease;
}

.timeline-item:hover .timeline-photo { transform: scale(1.025); border-color: rgba(103,232,249,.42); }

.impact-story-page .timeline-item:hover {
  transform: translateX(5px);
  border-color: rgba(103,232,249,.28);
  background: linear-gradient(105deg, rgba(103,232,249,.09), transparent 42%), rgba(255,255,255,.05);
}

.impact-story-page .timeline-item::before {
  position: absolute;
  left: -2.62rem;
  top: 1.45rem;
  width: 13px;
  height: 13px;
  border: 2px solid var(--impact-cyan);
  background: var(--bg);
  box-shadow: 0 0 0 5px rgba(103,232,249,.11), 0 0 18px rgba(103,232,249,.46);
}

.impact-story-page .timeline-year {
  width: fit-content;
  margin: 0;
  padding: .32rem .6rem;
  border: 1px solid rgba(103,232,249,.2);
  border-radius: 6px;
  color: var(--impact-cyan);
  background: rgba(103,232,249,.07);
  font: 800 .78rem/1.1 'Fira Code', monospace;
}

.impact-story-page .timeline-text {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.65;
}

.founder-story {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  overflow: hidden;
  border-color: rgba(103,232,249,.18);
  background:
    radial-gradient(circle at 88% 18%, rgba(139,92,246,.14), transparent 18rem),
    linear-gradient(120deg, rgba(103,232,249,.07), transparent 42%),
    rgba(7,13,25,.76);
}

.founder-story::before {
  content: '“';
  position: absolute;
  inset: -.9rem 1.3rem auto auto;
  color: rgba(103,232,249,.09);
  font: 900 11rem/1 Georgia, serif;
}

.founder-story-copy { position: relative; max-width: 900px; margin-inline: auto; text-align: start; }
.founder-story-kicker {
  display: block;
  margin-bottom: .85rem;
  color: var(--impact-cyan);
  font: 750 .72rem/1.2 'Fira Code', monospace;
  text-transform: uppercase;
}
.founder-story h2 { max-width: 760px; margin: 0 0 1.35rem; text-align: start; font-size: clamp(2rem, 4vw, 3.35rem); }
.founder-story p { max-width: 860px; margin: 0 0 1rem; color: var(--muted); font-size: clamp(.94rem, 1.35vw, 1.08rem); line-height: 1.8; }
.founder-story-lead { color: var(--text) !important; font-size: clamp(1.02rem, 1.6vw, 1.2rem) !important; }
.founder-story-signature { margin-top: 1.5rem; padding: 0; border: 0; display: flex; flex-direction: column; gap: .2rem; }
.founder-story-signature strong { color: var(--text); font-size: .92rem; }
.founder-story-signature span { color: var(--impact-cyan); font-size: .72rem; }

.impact-story-page .cost-highlight { display: none; }
.impact-story-page .cost-section h2 { max-width: 900px; margin-inline: auto; }
.impact-story-page .cost-section p:first-of-type { margin-top: 1.7rem; }

.impact-documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1120px;
  margin: 2rem auto 0;
}

.impact-document-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid rgba(103,232,249,.14);
  border-radius: 8px;
  background: rgba(6,13,25,.72);
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease;
}

.impact-document-card:hover { transform: translateY(-3px); border-color: rgba(103,232,249,.4); }
.impact-document-cover { width: 100%; height: 620px; display: block; object-fit: contain; object-position: top center; background: #fff; }
.impact-document-info {
  min-width: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: .7rem;
  text-align: start;
}

.impact-document-info > span { color: var(--impact-cyan) !important; font-size: .65rem !important; font-weight: 800 !important; }
.impact-document-info > div { color: var(--text); font-size: 1.18rem; font-weight: 800; line-height: 1.3; }
.impact-document-info p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.impact-document-info a { margin-top: auto; color: var(--impact-cyan); font-size: .74rem; font-weight: 800; }

.impact-story-page .cost-section {
  max-width: 1180px;
  padding: 0;
  overflow: hidden;
  text-align: start;
  background:
    radial-gradient(circle at 88% 16%, rgba(139,92,246,.16), transparent 18rem),
    rgba(7,12,25,.82);
}

.cost-story-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 570px; }
.cost-story-visual { position: relative; min-height: 100%; margin: 0; overflow: hidden; background: #07101b; }
.cost-story-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 48%, rgba(7,12,25,.9) 100%), linear-gradient(0deg, rgba(3,7,18,.42), transparent 52%);
}
.cost-story-visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; filter: saturate(1.08) contrast(1.03); }
.cost-story-content { padding: clamp(2rem, 4vw, 4rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.impact-story-page .cost-story-content h2 { margin: 0 0 1.4rem; text-align: start; font-size: clamp(2rem, 3.5vw, 3.25rem); }
.impact-story-page .cost-story-content p { max-width: 640px; margin: 0 0 1.25rem; text-align: start; font-size: .98rem; line-height: 1.75; }
.impact-story-page .cost-story-content .cta-btn { margin-top: .6rem; }

[data-theme='light'] .company-proof {
  border-color: rgba(13,147,115,.14);
  background: rgba(255,255,255,.58);
  box-shadow: 0 12px 28px rgba(20,82,88,.08);
}

[data-theme='light'] .company-proof-result strong,
[data-theme='light'] .company-proof-source { color: #08785f; }
[data-theme='light'] .impact-document-card { background: rgba(255,255,255,.72); border-color: rgba(13,147,115,.16); }
[data-theme='light'] .impact-document-info > div { color: #10202a; }
[data-theme='light'] .impact-document-info p { color: #526978; }
[data-theme='light'] .impact-document-info a { color: #08785f; }
[data-theme='light'] .impact-story-page .timeline-item { border-color: rgba(180,83,9,.15); background: rgba(255,255,255,.6); }
[data-theme='light'] .impact-story-page .cost-section { background: radial-gradient(circle at 88% 16%, rgba(109,40,217,.1), transparent 18rem), rgba(255,255,255,.76); }
[data-theme='light'] .cost-story-visual::after { background: linear-gradient(90deg, transparent 52%, rgba(239,250,247,.82) 100%), linear-gradient(0deg, rgba(3,7,18,.25), transparent 52%); }
[data-theme='light'] .founder-story { background: radial-gradient(circle at 88% 18%, rgba(109,40,217,.1), transparent 18rem), linear-gradient(120deg, rgba(13,147,115,.08), transparent 42%), rgba(255,255,255,.7); }
[data-theme='light'] .impact-story-page .timeline-item::before { background: #e5f7f3; }

.impact-notes-head { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.impact-notes-head .subtitle { text-align: center; }
.impact-notes-all { margin-top: .15rem; }

@media (max-width: 900px) {
  .impact-story-page .companies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-story-page .photo-grid,
  [dir='rtl'] .impact-story-page .photo-grid { left: auto; right: auto; width: 100%; margin-inline: 0; transform: none; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 300px; }
  .impact-story-page .impact-photo-card:nth-child(n) { grid-column: auto; min-height: 0; }
  .impact-story-page .impact-photo-card:first-child,
  .impact-story-page .impact-photo-card:last-child { grid-column: 1 / -1; min-height: 390px; }
  .impact-documents-grid { grid-template-columns: 1fr; max-width: 680px; }
  .impact-story-page .timeline-item { grid-template-columns: 90px minmax(0, 1fr) 170px; }
  .timeline-photo { width: 170px; height: 108px; }
  .cost-story-layout { grid-template-columns: 1fr; }
  .cost-story-visual { min-height: 420px; }
  .cost-story-visual::after { background: linear-gradient(0deg, rgba(7,12,25,.88), transparent 65%); }
}

@media (max-width: 560px) {
  .impact-story-page .companies-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .company-proof { min-height: 96px; padding: .7rem; }
  .company-proof-logo img { height: 28px; }
  .impact-story-page .photo-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .impact-story-page .impact-photo-card:first-child,
  .impact-story-page .impact-photo-card:last-child { grid-column: auto; min-height: 360px; }
  .impact-story-page .timeline { padding-left: 2rem; }
  .impact-story-page .timeline-item { grid-template-columns: 1fr; gap: .75rem; padding: 1rem; }
  .impact-story-page .timeline-item::before { left: -1.87rem; }
  .timeline-photo { width: 100%; height: 190px; grid-row: 2; }
  .impact-story-page .timeline-text { grid-row: 3; }
  .founder-story { padding: 1.4rem 1.15rem; }
  .founder-story::before { font-size: 7rem; }
  .impact-document-cover { height: min(128vw, 560px); }
  .impact-document-info { padding: 1rem; }
  .cost-story-visual { min-height: 320px; }
  .cost-story-content { padding: 1.5rem 1.15rem 1.8rem; }
  .impact-story-page .cost-story-content h2 { font-size: 1.9rem; }
}
