/* ═══ NC Impact Stories — shared styles (listing page + individual story pages) ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: #fff; color: #1d1d1f; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:root {
  --ink: #1d1d1f; --ink-soft: #6e6e73; --ink-mute: #8e8e93;
  --surface: #f5f5f7; --surface-warm: #faf8f5;
  --amber: #bf7c30; --amber-dark: #a56828; --amber-text: #8a5520;
  --amber-glow: rgba(191,124,48,.12); --amber-line: rgba(191,124,48,.3);
  --wa: #25D366; --wa-dark: #1ebe5a;
  --white: #fff; --dark: #1d1d1f;
  --radius-card: 18px;
  --shadow-s: 0 2px 8px rgba(0,0,0,.06); --shadow-m: 0 8px 32px rgba(0,0,0,.1);
}
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* NAV */
nav#N { position: fixed; top: 0; left: 0; width: 100%; z-index: 300; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); transition: box-shadow .3s; }
nav#N.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,.08); }
.nav-w { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; height: 48px; position: relative; }
.nav-logo { font-family: 'Space Grotesk', sans-serif; font-size: .95rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .76rem; color: var(--ink-soft); transition: color .2s; letter-spacing: .01em; }
.nav-links a:hover, .nav-links a.nav-active { color: var(--ink); }
.nav-links a.nav-active { font-weight: 500; }
.nav-cta { background: var(--amber); color: #fff !important; padding: 7px 16px; border-radius: 20px; font-weight: 500 !important; }
.nav-cta:hover { background: var(--amber-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; margin-right: -8px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, top .25s, background .2s; }
.nav-toggle span { position: relative; }
.nav-toggle span::before { content: ''; position: absolute; left: 0; top: -6px; }
.nav-toggle span::after { content: ''; position: absolute; left: 0; top: 6px; }
#N.nav-open .nav-toggle span { background: transparent; }
#N.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
#N.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* SHARED */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.eyebrow { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-text); }
.hl { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; color: var(--ink); font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.hl em { font-family: 'Lora', serif; font-style: italic; font-weight: 500; color: var(--amber); letter-spacing: -.01em; }
.lead { font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); font-weight: 300; }
.btn-amber, .btn-wa, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: 30px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .9rem; letter-spacing: -.01em; transition: background .2s, transform .15s, border-color .2s; }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-dark); transform: scale(1.02); }
.btn-wa { background: var(--wa); color: #07301a; }
.btn-wa:hover { background: var(--wa-dark); transform: scale(1.02); }
.btn-wa svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: #fff; color: var(--amber-text); border: 1.5px solid var(--amber-line); }
.btn-ghost:hover { background: var(--amber-glow); border-color: var(--amber); }

/* HERO */
.st-hero { padding: 128px 0 72px; background: var(--surface-warm); border-bottom: 1px solid rgba(0,0,0,.06); text-align: center; }
.st-hero .hl { margin-top: 14px; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.st-hero .tag { margin-top: 14px; font-family: 'Lora', serif; font-style: italic; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--amber-text); }
.st-hero .lead { max-width: 680px; margin: 22px auto 0; }
.st-hero .lead + .lead { margin-top: 12px; }
.st-hero .hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* STORY TYPES */
.st-types { padding: 72px 0 24px; }
.st-types h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; text-align: center; }
.st-type-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.st-type-list li { font-family: 'Space Grotesk', sans-serif; font-size: .86rem; font-weight: 500; color: var(--amber-text); background: var(--surface-warm); border: 1px solid var(--amber-line); padding: 8px 16px; border-radius: 20px; }

/* STORIES GRID */
.st-list { padding: 56px 0 88px; }
.st-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.st-grid:empty { display: none; }
/* Empty state hides itself automatically once the first .st-card is published */
.st-list:has(.st-card) .st-empty { display: none; }
.st-empty { text-align: center; padding: 48px 32px; border-radius: var(--radius-card); border: 1px dashed var(--amber-line); background: linear-gradient(160deg, #fff 0%, #faf3e8 100%); }
.st-empty-ic { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px; background: var(--amber-glow); color: var(--amber-dark); display: flex; align-items: center; justify-content: center; }
.st-empty-ic svg { width: 28px; height: 28px; }
.st-empty h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.st-empty p { margin: 10px auto 0; max-width: 520px; color: var(--ink-soft); line-height: 1.7; }
.st-empty .btn-wa { margin-top: 22px; }

/* STORY CARD — every element except name + headline is optional; leave it out and nothing breaks */
.st-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius-card); background: #fff; border: 1px solid rgba(0,0,0,.08); box-shadow: var(--shadow-s); transition: box-shadow .2s, transform .2s; }
.st-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.st-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.st-cat { font-family: 'Space Grotesk', sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-text); background: var(--amber-glow); padding: 4px 11px; border-radius: 20px; }
.st-date { font-size: .78rem; color: var(--ink-mute); }
.st-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; color: var(--ink); }
.st-card h3 a:hover { color: var(--amber-dark); }
.st-person { display: flex; align-items: center; gap: 12px; }
.st-photo { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--amber-line); }
.st-name { font-weight: 600; font-size: .95rem; color: var(--ink); line-height: 1.3; }
.st-role { font-size: .82rem; color: var(--ink-soft); line-height: 1.4; }
.st-summary { font-size: .95rem; line-height: 1.65; color: var(--ink-soft); }
.st-quote { font-family: 'Lora', serif; font-style: italic; font-size: .98rem; line-height: 1.6; color: var(--ink); border-left: 2px solid var(--amber-line); padding-left: 14px; }
.st-with { font-size: .82rem; color: var(--ink-soft); }
.st-with strong { color: var(--ink); font-weight: 500; }
.st-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; font-weight: 500; }
.st-links a { color: var(--amber-text); }
.st-links a:hover { text-decoration: underline; }
.st-more summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--amber-text); list-style: none; }
.st-more summary::-webkit-details-marker { display: none; }
.st-more summary::after { content: ' ↓'; }
.st-more[open] summary::after { content: ' ↑'; }
.st-more-body { margin-top: 10px; font-size: .92rem; line-height: 1.7; color: var(--ink-soft); }
.st-more-body p + p { margin-top: 10px; }
.st-card .btn-amber { margin-top: auto; align-self: flex-start; padding: 10px 20px; font-size: .85rem; }

