/*
 * Volyn SOS — home.css (FRONT PAGE / slug: home)
 * Page-specific CSS for front-page.php only. Loaded after base.css.
 * Shared chrome (tokens, reset, body, container, top-bar, header/nav, logo,
 * buttons, footer, live-dynamic-system, utilities) lives in base.css — NOT here.
 * Extracted byte-faithfully from the redesign HTML; class names unchanged.
 */

  /* ─── HERO ─────────────────────────────────────── */
  .hero {
    padding: 80px 0 100px;
    position: relative;
    border-bottom: 1px solid var(--line);
  }
  .hero .container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
    align-items: start;
  }
  .hero-kicker {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .hero-kicker::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--forest);
  }
  .hero h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(42px, 6.2vw, 84px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
  }
  .hero h1 em {
    font-style: normal;
    font-weight: 500;
    color: var(--forest);
    letter-spacing: -0.03em;
  }
  .hero-lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 48px;
    font-weight: 400;
  }

  .hero-stats {
    display: flex;
    gap: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }
  .hero-stat-num {
    font-family: var(--display);
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--ink);
  }
  .hero-stat-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 8px;
  }

  /* Donate widget */
  .donate-widget {
    background: var(--forest);
    color: var(--paper);
    padding: 36px;
    position: relative;
  }
  .donate-widget::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid var(--ink);
    pointer-events: none;
  }
  .widget-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(245, 242, 234, 0.15);
  }
  .widget-title {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .widget-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest);
    padding: 4px 8px;
    border: 1px solid var(--forest);
  }

  .widget-toggle {
    display: flex;
    background: rgba(245, 242, 234, 0.08);
    margin-bottom: 24px;
  }
  .widget-toggle button {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--paper);
    padding: 12px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
  }
  .widget-toggle button.active {
    background: var(--paper);
    color: var(--ink);
    opacity: 1;
  }

  .widget-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 242, 234, 0.75);
    margin-bottom: 12px;
  }

  .amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
  }
  .amount-btn {
    background: transparent;
    border: 1px solid rgba(245, 242, 234, 0.2);
    color: var(--paper);
    padding: 14px 8px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .amount-btn:hover {
    border-color: var(--paper);
  }
  .amount-btn.active {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
  }

  .amount-custom {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(245, 242, 234, 0.2);
    color: var(--paper);
    padding: 14px 0;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    outline: none;
  }
  .amount-custom::placeholder {
    color: rgba(245, 242, 234, 0.55);
  }
  .amount-custom:focus {
    border-bottom-color: var(--paper);
  }

  .btn-give {
    width: 100%;
    background: var(--paper);
    color: var(--forest);
    border: none;
    padding: 18px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s ease;
  }
  .btn-give:hover { background: var(--paper-deep); color: var(--forest-deep); }

  .widget-footer {
    margin-top: 20px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 242, 234, 0.7);
    text-align: center;
  }

  /* ─── PRIORITY (current urgent need) ─────────────────────────────── */
  .priority {
    background: var(--forest);
    color: var(--paper);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
  }
  .priority::before {
    content: 'NOW';
    position: absolute;
    top: -40px;
    right: -20px;
    font-family: var(--display);
    font-size: 280px;
    font-weight: 700;
    color: rgba(26, 61, 47, 0.08);
    letter-spacing: -0.03em;
    line-height: 1;
    pointer-events: none;
  }
  .priority .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
  }
  .priority-kicker {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .priority-kicker .pulse {
    width: 8px;
    height: 8px;
  }
  .priority h2 {
    font-family: var(--display);
    font-size: clamp(34px, 4.8vw, 54px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
  }
  .priority-text {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(245, 242, 234, 0.75);
    margin-bottom: 32px;
    max-width: 480px;
  }
  .progress-block {
    margin-bottom: 28px;
  }
  .progress-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
  }
  .progress-row .collected {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .progress-row .goal {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(245, 242, 234, 0.7);
  }
  .progress-bar {
    height: 3px;
    background: rgba(245, 242, 234, 0.15);
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    background: var(--paper);
    width: 50%;
    position: relative;
    transition: width 1s ease;
  }
  .progress-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 9px;
    height: 9px;
    background: var(--paper);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(240, 237, 227, 0.8);
  }
  .progress-meta {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(245, 242, 234, 0.7);
    display: flex;
    justify-content: space-between;
  }

  .priority-countdown {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(240, 237, 227, 0.15);
  }
  .countdown-label-row {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(240, 237, 227, 0.65);
    margin-bottom: 10px;
  }
  .priority-hashtags {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .hashtag {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--paper);
    background: rgba(240, 237, 227, 0.08);
    border: 1px solid rgba(240, 237, 227, 0.18);
    padding: 6px 12px;
    transition: all 0.2s ease;
  }
  .hashtag:hover {
    background: rgba(240, 237, 227, 0.15);
    border-color: rgba(240, 237, 227, 0.35);
  }
  .priority-image-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(240, 237, 227, 0.85);
    margin-top: 16px;
  }

  .priority-actions {
    display: flex;
    gap: 12px;
  }
  .btn-primary, .btn-secondary {
    padding: 16px 28px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid;
    transition: all 0.2s ease;
  }
  .btn-primary {
    background: var(--forest);
    color: var(--paper);
    border-color: var(--forest);
  }
  .btn-primary:hover { background: var(--paper-deep); border-color: var(--paper-deep); color: var(--forest-deep); }
  /* In the dark "priority" block, forest-on-forest blends in — make the primary
     CTA an accent (paper) button, matching .btn-give ("Підтримати медиків") above. */
  .priority .btn-primary {
    background: var(--paper);
    color: var(--forest);
    border-color: var(--paper);
  }
  .priority .btn-primary:hover {
    background: var(--paper-deep);
    border-color: var(--paper-deep);
    color: var(--forest-deep);
  }
  .btn-secondary {
    background: transparent;
    color: var(--paper);
    border-color: rgba(245, 242, 234, 0.55);
  }
  .btn-secondary:hover { border-color: var(--paper); }

  .priority-image {
    aspect-ratio: 4/5;
    background: linear-gradient(180deg, #2D5642 0%, #1A3D2F 100%);
    position: relative;
    overflow: hidden;
  }
  .priority-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(45deg, transparent 0, transparent 2px, rgba(245, 242, 234, 0.03) 2px, rgba(245, 242, 234, 0.03) 4px);
  }
  .priority-image-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: rgba(245, 242, 234, 0.55);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .priority-image-content svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
  }
  .priority-image-meta {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 242, 234, 0.75);
  }

  /* ─── SECTION HEADER ───────────────────────────────────────── */
  .tpl-home section { padding: 100px 0; }
  .section-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 64px;
    align-items: end;
  }
  .section-number {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 12px;
  }
  .section-title {
    font-family: var(--display);
    font-size: clamp(38px, 5.2vw, 68px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
  }
  .section-title em {
    font-style: normal;
    font-weight: 500;
    color: var(--forest);
  }
  /* On dark (forest) sections, forest-on-forest em blends in — use sand accent. */
  .transparency .section-title em,
  .coins .section-title em,
  .subscribe .section-title em { color: var(--sand); }
  .section-lead {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 520px;
    font-weight: 400;
    padding-bottom: 8px;
  }

  /* ─── IMPACT NUMBERS ───────────────────────────────────────── */
  .impact {
    background: var(--paper);
  }
  .impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .impact-item {
    padding: 36px 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
  }
  .impact-num {
    font-family: var(--display);
    font-size: clamp(38px, 4.3vw, 60px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: 12px;
    color: var(--ink);
  }
  .impact-num .unit {
    font-size: 0.5em;
    color: var(--ink-muted);
    margin-left: 4px;
    font-weight: 400;
  }
  .impact-label {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.4;
  }
  .impact-tag {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 16px;
    display: block;
  }

  /* Headline impact */
  .impact-headline {
    text-align: left;
    padding: 80px var(--gutter);
    margin: 0 calc(var(--gutter) * -1);
    background: var(--paper-deep);
    margin-bottom: 0;
    border-top: 1px solid var(--line);
  }
  .impact-headline-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 64px;
    align-items: center;
  }
  .headline-num {
    font-family: var(--display);
    font-size: clamp(76px, 11.5vw, 168px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--ink);
  }
  .headline-num .currency {
    font-size: 0.45em;
    vertical-align: top;
    margin-top: 0.2em;
    display: inline-block;
    color: var(--forest);
  }
  .headline-text {
    font-family: var(--sans);
    font-size: 22px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--ink-soft);
  }
  .headline-meta {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 16px;
    font-style: normal;
  }

  /* ─── TRANSPARENCY ───────────────────────────────────────── */
  .transparency {
    background: var(--forest);
    color: var(--paper);
  }
  .transparency .section-title { color: var(--paper); }
  .transparency .section-lead { color: rgba(245, 242, 234, 0.8); }
  .transparency .section-number { color: var(--forest); }

  .breakdown {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
  }
  .breakdown-bar {
    height: 24px;
    display: flex;
    margin-bottom: 48px;
  }
  .breakdown-segment {
    height: 100%;
    position: relative;
  }
  .breakdown-segment:nth-child(1) { background: var(--paper); }
  .breakdown-segment:nth-child(2) { background: var(--sand); }
  .breakdown-segment:nth-child(3) { background: var(--khaki); }
  .breakdown-segment:nth-child(4) { background: rgba(245, 242, 234, 0.25); }

  .breakdown-rows {
    display: grid;
    gap: 0;
  }
  .breakdown-row {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid rgba(245, 242, 234, 0.1);
    gap: 24px;
  }
  .breakdown-row:last-child { border-bottom: none; }
  .breakdown-pct {
    font-family: var(--display);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.035em;
  }
  .breakdown-row:nth-child(1) .breakdown-pct { color: var(--paper); }
  .breakdown-row:nth-child(2) .breakdown-pct { color: var(--sand); }
  .breakdown-row:nth-child(3) .breakdown-pct { color: var(--sand-light); }
  .breakdown-row:nth-child(4) .breakdown-pct { color: rgba(245, 242, 234, 0.75); }

  .breakdown-title {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
  }
  .breakdown-desc {
    font-size: 13px;
    color: rgba(245, 242, 234, 0.75);
    line-height: 1.4;
  }
  .breakdown-amount {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--paper);
    text-align: right;
  }
  .breakdown-amount span {
    display: block;
    font-size: 10px;
    color: rgba(245, 242, 234, 0.7);
    margin-top: 4px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .breakdown-aside {
    background: rgba(245, 242, 234, 0.04);
    padding: 32px;
    border: 1px solid rgba(245, 242, 234, 0.1);
    align-self: start;
    position: sticky;
    top: 100px;
  }
  .breakdown-aside h3 {
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.015em;
  }
  .breakdown-aside p {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(245, 242, 234, 0.8);
    margin-bottom: 24px;
  }
  .breakdown-aside .stat {
    font-family: var(--display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--sand);
    margin-bottom: 8px;
  }
  .breakdown-aside .stat-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 242, 234, 0.75);
  }

  /* ─── MISSIONS ───────────────────────────────────────── */
  .missions { background: var(--paper-deep); }
  .missions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .mission-card {
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
  }
  .mission-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
  }
  .mission-image {
    aspect-ratio: 4/3;
    background: var(--forest);
    position: relative;
    overflow: hidden;
  }
  .mission-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(135deg, transparent 0, transparent 3px, rgba(245, 242, 234, 0.02) 3px, rgba(245, 242, 234, 0.02) 6px);
  }
  .mission-image-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--paper);
    color: var(--ink);
    padding: 6px 10px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 2;
  }
  .mission-image-tag.active { background: var(--forest); color: var(--paper); }
  .mission-image-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 242, 234, 0.55);
  }
  .mission-image-icon svg { width: 80px; height: 80px; }

  .mission-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .mission-codename {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 12px;
  }
  .mission-title {
    font-family: var(--sans);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }
  .mission-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
    margin-bottom: 24px;
    flex: 1;
  }

  .mission-progress {
    margin-bottom: 20px;
  }
  .mission-progress-bar {
    height: 2px;
    background: var(--line);
    overflow: hidden;
    margin-bottom: 8px;
  }
  .mission-progress-fill {
    height: 100%;
    background: var(--forest);
  }
  .mission-progress-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
  }
  .mission-progress-meta .collected-amount {
    color: var(--ink);
    font-weight: 500;
  }

  .mission-cta {
    background: var(--forest);
    color: var(--paper);
    border: none;
    padding: 14px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background 0.2s ease;
  }
  .mission-cta:hover { background: var(--forest-soft); }

  /* ─── STORIES ───────────────────────────────────────── */
  .stories { background: var(--paper); }
  .featured-story {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
  }
  .story-image {
    aspect-ratio: 5/6;
    background: var(--forest);
    position: relative;
    overflow: hidden;
  }
  .story-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.6) 100%),
      repeating-linear-gradient(45deg, transparent 0, transparent 3px, rgba(245, 242, 234, 0.03) 3px, rgba(245, 242, 234, 0.03) 6px);
  }
  .story-image-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 242, 234, 0.55);
  }
  .story-image-content svg { width: 80px; height: 80px; }
  .story-image-caption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    color: var(--paper);
    z-index: 2;
  }
  .story-image-caption .source {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 6px;
  }
  .story-image-caption .credit {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
  }
  .story-text .kicker {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .story-text .kicker::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--forest);
  }
  .story-text blockquote {
    font-family: var(--sans);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    position: relative;
  }
  .story-text blockquote::before {
    content: '"';
    position: absolute;
    left: -0.4em;
    top: -0.2em;
    font-size: 1.6em;
    color: var(--forest);
    line-height: 1;
  }
  .story-text .attribution {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .story-text .attribution strong {
    color: var(--ink);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
  }

  .stories-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .story-mini {
    border-top: 2px solid var(--ink);
    padding-top: 24px;
  }
  .story-mini .date {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    margin-bottom: 16px;
  }
  .story-mini h3 {
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
  }
  .story-mini p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
  }

  /* ─── COINS / GRATITUDE CAROUSEL ───────────────────────────────────────── */
  .coins {
    background: var(--forest);
    color: var(--paper);
    overflow: hidden;
    padding: 100px 0 80px;
  }
  .coins .section-title { color: var(--paper); }
  .coins .section-lead { color: rgba(245, 242, 234, 0.8); }
  .coins .section-number { color: var(--forest); }

  .coins-marquee {
    position: relative;
    margin: 0 calc(var(--gutter) * -1);
    padding: 40px 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
  }
  .coins-track {
    display: flex;
    gap: 48px;
    animation: marquee 60s linear infinite;
    width: fit-content;
  }
  .coins-marquee:hover .coins-track { animation-play-state: paused; }
  @keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .coin {
    flex-shrink: 0;
    width: 260px;
    background: rgba(245, 242, 234, 0.04);
    border: 1px solid rgba(245, 242, 234, 0.1);
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .coin:hover {
    background: rgba(245, 242, 234, 0.08);
    border-color: var(--forest);
    transform: translateY(-4px);
  }
  .coin-visual {
    aspect-ratio: 1;
    background: radial-gradient(circle at 50% 50%, rgba(201, 184, 154, 0.15) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
  }
  .coin-circle {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background:
      radial-gradient(circle at 30% 30%, rgba(245, 242, 234, 0.15), transparent 50%),
      linear-gradient(135deg, var(--sand) 0%, #8b7a5e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-family: var(--display);
    font-weight: 600;
    font-size: 24px;
    letter-spacing: -0.02em;
    position: relative;
    box-shadow:
      inset 0 -4px 8px rgba(0, 0, 0, 0.2),
      inset 0 4px 8px rgba(255, 255, 255, 0.1),
      0 8px 24px rgba(0, 0, 0, 0.4);
  }
  .coin-circle::before {
    content: '';
    position: absolute;
    inset: 6%;
    border: 2px solid rgba(26, 26, 26, 0.4);
    border-radius: 50%;
  }
  .coin-circle::after {
    content: '';
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(26, 26, 26, 0.3);
    border-radius: 50%;
    border-style: dashed;
  }
  .coin.silver .coin-circle {
    background:
      radial-gradient(circle at 30% 30%, rgba(245, 242, 234, 0.25), transparent 50%),
      linear-gradient(135deg, #d4d4d4 0%, #8a8a8a 100%);
  }
  .coin.bronze .coin-circle {
    background:
      radial-gradient(circle at 30% 30%, rgba(245, 242, 234, 0.15), transparent 50%),
      linear-gradient(135deg, #c87f3d 0%, #6b4220 100%);
  }
  .coin.medal .coin-circle {
    background:
      radial-gradient(circle at 30% 30%, rgba(245, 242, 234, 0.2), transparent 50%),
      linear-gradient(135deg, var(--forest) 0%, #6b1010 100%);
    color: var(--paper);
  }

  .coin-source {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 8px;
  }
  .coin-title {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
  }
  .coin-date {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(245, 242, 234, 0.7);
  }

  .coins-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(245, 242, 234, 0.1);
  }
  .coins-counter {
    display: flex;
    gap: 48px;
  }
  .coins-counter-item .num {
    font-family: var(--display);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .coins-counter-item .label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 242, 234, 0.75);
    margin-top: 6px;
  }

  /* ─── REPORTS ───────────────────────────────────────── */
  .reports { background: var(--paper); }
  .reports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
  .reports-list {
    border-top: 2px solid var(--ink);
  }
  .report-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    transition: padding 0.3s ease;
  }
  .report-item:hover {
    padding-left: 16px;
  }
  .report-date {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
  }
  .report-title {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.015em;
  }
  .report-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .reports-aside {
    background: var(--forest);
    color: var(--paper);
    padding: 48px 40px;
    position: sticky;
    top: 100px;
  }
  .reports-aside .num {
    font-family: var(--display);
    font-size: 88px;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
  }
  .reports-aside .label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 242, 234, 0.75);
    margin-bottom: 32px;
  }
  .reports-aside p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(245, 242, 234, 0.8);
    margin-bottom: 32px;
  }

  /* ─── PARTNERS ───────────────────────────────────────── */
  .partners { background: var(--paper-deep); }
  .partners-tier {
    margin-bottom: 64px;
  }
  .partners-tier:last-child { margin-bottom: 0; }
  .tier-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .partners-row.primary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .partners-row.secondary {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  .partner-card {
    background: var(--paper);
    border: 1px solid var(--line);
    aspect-ratio: 3/2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
  }
  .partner-card:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
  }
  .partner-card.small {
    font-size: 13px;
    aspect-ratio: 2/1;
  }

  /* ─── SUBSCRIPTION ───────────────────────────────────────── */
  .subscribe {
    background: var(--forest-deep);
    color: var(--paper);
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  /* Animated gradient background */
  .subscribe::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(
      ellipse at 20% 30%,
      rgba(78, 119, 102, 0.55) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(45, 86, 66, 0.6) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(26, 61, 47, 0.4) 0%,
      transparent 60%
    );
    animation: subscribe-gradient-shift 20s ease-in-out infinite alternate;
    z-index: 0;
  }
  @keyframes subscribe-gradient-shift {
    0% {
      transform: translate(0, 0) scale(1);
      filter: hue-rotate(0deg);
    }
    33% {
      transform: translate(3%, -2%) scale(1.05);
      filter: hue-rotate(-8deg);
    }
    66% {
      transform: translate(-2%, 3%) scale(1.08);
      filter: hue-rotate(5deg);
    }
    100% {
      transform: translate(2%, 1%) scale(1.03);
      filter: hue-rotate(-3deg);
    }
  }

  /* Floating orbs */
  .subscribe-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
  }
  .subscribe-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    will-change: transform;
  }
  .subscribe-orb-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--sand) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation: orb-drift-1 28s ease-in-out infinite;
  }
  .subscribe-orb-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, var(--forest-mid) 0%, transparent 70%);
    bottom: -10%;
    right: -5%;
    animation: orb-drift-2 32s ease-in-out infinite;
  }
  .subscribe-orb-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(201, 184, 154, 0.5) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation: orb-drift-3 24s ease-in-out infinite;
  }
  @keyframes orb-drift-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(80px, 60px); }
  }
  @keyframes orb-drift-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-60px, -80px); }
  }
  @keyframes orb-drift-3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-100px, 40px); }
    66% { transform: translate(80px, -30px); }
  }

  /* Marquee text bands */
  .subscribe-marquee {
    position: absolute;
    left: 0;
    right: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
  }
  .subscribe-marquee.top { top: 8%; }
  .subscribe-marquee.bottom { bottom: 8%; }
  .subscribe-marquee-track {
    display: flex;
    gap: 64px;
    white-space: nowrap;
    font-family: var(--display);
    font-size: clamp(80px, 12vw, 160px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--paper);
    will-change: transform;
  }
  .subscribe-marquee.top .subscribe-marquee-track {
    animation: subscribe-marquee-left 35s linear infinite;
  }
  .subscribe-marquee.bottom .subscribe-marquee-track {
    animation: subscribe-marquee-right 45s linear infinite;
  }
  @keyframes subscribe-marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  @keyframes subscribe-marquee-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
  }

  /* Grain overlay for texture */
  .subscribe::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(45deg, transparent 0, transparent 2px, rgba(240, 237, 227, 0.012) 2px, rgba(240, 237, 227, 0.012) 4px);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
  }

  .subscribe-inner {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
  }
  .subscribe .kicker {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 32px;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .subscribe .kicker::before,
  .subscribe .kicker::after {
    content: '';
    width: 24px;
    height: 1px;
    background: rgba(240, 237, 227, 0.4);
  }
  .subscribe h2 {
    font-family: var(--display);
    font-size: clamp(48px, 6.4vw, 84px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 36px;
  }
  .subscribe h2 em {
    font-style: normal;
    font-weight: 500;
    background: linear-gradient(120deg, var(--sand-light) 0%, var(--paper) 50%, var(--sand-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-text 6s linear infinite;
  }
  @keyframes shine-text {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
  }
  .subscribe p {
    font-size: 19px;
    line-height: 1.55;
    margin-bottom: 52px;
    opacity: 0.92;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }
  .subscribe-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .subscribe-btn {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--paper);
    padding: 20px 32px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .subscribe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 61, 47, 0.12), transparent);
    transition: left 0.5s ease;
  }
  .subscribe-btn:hover::before { left: 100%; }
  .subscribe-btn.outline {
    background: transparent;
    color: var(--paper);
    border-color: rgba(240, 237, 227, 0.35);
  }
  .subscribe-btn:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  }
  .subscribe-btn.outline:hover {
    background: var(--paper);
    color: var(--forest);
    border-color: var(--paper);
  }

  @media (prefers-reduced-motion: reduce) {
    .subscribe::before, .subscribe-orb, .subscribe-marquee-track, .subscribe h2 em {
      animation: none !important;
    }
  }

  /* ─── RESPONSIVE (page-specific) ───────────────────────────────────── */
  @media (max-width: 900px) {
    .hero .container,
    .priority .container,
    .breakdown,
    .reports-grid,
    .featured-story {
      grid-template-columns: 1fr;
      gap: 48px;
    }
    .section-head { grid-template-columns: 1fr; gap: 24px; }
    .impact-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: var(--gutter); }
    .tpl-home .impact { padding-bottom: 0; }
    .missions-grid,
    .stories-secondary,
    .partners-row.primary { grid-template-columns: 1fr; }
    .partners-row.secondary { grid-template-columns: repeat(2, 1fr); }
    .partner-card { min-width: 0; aspect-ratio: auto; min-height: 72px; padding: 16px 12px; word-break: break-word; }
    .impact-headline-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero-stats { gap: 32px; }
  }

/* Real images inside the mission cards (Active missions block) */
.tpl-home .mission-image .mission-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}
.tpl-home .mission-card:hover .mission-cover { transform: scale(1.04); transition: transform 0.6s ease; }
.tpl-home .mission-image-tag { z-index: 2; }

/* Real hero photo behind the priority (Hummer / v-temi) block */
.tpl-home .priority-image .priority-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}
.tpl-home .priority-image-content svg { display: none; } /* photo replaces the placeholder silhouette */
.tpl-home .priority-image-content,
.tpl-home .priority-image-meta { z-index: 2; }

/* Full-bleed marquees (negative margins) must not create page horizontal scroll */
.tpl-home .coins,
.tpl-home .subscribe { overflow-x: clip; }