/* SHARE YOUR STORY */
.st-share { padding: 0 0 96px; }
.st-share-box { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 44px; border-radius: 24px; background: var(--dark); color: #fff; }
.st-share-box .eyebrow { color: #e7a45a; }
.st-share-box h2 { margin-top: 10px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.st-share-box p { margin-top: 12px; color: rgba(255,255,255,.75); line-height: 1.7; font-weight: 300; }
.st-share-act { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.st-free { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: #fff; font-weight: 500; }
.st-free::before { content: '✓'; color: var(--wa); font-weight: 700; }

/* MEETING CTA */
.st-meet { padding: 72px 0; background: var(--surface-warm); border-top: 1px solid rgba(0,0,0,.06); text-align: center; }
.st-meet p { max-width: 560px; margin: 12px auto 0; color: var(--ink-soft); line-height: 1.7; }
.st-meet .hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* INDIVIDUAL STORY PAGE */
.sp-crumbs { font-size: .8rem; color: var(--ink-mute); }
.sp-crumbs a { color: var(--amber-text); }
.sp-crumbs a:hover { text-decoration: underline; }
.sp-head { padding: 112px 0 48px; background: var(--surface-warm); border-bottom: 1px solid rgba(0,0,0,.06); }
.sp-head .wrap { max-width: 780px; }
.sp-head .st-meta { justify-content: flex-start; margin-top: 18px; }
.sp-head h1 { margin-top: 14px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.sp-head .lead { margin-top: 16px; }
.sp-head .st-person { margin-top: 26px; }
.sp-head .st-photo { width: 64px; height: 64px; }
.sp-body { padding: 56px 0 72px; }
.sp-body .wrap { max-width: 780px; }
.sp-body p { font-size: 1.02rem; line-height: 1.85; color: #3a3a3c; margin-bottom: 18px; }
.sp-body h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 600; margin: 34px 0 12px; }
.sp-body .st-quote { font-size: 1.15rem; margin: 30px 0; padding-left: 20px; }
.sp-video { position: relative; aspect-ratio: 16 / 9; margin: 28px 0; border-radius: 14px; overflow: hidden; background: #000; }
.sp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sp-box { margin-top: 32px; padding: 22px 24px; border-radius: 14px; background: var(--surface-warm); border: 1px solid var(--amber-line); }
.sp-box h2 { margin: 0 0 8px; font-size: 1rem; }
.sp-box .st-links { margin-top: 10px; font-size: .9rem; }
.sp-back { margin-top: 36px; }

/* FOOTER */
footer { background: var(--dark); color: rgba(255,255,255,.55); padding: 56px 32px 32px; }
.ft { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.fb-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.fb-desc { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.65; max-width: 260px; font-weight: 300; }
.fc h5 { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.fc a, .fc span { display: block; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 9px; }
.fc a:hover { color: #fff; }
.fc a.active { color: #e7a45a; }
.fb-bot { max-width: 1080px; margin: 24px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .74rem; color: rgba(255,255,255,.4); }

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .st-grid { grid-template-columns: 1fr; }
  .st-share-box { grid-template-columns: 1fr; padding: 30px 24px; gap: 22px; }
  .st-share-act { align-items: stretch; }
  .st-hero .hero-btns a, .st-meet .hero-btns a, .st-empty .btn-wa, .st-share-act .btn-wa { width: 100%; }
}
@media (max-width: 600px) {
  .nav-w { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: calc(100% + 10px); right: 12px; flex-direction: column; align-items: stretch; gap: 2px; min-width: 220px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 16px; box-shadow: 0 18px 44px rgba(0,0,0,.16); padding: 10px; opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .2s, transform .2s; }
  #N.nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { font-size: .95rem; padding: 11px 14px; border-radius: 9px; }
  .nav-links a.nav-cta { margin-top: 6px; text-align: center; }
  .st-hero { padding: 104px 0 56px; }
  .sp-head { padding: 96px 0 40px; }
}
