/* ==========================================================================
   Samaky — site styles
   Tokens follow the Figma file / brand book:
   Headline: Balgin Display Bold (lowercase) · Title: Poppins Bold · Body: Poppins Medium/Regular
   ========================================================================== */

@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Balgin Display"; src: url("/assets/fonts/balgin-display-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --dark: #004643;
  --green: #3e8957;
  --green-text: #357a4c;   /* brand green, a touch deeper so small text and buttons pass WCAG 4.5:1 */
  --mint: #1bda87;
  --cream: #fcf5ed;
  --ink: #101613;
  --orange: #f16838;
  --yellow: #fefd99;
  --navy: #001b7f;
  --sky: #99c2ff;
  --grey: #737373;
  --grey-2: #6b7a72;
  --white: #ffffff;

  --font-body: "Poppins", system-ui, sans-serif;
  --font-head: "Balgin Display", "Poppins", system-ui, sans-serif;

  --container: 1200px;
  --gutter: 60px;
  --nav-h: 86px;

  /* Motion — Emil Kowalski's curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --nav-h: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;        /* clip (not a scroll container) keeps the sticky nav working */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.headline {                               /* Balgin headlines — lowercase per brand */
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0;
  line-height: 1.12;
  font-size: clamp(44px, 6vw, 72px);
  color: var(--dark);
}
.headline--xl { font-size: clamp(52px, 8vw, 112px); line-height: 0.9; }
.headline--lg { font-size: clamp(48px, 7vw, 94px); line-height: 0.9; }
.title { font-family: var(--font-body); font-weight: 700; font-size: clamp(36px, 5vw, 72px); line-height: 1.12; color: var(--dark); }
.lede { font-size: 18px; line-height: 24px; font-weight: 500; color: #1b1818; max-width: 340px; }
.eyebrow { font-size: 12px; line-height: 14px; font-weight: 700; color: var(--mint); }

.section-head { display: flex; flex-wrap: wrap; gap: 24px 60px; align-items: flex-start; }
.section-head > :first-child { flex: 1 1 520px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  font-size: 16px; font-weight: 500; line-height: 20px; white-space: nowrap;
  border: 1px solid var(--green);
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--outline { color: var(--green); background: var(--white); }
.btn--mint { background: var(--mint); border-color: var(--mint); color: var(--dark); }
.btn--cream { background: var(--cream); border: 2px solid var(--cream); color: var(--dark); font-weight: 600; height: auto; padding: 18px 30px; }
.btn--ghost-light { border: 2px solid var(--white); color: var(--white); font-weight: 600; height: auto; padding: 18px 30px; }
.btn .arrow { width: 24px; height: 24px; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0, 70, 67, 0.45); }
  .btn:hover .arrow, .btn:hover .arrow-txt { transform: translateX(3px); }
  .btn--outline:hover { background: var(--green); color: #fdf0f1; }
}
.arrow-txt { display: inline-block; transition: transform 200ms var(--ease-out); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow 250ms ease;
  view-transition-name: site-nav;
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(16, 22, 19, 0.08), 0 8px 24px -16px rgba(16, 22, 19, 0.25); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 40px; max-width: 1520px; margin: 0 auto; padding: 0 var(--gutter); }
/* spacing and proportions follow the primary lockup: mark 489 / gap 139 / wordmark 486 units, wordmark 26 units lower */
.nav__logo { display: flex; align-items: flex-start; gap: 8px; flex-shrink: 0; }
.nav__logo .mark { width: 28px; height: 28px; transition: transform 400ms var(--ease-out); }
.nav__logo .word { width: 132px; height: 28px; margin-top: 1.5px; }
@media (hover: hover) and (pointer: fine) { .nav__logo:hover .mark { transform: rotate(90deg); } }
.nav__links { display: flex; gap: 30px; }
.nav__link { position: relative; padding: 4px 0 10px; font-size: 14px; line-height: 16px; font-weight: 500; color: var(--dark); transition: color 200ms ease; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out);
}
.nav__link[aria-current="page"] { font-weight: 700; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--green); }
  .nav__link:hover::after { transform: scaleX(1); }
}
.nav__actions { margin-left: auto; display: flex; gap: 10px; }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 38px; position: relative; }
.nav__burger span { position: absolute; left: 9px; width: 26px; height: 2px; background: var(--dark); transition: transform 300ms var(--ease-out), opacity 200ms ease; }
.nav__burger span:nth-child(1) { top: 11px; }
.nav__burger span:nth-child(2) { top: 18px; }
.nav__burger span:nth-child(3) { top: 25px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; overflow-y: auto; overscroll-behavior: contain;
  background: var(--white);
  padding: 24px var(--gutter) 32px;
  box-shadow: 0 24px 40px -24px rgba(16, 22, 19, 0.35);
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: transform 350ms var(--ease-drawer), opacity 250ms ease, visibility 0s linear 350ms;
}
.nav.is-open + .menu { transform: none; opacity: 1; visibility: visible; transition: transform 350ms var(--ease-drawer), opacity 250ms ease, visibility 0s; }
.menu__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-bottom: 1px solid rgba(0, 70, 67, 0.15);
  font-size: 30px; font-weight: 700; color: var(--dark);
  opacity: 0; transform: translateY(12px);
  transition: opacity 300ms ease, transform 400ms var(--ease-out);
}
.menu__link span { color: var(--green); font-weight: 500; font-size: 24px; }
.menu__actions { display: grid; gap: 12px; margin-top: 28px; opacity: 0; transition: opacity 300ms ease; }
.menu__actions .btn { justify-content: center; }
.nav.is-open + .menu .menu__link { opacity: 1; transform: none; }
.nav.is-open + .menu .menu__link:nth-child(1) { transition-delay: 60ms; }
.nav.is-open + .menu .menu__link:nth-child(2) { transition-delay: 110ms; }
.nav.is-open + .menu .menu__link:nth-child(3) { transition-delay: 160ms; }
.nav.is-open + .menu .menu__link:nth-child(4) { transition-delay: 210ms; }
.nav.is-open + .menu .menu__actions { opacity: 1; transition-delay: 260ms; }

@media (max-width: 1100px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: block; }
}
@media (min-width: 1101px) { .menu { display: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 3px solid var(--ink); background: var(--green); color: #fcf5ed; }
.marquee--orange { background: var(--orange); border-top: 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee__group { display: flex; align-items: center; gap: 34px; padding: 13px 34px 13px 0; }
.marquee__group span { font-weight: 700; font-size: 24px; line-height: 38px; white-space: nowrap; }
.marquee__group img { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 900px) { .marquee__group span { font-size: 18px; line-height: 30px; } .marquee__group { gap: 22px; padding-right: 22px; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #fcfcfc; padding: 80px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 350px repeat(3, 1fr); gap: 50px; }
.footer__brand .logo { width: 240px; }
.footer__grid { grid-template-rows: auto 1fr; }
.footer__brand { grid-column: 1; grid-row: 1; }
.footer__col { grid-row: 1 / span 2; }
.footer__apps { grid-column: 1; grid-row: 2; display: flex; gap: 10px; align-self: start; margin-top: -14px; }
.footer__apps a { display: block; transition: transform 200ms var(--ease-out), opacity 200ms ease; }
.footer__apps img { display: block; width: 118px; height: auto; }
@media (hover: hover) and (pointer: fine) { .footer__apps a:hover { transform: translateY(-2px); opacity: 0.9; } }
.footer__col h5, .footer__col .footer__h { margin: 6px 0 12px; font-size: 11px; line-height: 17.6px; font-weight: 700; color: var(--mint); }
.footer__col a { display: block; padding: 5px 0; font-size: 16px; line-height: 20px; font-weight: 400; color: #fcfcfc; opacity: 0.92; transition: color 200ms ease, transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { color: var(--mint); transform: translateX(4px); } }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 25px; border-top: 1px solid rgba(252, 245, 237, 0.2); font-size: 14px; line-height: 16px; font-weight: 400; }
.footer__bottom nav { display: flex; gap: 20px; }
.footer__bottom a:hover { color: var(--mint); }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__grid { grid-template-rows: none; }
  .footer__brand { grid-column: 1 / -1; grid-row: auto; }
  .footer__col { grid-row: auto; }
  .footer__apps { grid-column: auto; grid-row: auto; flex-direction: column; margin-top: 6px; }
  .footer__bottom { flex-wrap: wrap; align-items: center; }
}

/* ---------- Reveal-on-scroll (progressive: only hides when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal="left"] { transform: translateX(-24px); }

/* ---------- Page entrance (hero) ---------- */
.js [data-enter] { opacity: 0; transform: translateY(28px); }
.js.is-loaded [data-enter] { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; background: var(--white); overflow: hidden; }
.hero__inner { position: relative; max-width: 1320px; margin: 0 auto; padding: 64px var(--gutter) 90px; display: grid; grid-template-columns: 1fr 380px; gap: 40px 60px; align-items: start; }
.hero__eyebrow { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 700; color: var(--green); margin-left: 120px; }
.colorbar { display: flex; width: 170px; height: 6px; }
.colorbar i { flex: 1; }
.colorbar i:nth-child(1) { background: var(--orange); }
.colorbar i:nth-child(2) { background: var(--yellow); }
.colorbar i:nth-child(3) { background: var(--navy); }
.colorbar i:nth-child(4) { background: var(--sky); }
.hero__title { margin-left: 120px; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.25; font-weight: 700; color: var(--dark); }
.hero__title .line { display: flex; align-items: center; gap: 26px; }
.hero__title .accent { color: var(--green); }
.pill-img { flex: 0 0 auto; width: 250px; height: 74px; padding: 3px; border: 3px solid var(--ink); overflow: hidden; rotate: -1.6deg; background: var(--white); transition: transform 400ms var(--ease-out), rotate 400ms var(--ease-out); }
.pill-img--green { width: 212px; height: 70px; border-color: var(--green); rotate: 2deg; }
.pill-img img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .pill-img:hover { rotate: 0deg; transform: scale(1.04); } }
.hero__photo { width: 378px; height: 500px; border: 3px solid var(--green); rotate: 3deg; overflow: hidden; margin-top: -20px; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.search {
  grid-column: 1 / -1; justify-self: center; width: min(960px, 100%); margin-top: 40px;
  background: var(--white); border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--green);
  padding: 43px;
}
.search label { display: block; font-size: 32px; line-height: 1.2; font-weight: 700; color: var(--green); margin-bottom: 29px; }
.search__field { display: flex; border: 2px solid var(--ink); padding: 2px; transition: box-shadow 200ms ease; }
.search__field:focus-within { box-shadow: 0 0 0 4px rgba(27, 218, 135, 0.35); }
.search__field input { flex: 1; min-width: 0; height: 72px; border: 0; padding: 0 15px; font: 400 20px/20px var(--font-body); color: var(--ink); outline: none; background: transparent; }
.search__field input { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.search__field input::placeholder { color: var(--grey); text-overflow: ellipsis; }
.search__field button { width: 140px; background: var(--green); color: #fdf0f1; font-size: 20px; font-weight: 500; transition: background-color 200ms ease; }
.search__field button:hover { background: var(--dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip { height: 30px; padding: 0 12px; border: 1px solid var(--green); color: var(--green); font-size: 14px; font-weight: 500; transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--green); color: #fdf0f1; }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: rgba(62, 137, 87, 0.1); } .chip[aria-pressed="true"]:hover { background: var(--dark); } }

@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero__eyebrow, .hero__title { margin-left: 0; }
  .hero__photo { display: none; }
}
@media (max-width: 700px) {
  .hero__eyebrow { flex-wrap: wrap; gap: 8px 10px; }
  .hero__eyebrow .colorbar { width: 56px; flex: none; }
  .hero__title .line { gap: 12px; }
  .pill-img { width: 120px; height: 44px; padding: 2px; border-width: 2px; }
  .pill-img--green { width: 104px; height: 40px; }
  .search { padding: 26px 20px 28px; box-shadow: 8px 8px 0 var(--green); margin-top: 8px; }
  .search label { font-size: 24px; line-height: 1.2; margin-bottom: 16px; }
  .search__field { flex-direction: column; gap: 2px; }
  .search__field input { flex: none; width: 100%; height: 60px; font-size: 18px; padding: 0 16px; }
  .search__field button { width: 100%; height: 56px; font-size: 18px; }
  .chips { margin-top: 18px; gap: 10px; }
  .chip { height: 38px; padding: 0 14px; font-size: 15px; }
}

/* Collage */
.cool { padding: 120px 0 160px; background: var(--white); overflow: hidden; overflow: clip; }
.collage { position: relative; margin-top: 56px; aspect-ratio: 1200 / 1238; }
.collage > * { position: absolute; }
/* Scroll-driven "shuffle → straighten": JS sets --sx/--sy/--sr; hover lift uses the separate `translate` property */
.frame { border: 3px solid var(--ink); overflow: hidden; background: var(--ink); transform: translate(var(--sx, 0px), var(--sy, 0px)) rotate(var(--sr, 0deg)); will-change: transform; transition: translate 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .frame:hover { translate: -4px -4px; box-shadow: 8px 8px 0 var(--dark); z-index: 3; }
  .frame:hover img { transform: scale(1.05); }
}
.collage .c1 { left: 0; top: 0; width: 32.4%; height: 26.7%; }
.collage .c2 { left: 33.8%; top: 4.5%; width: 32.4%; height: 20.2%; }
.collage .c3 { left: 67.6%; top: 0; width: 32.4%; height: 26.7%; }
.collage .t1 { left: 0; top: 28.8%; width: 41%; font-size: clamp(32px, 5vw, 60px); line-height: 0.9; color: var(--green); font-weight: 700; }
.collage .c4 { left: 42.2%; top: 27.9%; width: 24%; height: 24.2%; }
.collage .c5 { left: 67.6%; top: 26.8%; width: 32.4%; height: 18.6%; }
.collage .c6 { left: 0; top: 53.5%; width: 24%; height: 22.6%; }
.collage .t2 { left: 26.7%; top: 53.5%; width: 39.6%; font-size: clamp(28px, 4.3vw, 52px); line-height: 0.9; color: var(--orange); font-weight: 700; }
.collage .c7 { left: 67.6%; top: 53.5%; width: 32.4%; height: 24.2%; }
.collage .t3 { left: 0; top: 79%; width: 49.3%; font-size: clamp(24px, 4vw, 48px); line-height: 0.9; color: var(--dark); font-weight: 700; }
.collage .c8 { left: 50.7%; top: 79%; width: 49.3%; height: 21%; }
.float { width: 8%; aspect-ratio: 1; pointer-events: none; z-index: 2; animation: float 3.2s ease-in-out infinite alternate; }
.float.f1 { left: 28.25%; top: 6.1%; animation-duration: 3.2s; }
.float.f2 { left: 70.9%; top: 37.3%; width: 6.2%; animation-duration: 4.1s; animation-delay: -1s; }
.float.f3 { left: 47.2%; top: 83.6%; width: 7.5%; animation-duration: 3.6s; animation-delay: -2s; }
@keyframes float { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-14px) rotate(8deg); } }

@media (max-width: 800px) {
  .cool { padding: 72px 0 96px; }
  .collage { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .collage > * { position: relative; left: auto !important; top: auto !important; width: auto !important; height: auto !important; }
  .collage .frame { aspect-ratio: 4 / 3; }
  .collage .c3, .collage .c6, .collage .c7 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .collage .t1, .collage .t2, .collage .t3 { grid-column: 1 / -1; padding: 14px 0 6px; }
  .collage .c8 { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .float { position: absolute !important; width: 54px !important; }
  .float.f1 { left: 40% !important; top: 4% !important; }
  .float.f2 { left: 82% !important; top: 36% !important; }
  .float.f3 { left: 6% !important; top: 86% !important; }
}

/* ==========================================================================
   WHO WE SERVE — bridge selector
   ========================================================================== */
.bridge-sec { position: relative; padding: 130px 0; background: var(--white); }
.bridge { margin-top: 70px; }
.bridge__pill { display: flex; align-items: center; justify-content: center; gap: 14px; width: 309px; margin: 0 auto; padding: 18px 33px; background: var(--dark); border: 3px solid var(--ink); color: var(--cream); }
.bridge__pill img { width: 30px; height: 30px; }
.bridge__pill b { font-size: 23px; line-height: 1.6; }
.bridge__pill small { font-size: 12px; opacity: 0.7; font-weight: 400; }
.bridge__lines { display: block; width: 100%; height: 150px; transform: scaleY(-1); }
.bridge__lines path { stroke: var(--ink); stroke-width: 3; fill: none; transition: stroke 300ms ease, stroke-width 300ms var(--ease-out); }
.bridge[data-active="0"] .bridge__lines .l0,
.bridge[data-active="1"] .bridge__lines .l1,
.bridge[data-active="2"] .bridge__lines .l2 { stroke: var(--green); stroke-width: 6; }
.bridge__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aud {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  text-align: left; min-height: 213px; padding: 35px 27px 29px;
  background: var(--white); border: 3px solid var(--ink);
  transition: background-color 300ms ease, box-shadow 350ms var(--ease-out), transform 350ms var(--ease-out);
}
.aud .star { display: block; flex-shrink: 0; width: 30px; height: 30px; margin: 5px; background: #cfd6d1; -webkit-mask: url("/assets/img/star.svg") center / contain no-repeat; mask: url("/assets/img/star.svg") center / contain no-repeat; transition: background-color 300ms ease, transform 500ms var(--ease-out); }
.aud h3 { margin-top: 16px; font-size: 27px; line-height: 43px; color: var(--dark); transition: color 300ms ease; }
.aud p { margin-top: 5px; font-size: 13.5px; line-height: 21.6px; font-weight: 400; color: var(--grey-2); transition: color 300ms ease; }
.aud[aria-selected="true"] .star { background: var(--green); transform: rotate(45deg); }
/* Hover (desktop) and the tapped card (touch) share the "active" look: green, white type, orange shadow */
.aud:focus-visible { background: var(--green); box-shadow: 10px 10px 0 var(--orange); transform: translate(-3px, -3px); }
.aud:focus-visible .star { background: var(--mint); }
.aud:focus-visible h3, .aud:focus-visible p { color: var(--white); }
@media (hover: none) {
  .aud[aria-selected="true"] { background: var(--green); box-shadow: 6px 6px 0 var(--orange); transform: translate(-2px, -2px); }
  .aud[aria-selected="true"] .star { background: var(--mint); }
  .aud[aria-selected="true"] h3, .aud[aria-selected="true"] p { color: var(--white); }
}
@media (hover: hover) and (pointer: fine) {
  .aud:hover { background: var(--green); box-shadow: 10px 10px 0 var(--orange); transform: translate(-3px, -3px); }
  .aud:hover .star { background: var(--mint); }
  .aud:hover h3, .aud:hover p { color: var(--white); }
}
.aud:active { transform: scale(0.98); }
.bridge__list { margin-top: 56px; border-top: 3px solid var(--ink); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit { padding-top: 28px; border-bottom: 1px solid rgba(16, 22, 19, 0.16); padding-bottom: 16px; }
.benefit .num { font-size: 44px; line-height: 70px; font-weight: 700; color: var(--orange); }
.benefit h4 { margin-top: 12px; font-size: 36px; line-height: 44px; color: var(--dark); }
.benefit p { margin-top: 10px; font-size: 18px; line-height: 22px; font-weight: 400; color: var(--grey); }
.bridge__list.is-swapping .benefit { opacity: 0; transform: translateY(10px); }
.benefit { transition: opacity 220ms ease, transform 300ms var(--ease-out); }
.bridge__list .benefit:nth-child(2) { transition-delay: 40ms; }
.bridge__list .benefit:nth-child(3) { transition-delay: 80ms; }

@media (max-width: 900px) {
  .bridge-sec { padding: 72px 0; }
  .bridge__lines { height: 90px; }
  .bridge__cards { gap: 8px; }
  .aud { min-height: 0; padding: 14px 10px; text-align: center; align-items: center; }
  .aud .star { width: 16px; height: 16px; margin: 0 auto; }
  .aud h3 { margin-top: 6px; font-size: 14px; line-height: 18px; }
  .aud p { display: none; }
  .bridge__list { grid-template-columns: 1fr; gap: 0; }
  .benefit { display: grid; grid-template-columns: 52px 1fr; gap: 0 12px; }
  .benefit .num { font-size: 28px; line-height: 40px; grid-row: span 3; }
  .benefit h4 { margin-top: 4px; font-size: 24px; line-height: 30px; }
  .benefit p { font-size: 15px; }
}

/* ==========================================================================
   WHY SAMAKY — profile card
   ========================================================================== */
.profile-sec { padding: 130px 0; background: var(--white); }
.profile-wrap { position: relative; margin-top: 74px; display: flex; justify-content: flex-end; }
.profile {
  width: min(880px, 100%); background: var(--white); border: 3px solid var(--ink); border-radius: 12px; padding: 3px;
  box-shadow: 16px 16px 0 var(--green);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .profile:hover { transform: translate(-4px, -4px) rotate(-0.4deg); box-shadow: 22px 22px 0 var(--green); } }
.profile__head { display: flex; align-items: center; gap: 18px; padding: 24px 28px 27px; border-bottom: 3px solid var(--ink); }
.profile__avatar { width: 70px; height: 70px; border: 3px solid var(--green); background: var(--cream); padding: 4px; }
.profile__avatar img { width: 100%; height: 100%; object-fit: contain; }
.profile__name { flex: 1; }
.profile__name b { display: block; font-size: 30px; line-height: 38px; color: var(--dark); }
.profile__name span { font-size: 14px; line-height: 16px; font-weight: 400; color: #5c6a62; }
.verified { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; background: rgba(62, 137, 87, 0.12); color: var(--green); font-size: 12px; font-weight: 700; }
.verified img { width: 15px; height: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 3px solid var(--ink); }
.stat { padding: 26px 28px; border-right: 2px solid rgba(16, 22, 19, 0.13); }
.stat:last-child { border-right: 0; background: rgba(27, 218, 135, 0.13); }
.stat b { display: block; font-size: 48px; line-height: 60px; font-weight: 500; color: var(--dark); }
.stat span { font-size: 12px; line-height: 14px; font-weight: 700; color: var(--grey); }
.growth { padding: 30px 28px 33px; border-bottom: 3px solid var(--ink); }
.growth > p { font-size: 12px; font-weight: 600; color: var(--grey-2); }
.stages { display: flex; align-items: center; padding-top: 20px; }
.stage { width: 76px; flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; color: var(--dark); }
.stage img { width: 38px; height: 38px; }
.stage--seed img { width: 29px; height: 29px; margin: 4.5px; }
.stage--current { color: var(--orange); }
.stage--todo { color: #a9b3ad; }
.track { flex: 1; height: 3px; background: #e2e6e2; position: relative; overflow: hidden; margin-bottom: 23px; }
.track i { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(var(--p, 1)); }
.js .profile:not(.is-in) .track i { transform: scaleX(0); }
.track i { transition: transform 900ms var(--ease-out); }
.track:nth-of-type(2) i { transition-delay: 150ms; }
.track:nth-of-type(3) i { transition-delay: 300ms; }
.track:nth-of-type(4) i { transition-delay: 450ms; }
.log { padding: 6px 16px 18px; }
.log li { display: flex; align-items: center; gap: 11px; padding: 12px 0 13px; border-bottom: 1px solid rgba(16, 22, 19, 0.1); }
.log ul { list-style: none; margin: 0; padding: 0; }
.log img { width: 18px; height: 18px; }
.log .what { flex: 1; }
.log .what b { display: block; font-size: 14px; line-height: 16px; font-weight: 600; color: var(--ink); }
.log .what span { font-size: 12px; line-height: 14px; font-weight: 400; color: #77857d; }
.log .hrs { font-size: 24px; line-height: 32px; font-weight: 400; color: var(--dark); }
.notes { position: absolute; left: 0; top: 0; height: 100%; width: 196px; }
.note { position: absolute; left: 0; width: 196px; padding: 10px 15px; border: 2px solid var(--ink); font-size: 12.5px; line-height: 16.9px; font-weight: 600; color: var(--dark); }
.note::after { content: ""; position: absolute; left: 100%; top: 50%; width: 44px; height: 2px; background: var(--ink); }
.note--y { top: 108px; background: var(--yellow); }
.note--b { top: 298px; background: var(--sky); }
.note--g { top: 662px; background: var(--mint); }
.service-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-top: 96px; }
.service-row .big { max-width: 600px; font-size: clamp(36px, 4.5vw, 60px); line-height: 1.2; color: var(--dark); font-weight: 700; }
.tagline-stack { padding-top: 12px; display: grid; gap: 4px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.22; font-weight: 700; }
.tagline-stack span:nth-child(1) { color: var(--green); }
.tagline-stack span:nth-child(2) { color: var(--orange); }
.tagline-stack span:nth-child(3) { color: var(--dark); }
@media (max-width: 1100px) {
  .notes { display: none; }
  .profile-wrap { justify-content: center; }
}
@media (max-width: 700px) {
  .profile-sec { padding: 72px 0; }
  .profile-wrap { margin-top: 40px; }
  .profile { box-shadow: 8px 8px 0 var(--green); }
  .profile__head { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .profile__avatar { width: 52px; height: 52px; }
  .profile__name b { font-size: 22px; line-height: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px; border-bottom: 2px solid rgba(16, 22, 19, 0.13); }
  .stat:nth-child(2) { border-right: 0; }
  .stat b { font-size: 34px; line-height: 44px; }
  .growth { padding: 18px 12px; }
  .stage { width: 50px; flex-basis: 50px; font-size: 10px; }
  .stage img { width: 28px; height: 28px; }
  .stage--seed img { width: 22px; height: 22px; margin: 3px; }
  .log .hrs { font-size: 18px; }
  .service-row { flex-direction: column; padding-top: 56px; gap: 20px; }
}

/* I got you */
.igot { padding: 130px 0; background: var(--cream); }
.igot__grid { display: grid; grid-template-columns: 320px 1fr; gap: 70px; align-items: center; padding: 52px 56px; }
.igot__maky { width: 100%; height: auto; transform-origin: 50% 100%; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .igot__maky:hover { transform: rotate(-4deg) translateY(-6px); } }
.bubble { position: relative; display: inline-block; margin: 8px 0 30px 10px; padding: 12px; background: var(--green); color: var(--white); font-size: 24px; line-height: 32px; font-weight: 700; }
.bubble::after { content: ""; position: absolute; left: 16px; top: 100%; border: 11px solid transparent; border-top-color: var(--green); border-bottom: 0; }
.igot h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1.12; color: var(--dark); }
.igot p { max-width: 520px; padding: 24px 0 26px; font-size: 18px; line-height: 24px; color: var(--grey); }
@media (max-width: 800px) {
  .igot { padding: 64px 0; }
  /* Phone: "I got you." sits above Maky like a speech bubble, then the text */
  .igot__grid { display: flex; flex-direction: column; gap: 0; padding: 0; }
  .igot__text { display: contents; }
  .igot .bubble { order: 0; align-self: center; margin: 0 0 18px; }
  .igot .bubble::after { left: 50%; transform: translateX(-50%); }
  .igot__maky { order: 1; width: 220px; max-width: 60%; align-self: center; margin-bottom: 32px; }
  .igot h2 { order: 2; }
  .igot p { order: 3; }
  .igot .btn { order: 4; align-self: flex-start; }
}

/* Ready to catalyze */
.ready { position: relative; overflow: hidden; padding: 122px 0; background: var(--green); color: var(--white); }
.ready .headline { color: var(--white); }
.ready__ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 34px; }
.ready__note { margin-top: 52px; max-width: 470px; }
.ready__note p { font-size: 12.5px; font-weight: 700; opacity: 0.82; }
.notify { display: flex; margin-top: 13px; height: 58px; padding: 2px; border: 2px solid var(--white); }
.notify input { flex: 1; min-width: 0; border: 0; padding: 0 15px; background: rgba(255, 255, 255, 0.12); color: var(--white); font: 400 15px var(--font-body); outline: none; }
.notify input::placeholder { color: rgba(255, 255, 255, 0.6); }
.notify button { padding: 0 22px; background: var(--white); color: var(--green); font-size: 14px; font-weight: 700; transition: background-color 200ms ease, color 200ms ease; }
.notify button:hover { background: var(--mint); color: var(--dark); }
.notify-msg { margin-top: 10px; font-size: 14px; min-height: 20px; }
.ready__deco { position: absolute; right: -420px; top: 140px; width: 1000px; opacity: 0.09; pointer-events: none; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) { .ready { padding: 72px 0; } .ready__deco { width: 520px; right: -50%; top: auto; bottom: -120px; } }

/* ==========================================================================
   WHAT WE DO
   ========================================================================== */
.friction { padding: 100px 0; background: var(--dark); color: #fcfcfc; }
.friction .headline, .friction .lede { color: #fcfcfc; }
.civic { margin: 87px auto; width: min(388px, 100%); background: var(--cream); padding: 25px; box-shadow: 0 42px 49px rgba(0, 0, 0, 0.42); color: var(--ink); transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .civic:hover { transform: translateY(-6px) rotate(-1deg); } }
.civic__head { display: flex; gap: 17px; align-items: center; padding-bottom: 22px; }
.civic__head img { width: 53px; height: 53px; }
.civic__head b { display: block; font-size: 21px; line-height: 34px; }
.civic__head span { font-size: 16.8px; font-weight: 400; opacity: 0.6; }
.civic li { display: flex; align-items: center; gap: 12.6px; height: 56px; border-top: 1.4px solid rgba(16, 22, 19, 0.12); font-size: 18px; font-weight: 400; }
.civic ul { list-style: none; margin: 0; padding: 0; }
.civic li img { width: 22.5px; height: 22.5px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid rgba(252, 245, 237, 0.3); }
.pillar { padding: 32px 32px 32px 30px; border-right: 2px solid rgba(252, 245, 237, 0.3); }
.pillar:last-child { border-right: 0; }
.pillar h4 { font-size: 36px; line-height: 44px; color: var(--mint); }
.pillar p { padding-top: 10px; max-width: 270px; font-size: 16px; line-height: 20px; font-weight: 400; color: rgba(252, 245, 237, 0.76); }
@media (max-width: 800px) {
  .friction { padding: 64px 0; }
  .civic { margin: 48px auto; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 2px solid rgba(252, 245, 237, 0.3); padding: 24px 0; }
  .pillar h4 { font-size: 28px; line-height: 36px; }
}

.programs { padding: 130px 0 120px; background: var(--mint); }
.programs .title { color: var(--dark); }
.cards { margin-top: 74px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.program {
  position: relative; display: flex; flex-direction: column; min-height: 625px; overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--dark);
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .program:hover { transform: translate(-6px, -6px); box-shadow: 16px 16px 0 var(--dark); }
  .program:hover .program__img img { transform: scale(1.06); }
  .program:hover .program__cta .arrow-txt { transform: translateX(4px); }
}
.program__bg { position: absolute; inset: 0; width: 100%; height: auto; pointer-events: none; }
.program__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 28px 26px 0; }
.program__kicker { font-size: 11px; font-weight: 700; opacity: 0.72; }
.program__logo { height: 52px; width: auto; margin-top: 14px; align-self: flex-start; }
.program__body > p { padding-top: 18px; max-width: 290px; font-size: 14.5px; line-height: 21.75px; font-weight: 400; }
.program__meta { padding-top: 18px; display: grid; gap: 5px; }
.program__meta b { font-size: 16px; }
.program__meta span { font-size: 13.5px; font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 18px; }
.tags span { padding: 6px 11px; border: 1.5px solid rgba(153, 194, 255, 0.5); font-size: 12px; font-weight: 600; }
.program__img { margin: 22px -26px 0; flex: 1; min-height: 170px; border-top: 3px solid var(--ink); overflow: hidden; }
.program__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.program__cta { position: relative; display: flex; align-items: center; gap: 11px; padding: 24px 26px 26px; font-size: 13px; font-weight: 700; }
.program__cta .colorbar { width: 82px; }
.program--studios { background: var(--orange); color: var(--white); }
.program--day { background: var(--cream); color: var(--dark); }
.program--clubs { background: var(--navy); color: var(--sky); }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .program { min-height: 0; } }
@media (max-width: 800px) { .programs { padding: 72px 0; } .cards { margin-top: 40px; gap: 32px; } }

/* ==========================================================================
   ABOUT US
   ========================================================================== */
.identity { padding: 150px 0; background: var(--dark); color: #fcfcfc; }
.identity .headline { color: var(--cream); max-width: 1000px; }
.facts { margin-top: 90px; padding-top: 58px; border-top: 2px solid rgba(252, 245, 237, 0.28); display: grid; grid-template-columns: 1fr 1fr; gap: 80px 90px; }
.fact p { padding-top: 16px; font-size: 24px; line-height: 32px; font-weight: 700; }
@media (max-width: 800px) { .identity { padding: 72px 0; } .facts { grid-template-columns: 1fr; gap: 36px; margin-top: 48px; padding-top: 36px; } .fact p { font-size: 20px; line-height: 28px; } }

.values { padding: 60px 0 150px; background: var(--cream); }
.values ol { list-style: none; margin: 96px 0 0; padding: 0; border-top: 2px solid rgba(0, 70, 67, 0.25); }
.value { display: grid; grid-template-columns: 60px 1fr 330px; align-items: center; min-height: 114px; border-bottom: 1px solid rgba(0, 70, 67, 0.25); color: var(--dark); cursor: default; }
.value .n { font-size: 12px; font-weight: 700; opacity: 0.55; transition: color 220ms ease, opacity 220ms ease; }
.value h3 { font-size: 48px; line-height: 60px; transition: transform 300ms var(--ease-out), color 220ms ease; }
.value p { text-align: right; font-size: 16px; line-height: 20px; opacity: 0.7; }
@media (hover: hover) and (pointer: fine) {
  .value:hover h3 { transform: translateX(18px); color: var(--green); }
  .value:hover .n { color: var(--green); opacity: 1; }
}
@media (max-width: 800px) {
  .values { padding: 40px 0 80px; }
  .values ol { margin-top: 40px; }
  .value { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; min-height: 0; }
  .value h3 { font-size: 30px; line-height: 38px; }
  .value p { text-align: left; }
}

.giver { padding-top: 130px; background: var(--dark); color: #fcfcfc; }
.giver__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.giver__head .headline { color: #fcfcfc; font-size: clamp(48px, 7vw, 90px); line-height: 0.8; max-width: 677px; }
.giver__head p { max-width: 290px; padding-bottom: 10px; font-size: 15.5px; line-height: 24.8px; font-weight: 400; }
.houses { display: flex; height: 530px; margin-top: 66px; }
.house {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 30px 26px;
  transition: flex-grow 550ms var(--ease-in-out);
}
.house.is-open { flex-grow: 2.28; }
.house__flower { position: absolute; right: 4px; top: -46px; width: 230px; height: 230px; transition: transform 900ms var(--ease-out); }
.house.is-open .house__flower { transform: rotate(16deg) scale(1.2); }
.house small { font-size: 12px; font-weight: 600; opacity: 0.72; padding-bottom: 11px; }
.house h3 { font-family: var(--font-head); font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: 0; }
.house dl { display: grid; grid-template-columns: 112px 1fr; gap: 9px 16px; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 550ms var(--ease-in-out), opacity 300ms ease, padding 550ms var(--ease-in-out); }
.house.is-open dl { max-height: 200px; opacity: 1; padding-top: 20px; transition-delay: 0ms, 200ms, 0ms; }
.house dt { font-size: 12px; font-weight: 600; opacity: 0.68; padding-top: 3px; }
.house dd { margin: 0; font-size: 14px; line-height: 16px; font-weight: 400; }
.house--metthos { background: var(--orange); color: var(--white); }
.house--karunos { background: var(--yellow); color: var(--navy); }
.house--pragnos { background: var(--navy); color: var(--sky); }
.house--bodhios { background: var(--sky); color: var(--navy); }
.house-snap { display: none; }
.discover { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; }
.discover b { font-size: 30px; line-height: 38px; }
@media (max-width: 900px) {
  .giver { padding-top: 72px; }
  .giver__head { flex-direction: column; align-items: flex-start; }
  .houses { flex-direction: column; height: auto; margin-top: 40px; }
  /* Phone: compact stacked strips at rest; the active house expands (scroll or tap) */
  .house { flex: none; min-height: 0; justify-content: flex-start; padding: 24px 24px; cursor: pointer; }
  .house h3 { font-size: 40px; position: relative; }
  .house dl { position: relative; grid-template-columns: 96px 1fr; gap: 8px 14px; }
  .house.is-open dl { max-height: 320px; padding-top: 18px; }
  .house dd { line-height: 18px; }
  .house__flower { width: 150px; height: 150px; right: -18px; top: -38px; }
  .house.is-open .house__flower { transform: rotate(16deg) scale(1.3) translate(-6px, 10px); }
  /* The stack pins under the nav while the page scrolls through four equal steps (one per house).
     Snap points sit in the middle of each step, and scroll-snap-stop makes a fast fling stop at each one. */
  .houses-track { --step: 42vh; position: relative; margin-top: 40px; }
  .houses-track::after { content: ""; display: block; height: calc(var(--step) * 4); }   /* scroll room (sticky can't travel into padding) */
  .houses-track .houses { position: sticky; top: calc(var(--nav-h) + 12px); margin-top: 0; }
  .house-snap { display: block; position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; scroll-margin-top: calc(var(--nav-h) + 12px); }
  .house-snap:nth-child(1) { top: calc(var(--step) * 0.5); }
  .house-snap:nth-child(2) { top: calc(var(--step) * 1.5); }
  .house-snap:nth-child(3) { top: calc(var(--step) * 2.5); }
  .house-snap:nth-child(4) { top: calc(var(--step) * 3.5); }
  html:has(.houses-track) { scroll-snap-type: y proximity; }
  .discover { flex-direction: column; align-items: flex-start; }
  .discover b { font-size: 24px; }
}

.meet { padding: 140px 0; background: var(--cream); text-align: center; }
.meet h2 { font-size: clamp(40px, 5vw, 72px); color: var(--dark); }
.meet p { margin: 24px auto 0; max-width: 560px; font-size: 22px; line-height: 1.5; font-weight: 400; color: var(--dark); }
/* Faces are sized by the head (ear tops to chin), not by the image, so props never shrink Maky.
   All source drawings share one scale; per face: --w image width, --x muzzle centre, --t ear-top row,
   --l / --r how far props stick out beyond the 278px-wide head (all in source pixels). */
.faces { --f: 0.37; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 40px 12px; margin-top: 96px; }
.face { position: relative; flex: none; width: calc(278px * var(--f)); height: calc(242px * var(--f)); margin-inline: calc(var(--l) * 1px * var(--f)) calc(var(--r) * 1px * var(--f)); }
.face img { position: absolute; left: calc(50% - var(--x) * 1px * var(--f)); top: calc(var(--t) * -1px * var(--f)); width: calc(var(--w) * 1px * var(--f)); max-width: none; height: auto; transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@media (hover: hover) and (pointer: fine) { .face:hover img { transform: translateY(-14px) rotate(-6deg); } .face:nth-child(even):hover img { transform: translateY(-14px) rotate(6deg); } }
@media (max-width: 800px) { .meet { padding: 72px 0; } .meet p { font-size: 17px; } .faces { --f: 0.3; gap: 48px 10px; margin-top: 72px; } }

/* ==========================================================================
   404 / under construction
   ========================================================================== */
.uc { background: var(--cream); padding: 120px 0 140px; }
.uc__grid { display: grid; grid-template-columns: 560px 1fr; gap: 100px; align-items: center; }
.uc__maky { width: 100%; animation: bob 3.4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes bob { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg) translateY(-6px); } }
.uc .eyebrow { color: var(--green); font-size: 16px; }
.uc h1 { margin-top: 24px; max-width: 640px; }
.uc p { margin-top: 24px; max-width: 560px; font-size: 20px; line-height: 1.5; color: var(--dark); }
.uc__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 1000px) { .uc { padding: 56px 0 80px; } .uc__grid { grid-template-columns: 1fr; gap: 32px; } .uc__maky { max-width: 340px; margin: 0 auto; } .uc__ctas .btn { flex: 1; justify-content: center; } }

/* ---------- Page transitions (cross-document View Transitions, progressive) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms ease both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Reduced motion: keep fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal], .js [data-enter] { transform: none !important; }
  .marquee__track { animation: none; }
  .float, .uc__maky, .ready__deco { animation: none; }
}

/* ==========================================================================
   NONPROFIT DIRECTORY
   ========================================================================== */
.nav__actions--always { display: flex; }
@media (max-width: 600px) { .nav__site { display: none; } }

.dir-hero { background: var(--cream); padding: 44px 0 56px; border-bottom: 3px solid var(--ink); }
.dir-eyebrow { margin-left: 0; }
.dir-title { margin-top: 16px; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.1; font-weight: 700; color: var(--dark); max-width: 900px; }
.dir-title .accent { color: var(--green); }
.dir-sub { margin-top: 18px; max-width: 640px; font-size: 18px; line-height: 1.55; font-weight: 400; color: var(--ink); }
.dir-sub strong { font-weight: 700; color: var(--dark); }

.dir-search { width: 100%; max-width: none; margin-top: 30px; padding: 28px; }
.dir-search .search__field input { height: 64px; }

.dir-causes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cause { height: 36px; padding: 0 14px; border: 1px solid var(--green); color: var(--green); background: var(--white); font-size: 14px; font-weight: 500; transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.cause:active { transform: scale(0.96); }
.cause[aria-pressed="true"] { background: var(--green); color: #fdf0f1; }
@media (hover: hover) and (pointer: fine) { .cause:hover { background: rgba(62, 137, 87, 0.1); } .cause[aria-pressed="true"]:hover { background: var(--dark); } }

.dir-filters { display: grid; grid-template-columns: 1.3fr 0.7fr 1.3fr 1.3fr; gap: 14px; margin-top: 22px; }
.dir-filter label { display: block; margin-bottom: 6px; font-size: 13px; line-height: 1.2; font-weight: 700; color: var(--dark); }
.dir-filter input, .dir-filter select { width: 100%; height: 46px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 0; background: var(--white); font: 400 16px/1 var(--font-body); color: var(--ink); outline: none; appearance: none; }
.dir-filter select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; }
.dir-filter input:focus, .dir-filter select:focus { box-shadow: 0 0 0 4px rgba(27, 218, 135, 0.35); }
.dir-filter input::placeholder { color: var(--grey); }

.dir-results { padding: 48px 0 96px; background: var(--white); scroll-margin-top: var(--nav-h); }
.dir-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dir-count { font-size: 18px; color: var(--ink); }
.dir-count strong { color: var(--dark); font-weight: 700; }
.dir-clear { font-size: 15px; font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.dir-clear:hover { color: var(--dark); }

.dir-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.org { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--white); border: 2px solid var(--ink); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .org:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--green); } }
.org__cause { align-self: flex-start; padding: 3px 10px; background: var(--mint); color: var(--dark); font-size: 12px; font-weight: 700; }
.org__name { font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--dark); overflow-wrap: anywhere; }
.org__desc { font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--ink); }
.org__place { font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--grey-2); }
.org__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.org__tag { padding: 3px 9px; border: 1px solid rgba(16, 22, 19, 0.2); font-size: 12px; font-weight: 500; color: var(--ink); transition: border-color 160ms ease, color 160ms ease; }
.org__tag:hover { border-color: var(--green); color: var(--green); }
.org__contact { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 500; }
.org__contact a { color: var(--dark); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.org__link { margin-top: auto; padding-top: 8px; align-self: flex-start; font-size: 15px; font-weight: 700; color: var(--green); }
.org__link:hover { color: var(--dark); }
.org__name a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.dir-note { margin: -8px 0 22px; padding: 12px 16px; background: var(--yellow); border-left: 4px solid var(--green); font-size: 15px; line-height: 1.5; color: var(--ink); }
.dir-note strong { font-weight: 700; color: var(--dark); }
.dir-empty { padding: 48px 24px; text-align: center; border: 2px dashed rgba(16, 22, 19, 0.25); }
.dir-empty__title { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.dir-more { display: flex; justify-content: center; margin-top: 36px; }
.dir-more .btn { height: 52px; padding: 0 28px; font-weight: 600; }

.footer--slim { padding-top: 56px; }
.footer__slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 60px; }
.footer__slim .logo { width: 200px; }
.footer__note { max-width: 560px; font-size: 14px; line-height: 1.6; font-weight: 400; opacity: 0.85; }
.footer--slim .footer__bottom { margin-top: 40px; }

@media (max-width: 1000px) {
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .dir-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .dir-hero { padding: 40px 0 48px; }
  .dir-search { padding: 20px 16px 22px; }
  .dir-causes { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .dir-causes::-webkit-scrollbar { display: none; }
  .cause { flex: none; }
  .dir-filters { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dir-grid { grid-template-columns: 1fr; }
  .dir-bar { flex-wrap: wrap; }
}


/* ==========================================================================
   ACCESSIBILITY (WCAG 2.2 AA)
   ========================================================================== */
/* 1.4.3 Contrast — small green text and green buttons use the deeper green */
.btn--primary { background: var(--green-text); border-color: var(--green-text); }
.btn--outline { color: var(--green-text); border-color: var(--green-text); }
@media (hover: hover) and (pointer: fine) { .btn--outline:hover { background: var(--green-text); color: var(--white); } }
.hero__eyebrow, .uc .eyebrow, .dir-clear, .org__link, .org__name a:hover { color: var(--green-text); }
.search__field button { background: var(--green-text); color: var(--white); }
.marquee { background: var(--green-text); }

/* 2.4.7 / 1.4.11 Focus visible — a strong, high-contrast ring everywhere */
:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; }
.footer :focus-visible { outline-color: var(--mint); }
.search__field:focus-within { box-shadow: none; outline: 3px solid var(--dark); outline-offset: 3px; }
.search__field input:focus-visible { outline: none; }
.dir-filter input:focus, .dir-filter select:focus { box-shadow: none; outline: 3px solid var(--dark); outline-offset: 2px; }

/* 2.4.1 / 2.4.7 Skip link — hidden until it receives keyboard focus */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--dark); color: var(--white); font-weight: 700; }
.skip-link:focus { top: 12px; outline-color: var(--mint); }

/* 2.4.11 Focus not obscured — keep focused items clear of the sticky header */
html { scroll-padding-top: calc(var(--nav-h) + 16px); }

/* 2.5.8 Target size — every link and button at least 24px tall */
.dir-clear { min-height: 44px; padding: 0 4px; }
.org__contact { gap: 4px; }
.org__contact a { display: inline-flex; align-items: center; min-height: 24px; align-self: flex-start; }
.org__link { min-height: 24px; }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 24px; }

/* Card actions: Website · Volunteer · Share — icon + word as light links, not boxes */
.org { border: 1px solid rgba(16, 22, 19, 0.18); }
@media (hover: hover) and (pointer: fine) { .org:hover { border-color: var(--ink); } }
.org__actions { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(16, 22, 19, 0.1); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.org__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; background: none; border: 0; color: var(--green-text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.org__btn span:not(.visually-hidden) { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 160ms ease; }
.org__btn:hover span:not(.visually-hidden) { text-decoration-color: currentColor; }
.org__icon { flex: none; }

/* 1.4.10 Reflow — header fits at 320px wide */
@media (max-width: 420px) {
  .nav__inner { gap: 12px; }
  .nav__logo .word { width: 104px; height: auto; }
  .nav__actions .btn { padding: 0 12px; font-size: 15px; }
}

/* Slim footer: logo left, website + social right */
.footer__links { display: flex; gap: 28px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 24px; font-size: 16px; color: #fcfcfc; transition: color 200ms ease; }
.footer__links a:hover { color: var(--mint); }

/* Share icon: small button at the right end of the Website / Volunteer row */
.org { position: relative; }
.org__actions { align-items: center; }
.org__share { position: relative; margin-left: auto; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--green-text); border-radius: 50%; transition: background-color 160ms ease; }
.org__share .org__icon { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .org__share:hover { background: rgba(53, 122, 76, 0.1); } }
.org__toast { position: absolute; bottom: 44px; right: 0; padding: 4px 10px; background: var(--dark); color: var(--white); font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 160ms ease; }
.org__share.is-toast .org__toast { opacity: 1; }


/* =====================================================================
   NONPROFIT PAGE (nonprofit.html?ein=…) — one page for every nonprofit
   ===================================================================== */



/* Header */
.np-crumbs { padding: 22px 0 0; font-size: 14px; color: var(--grey-2); }
.np-crumbs a { color: var(--green-text); text-decoration: underline; text-underline-offset: 3px; }
.np-head { padding: 20px 0 28px; display: flex; gap: 22px; align-items: flex-start; }
.np-logo { flex: none; width: 96px; height: 96px; border: 2px dashed rgba(16,22,19,.35); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: 600; color: var(--grey-2); background: var(--white); }
.np-title { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.1; font-weight: 700; color: var(--dark); }
.np-meta { margin-top: 8px; font-size: 16px; color: var(--grey-2); }
.np-friendly { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--green-text); }
.np-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.np-actions .btn { height: 48px; padding: 0 20px; font-weight: 600; }
.np-icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--green-text); color: var(--green-text); }
.np-icon-btn:hover { background: rgba(53,122,76,.08); }

/* One-word tabs; each shows its own section */
.np-tabs { position: sticky; top: var(--nav-h); z-index: 20; background: var(--white); border-bottom: 1px solid rgba(16,22,19,.12); scroll-margin-top: var(--nav-h); }
.np-tabs [role="tablist"] { display: flex; gap: 40px; overflow-x: auto; scrollbar-width: none; }
.np-tabs [role="tablist"]::-webkit-scrollbar { display: none; }
.np-tabs [role="tab"] { display: inline-flex; align-items: center; min-height: 56px; font-size: 17px; font-weight: 600; color: var(--grey-2); white-space: nowrap; border-bottom: 3px solid transparent; }
.np-tabs [role="tab"][aria-selected="true"] { color: var(--dark); border-bottom-color: var(--dark); }
.np-tabs [role="tab"]:hover { color: var(--green-text); }
.np-tabs [role="tab"]:focus-visible { outline-offset: -3px; }

.np-body { padding-top: 8px; padding-bottom: 72px; }
.np-panel { padding: 36px 0; min-height: 340px; }
.np-panel:focus-visible { outline-offset: 6px; }
.np-panel h2 { font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.np-panel h3.np-h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin: 30px 0 10px; }
.np-panel p { font-size: 17px; line-height: 1.65; font-weight: 400; max-width: 760px; }
.np-note { margin-top: 10px; font-size: 14px !important; color: var(--grey-2); }
.np-example { display: inline-block; margin-bottom: 12px; padding: 3px 10px; background: var(--yellow); font-size: 13px; font-weight: 700; }
.np-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.np-chips span { padding: 5px 12px; border: 1px solid rgba(16,22,19,.2); font-size: 14px; }
.np-facts { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; max-width: 640px; border-top: 1px solid rgba(16,22,19,.12); }
.np-facts dt, .np-facts dd { margin: 0; padding: 10px 0; border-bottom: 1px solid rgba(16,22,19,.12); font-size: 15px; }
.np-facts dt { color: var(--grey-2); }
.np-facts dd { font-weight: 600; }
.np-link { color: var(--green-text); text-decoration: underline; text-underline-offset: 3px; }

/* Volunteer: interest box (today) and shifts (claimed) */
.np-interest { padding: 26px; border: 2px solid var(--dark); max-width: 760px; }
.np-interest strong { display: block; font-size: 20px; color: var(--dark); margin-bottom: 6px; }
.np-interest .btn { margin-top: 16px; height: 48px; font-weight: 700; }
.np-interest .np-done { display: none; margin-top: 16px; font-weight: 700; color: var(--green-text); }
.np-interest.is-done .np-im { display: none; }
.np-interest.is-done .np-done { display: block; }
.np-shifts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 860px; }
.np-shift { display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid rgba(16,22,19,.18); }
/* Calendar tile (shape matches the Samaky app); open shifts use a quieter version */
.np-date { width: 64px; align-self: start; text-align: center; border-radius: 10px; overflow: hidden; background: var(--white); border: 1px solid rgba(16,22,19,.16); }
.np-date span { display: block; padding: 5px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.2; }
.np-date b { display: block; padding: 6px 0 9px; font-size: 28px; font-weight: 800; line-height: 1; color: var(--ink); }
/* A · Outline: no fill, rust month text */
/* B · Gray band */
.np-date span { background: #eceeed; color: #4f5c56; }
/* C · Soft rust tint */
/* D · All gray, minimal */
/* Shifts you've signed up for: the app's filled rust tile */
.np-shift.is-mine .np-date { background: var(--white); border-color: rgba(16,22,19,.16); }
.np-shift.is-mine .np-date span { background: #a3472b; color: var(--white); padding-bottom: 4px; }
.np-shift.is-mine .np-date b { padding-top: 6px; color: var(--ink); }
.np-shift h4 { font-size: 17px; font-weight: 700; color: var(--dark); }
.np-shift p { font-size: 14px !important; color: var(--grey-2); margin-top: 2px; }
.np-path { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 13px; }
.np-path span::after { content: "→"; margin-left: 6px; color: var(--grey-2); }
.np-path span:last-child::after { content: ""; }
.np-shift .btn { height: 44px; font-weight: 600; }

/* Give and Related cards */
.np-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.np-card { padding: 20px; border: 1px solid rgba(16,22,19,.18); display: flex; flex-direction: column; gap: 6px; }
a.np-card:hover { border-color: var(--ink); }
.np-card h3, .np-card strong { font-size: 17px; font-weight: 700; color: var(--dark); }
.np-card p, .np-card span { font-size: 14px !important; color: var(--grey-2); }
.np-card .np-go { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 700; color: var(--green-text); }
.np-card .np-soon { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--grey-2); }
.np-card small { align-self: flex-start; padding: 2px 8px; background: var(--mint); color: var(--dark); font-size: 12px; font-weight: 700; }

/* Directory card with logo (how claimed nonprofits look in search results) */
.np-dircard { max-width: 380px; padding: 22px; border: 1px solid rgba(16,22,19,.18); display: flex; flex-direction: column; gap: 8px; }
.np-dircard .row { display: flex; gap: 12px; align-items: center; }
.np-dircard .mini { flex: none; width: 48px; height: 48px; border: 2px dashed rgba(16,22,19,.35); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--grey-2); }
.np-dircard strong { font-size: 19px; color: var(--dark); line-height: 1.2; }
.np-dircard p { font-size: 14px; color: var(--grey-2); }
.np-dircard .ok { color: var(--green-text); font-weight: 700; }

.np-claim { margin-top: 4px; padding: 28px; background: var(--dark); color: var(--white); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.np-claim[hidden], .np-logo[hidden] { display: none; }
.np-claim h2 { color: var(--white); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.np-claim p { color: rgba(255,255,255,.85); font-size: 15px; }
.np-claim .btn { background: var(--mint); color: var(--dark); border-color: var(--mint); height: 48px; font-weight: 700; }
.np-claim .btn:focus-visible { outline-color: var(--mint); }
.np-dirsec h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 8px 0 12px; }

@media (max-width: 640px) {
  .np-head { flex-direction: column; gap: 14px; }
  .np-logo { width: 72px; height: 72px; }
  .np-tabs [role="tablist"] { gap: 26px; }
  .np-shift { grid-template-columns: 60px 1fr; }
  .np-date { width: 60px; }
  .np-shift .btn { grid-column: 1 / -1; justify-content: center; }
}

.np-roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 860px; }
.np-role { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; padding: 18px 20px; border: 1px solid rgba(16,22,19,.18); }
.np-role h3 { font-size: 18px; font-weight: 700; color: var(--dark); }
.np-role p { font-size: 15px !important; color: var(--ink); margin-top: 4px; }
.np-role .np-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.np-role .np-tags span { padding: 3px 9px; background: var(--cream); font-size: 13px; font-weight: 600; color: var(--dark); }
.np-role .btn { height: 44px; font-weight: 600; white-space: nowrap; }
.np-src { margin-top: 14px; padding: 12px 14px; background: var(--cream); font-size: 14px; max-width: 860px; }
@media (max-width: 640px) { .np-role { grid-template-columns: 1fr; } .np-role .btn { justify-content: center; } }
.np-shift .np-when { font-size: 14px !important; color: var(--ink) !important; }
.np-spots { font-size: 13px !important; font-weight: 700; color: var(--green-text) !important; margin-top: 6px !important; }
.np-spots.low { color: #b3471d !important; }
.np-need { display: inline-block; margin-top: 6px; padding: 2px 8px; background: var(--yellow); font-size: 12px; font-weight: 700; color: var(--ink); }
.np-shift .btn--outline { background: var(--white); }
.np-state { font-size: 14px; font-weight: 700; color: var(--green-text); }
.np-mine { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 14px 18px; margin-bottom: 16px; background: var(--mint); color: var(--dark); font-weight: 600; max-width: 860px; }
.np-who { font-size: 14px; color: var(--grey-2); margin: -6px 0 16px; }
.np-day { font-size: 15px; font-weight: 700; color: var(--dark); margin: 22px 0 10px; }
dialog.np-dlg { border: 0; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); color: var(--ink); }
dialog.np-dlg::backdrop { background: rgba(0,0,0,.5); }
.np-dlg form, .np-dlg .np-ok { padding: 26px; display: grid; gap: 14px; }
.np-dlg h2 { font-size: 22px; font-weight: 700; color: var(--dark); }
.np-dlg .np-sum { padding: 14px; background: var(--cream); font-size: 15px; }
.np-dlg .np-sum b { display: block; color: var(--dark); font-size: 17px; }
.np-dlg label.np-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.np-dlg input[type=checkbox] { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--green-text); flex: none; }
.np-dlg .np-fine { font-size: 13px; color: var(--grey-2); }
.np-dlg .np-row { display: flex; flex-wrap: wrap; gap: 10px; }
.np-dlg .btn { height: 46px; font-weight: 700; }
.np-give { max-width: 560px; padding: 24px; border: 2px solid var(--dark); }
.np-give fieldset { border: 0; padding: 0; margin: 0; }
.np-give legend { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.np-amts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.np-amts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.np-amts label { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 2px solid var(--green-text); color: var(--green-text); font-weight: 700; font-size: 17px; cursor: pointer; }
.np-amts input:checked + label { background: var(--green-text); color: var(--white); }
.np-amts input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.np-other { margin-top: 14px; }
.np-other label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.np-money { display: flex; align-items: center; border: 2px solid var(--ink); max-width: 220px; }
.np-money span { padding: 0 10px; font-weight: 700; font-size: 18px; }
.np-money input { border: 0; height: 46px; width: 100%; font: 600 18px var(--font-body); padding-right: 10px; }
.np-err { color: #b3471d; font-size: 14px; font-weight: 700; margin-top: 6px; min-height: 1em; }
.np-give .btn { margin-top: 18px; width: 100%; justify-content: center; height: 52px; font-weight: 700; font-size: 17px; }
.np-give .np-fine { font-size: 13px; color: var(--grey-2); margin-top: 10px; }
.np-or { margin-top: 22px; max-width: 560px; font-size: 15px; }
.np-paper { position: relative; max-width: 620px; margin-top: 18px; padding: 44px 46px 40px; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.18); border: 1px solid #ddd; font-size: 14px; overflow: hidden; }
.np-paperwrap { background: #e7e7e4; padding: 22px; max-width: 664px; }
.np-paperbar { display: flex; justify-content: space-between; align-items: center; background: #3b3b3b; color: #fff; font-size: 13px; padding: 8px 14px; max-width: 664px; }
.np-paper .wm::before { content: "SAMPLE"; }
.np-paper .wm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform: rotate(-24deg); font: 800 64px/1 var(--font-body); color: rgba(241,104,56,.16); pointer-events: none; letter-spacing: 4px; }
.np-paper header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--dark); padding-bottom: 14px; margin-bottom: 18px; gap: 12px; }
.np-paper h3 { font-size: 20px; color: var(--dark); font-weight: 700; }
.np-paper dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 14px 0; }
.np-paper dt { font-weight: 700; color: var(--dark); }
.np-paper .amt { font-size: 26px; font-weight: 800; color: var(--dark); }
.np-paper p { margin-top: 10px; font-size: 14px !important; }
.np-paper dd { margin: 0; }
.np-paper .meta { text-align: right; }
.np-paper footer { margin-top: 22px; padding-top: 12px; border-top: 1px solid #ccc; font-size: 12px; color: #555; }
@media (max-width: 640px) { .np-amts { grid-template-columns: repeat(2, 1fr); } .np-paper { padding: 30px 22px; } .np-paper dl { grid-template-columns: 1fr; gap: 2px; } .np-paper dd { margin-bottom: 8px; } .np-paper header { flex-direction: column; } .np-paper .meta { text-align: left; } .np-paperwrap { padding: 10px; } }
.np-logo--on { border: 1px solid rgba(16,22,19,.18); background: #f4a51c; color: var(--ink); font: 800 30px/1 var(--font-body); letter-spacing: 1px; }
a.np-card.np-more { align-items: center; justify-content: center; text-align: center; border: 2px dashed var(--green-text); min-height: 120px; }
.np-more .plus { width: 40px; height: 40px; border-radius: 50%; background: var(--green-text); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; line-height: 1; }
.np-more strong { color: var(--green-text) !important; }
/* ---- Header options (all white) ---- */
.nav__actions .btn.btn--outline { height: 38px; padding: 0 14px; font-size: 14px; font-weight: 600; background: transparent; }
.np-hero { background: var(--white); border-bottom: 1px solid rgba(16,22,19,.12); }
.np-head { padding: 26px 0 34px; }
.np-title { font-size: clamp(34px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.5px; }
/* Cover */
.np-cover { display: none; position: relative; height: clamp(150px, 22vw, 260px);
  background: linear-gradient(135deg, #cfdcd4 0%, #a9bfb3 55%, #8ea79a 100%); }
.np-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.np-cover span { position: absolute; right: 14px; bottom: 12px; padding: 4px 10px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 600; }
/* Name on a white panel overlapping the cover */
.np-hero { border-bottom: 0; }
.np-cover { display: block; height: clamp(170px, 26vw, 300px); }
.np-head { position: relative; background: var(--white); margin-top: -96px; padding: 30px 34px 34px; max-width: 900px; border: 1px solid rgba(16,22,19,.18); border-top: 5px solid var(--dark); }
.np-hero { position: relative; }
.np-head { box-sizing: border-box; width: 100%; }
.np-tabs { margin-top: 26px; }
@media (max-width: 640px) {
  .np-head { margin-top: -56px; padding: 22px 20px 24px; }
}
/* Claimed seal in the panel corner */
.np-head { position: relative; }
.np-badge[hidden], .np-seal[hidden], .np-tip[hidden] { display: none; }
.np-seal { position: absolute; z-index: 2; }
.np-seal__btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--green-text); font: 700 13px/1 var(--font-body); letter-spacing: .3px; text-transform: uppercase; }
.np-seal__btn svg { width: 40px; height: 40px; flex: none; transition: transform .15s; }
.np-seal__btn:hover svg { transform: rotate(-8deg) scale(1.05); }
.np-seal__txt { display: none; }
.np-tip { position: fixed; z-index: 50; width: min(280px, calc(100vw - 32px)); padding: 12px 14px; background: var(--ink); color: var(--white); font-size: 14px; line-height: 1.45; font-weight: 500; text-transform: none; letter-spacing: 0; }
.np-seal { top: 16px; right: 16px; }
/* keep long names clear of the seal */
.np-namerow { padding-right: 56px; }
@media (max-width: 640px) {
  .np-namerow { padding-right: 26px; }
  .np-seal { top: 8px; right: 8px; }
  .np-seal__btn svg { width: 30px; height: 30px; }
}

/* Quieter "Get Samaky" button on nonprofit pages, so the nonprofit's name leads */
body:has(.np-hero) .nav__actions .btn { height: 38px; padding: 0 14px; font-size: 14px; font-weight: 600; background: transparent; color: var(--green-text); border: 1px solid var(--green-text); }
body:has(.np-hero) .nav__actions .btn:hover { background: rgba(53,122,76,.08); }
.np-empty { max-width: 760px; padding: 24px; border: 1px solid rgba(16,22,19,.18); }
.np-empty h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.np-empty p { font-size: 15px; }
.np-empty .np-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.np-empty .btn { height: 46px; font-weight: 600; }
.np-missing { padding: 80px 0; }
.np-missing h1 { font-size: 32px; color: var(--dark); margin-bottom: 10px; }

/* Whole card opens the nonprofit page; Website, Volunteer and Share stay clickable on top */
.org__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.org__actions, .org__contact { position: relative; z-index: 1; }
.org { cursor: pointer; }
.org:hover { border-color: var(--ink); }
.org:has(.org__name a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.org__name a:focus-visible { outline: none; }

/* Unclaimed: the same seal in gray; clicking it leads to "Claim this page" */
.np-seal.is-unclaimed .np-seal__btn { color: #7b8581; }
.np-seal.is-unclaimed .np-seal__btn:hover { color: #5f6965; }

/* Back to the directory: small "← Search" pill on the cover's top-left corner */
.np-back-c { position: absolute; z-index: 3; top: 14px; left: max(16px, calc((100vw - var(--container)) / 2 + 8px));
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none;
  box-shadow: 0 1px 4px rgba(16,22,19,.15); }
.np-back-c:hover { background: var(--white); }
.np-back-c:hover span:first-of-type { text-decoration: underline; text-underline-offset: 3px; }

/* Results view: Grid or List */
.dir-bar { align-items: center; }
.dir-bar__right { display: flex; align-items: center; gap: 16px; }
.dir-view { display: inline-flex; border: 1px solid rgba(16,22,19,.25); }
.dir-view button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; background: var(--white); color: var(--ink); font: 600 14px var(--font-body); cursor: pointer; border: 0; }
.dir-view button + button { border-left: 1px solid rgba(16,22,19,.25); }
.dir-view button[aria-pressed="true"] { background: var(--dark); color: var(--white); }
.dir-view button:hover:not([aria-pressed="true"]) { background: rgba(53,122,76,.08); }

.dir-grid.is-list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(16,22,19,.18); }
.dir-grid.is-list .org {
  display: grid; grid-template-columns: minmax(0, 1fr) 270px auto; grid-template-areas: "name place actions" "desc place actions";
  align-items: center; gap: 2px 28px; padding: 16px 4px; border: 0; border-bottom: 1px solid rgba(16,22,19,.18); background: var(--white);
}
.dir-grid.is-list .org:hover { transform: none; box-shadow: none; background: #f7faf8; }
.dir-grid.is-list .org__name { grid-area: name; font-size: 18px; }
.dir-grid.is-list .org__desc { grid-area: desc; font-size: 14px; color: #4f5c56; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-grid.is-list .org__place { grid-area: place; }
.dir-grid.is-list .org__contact { display: none; }
.dir-grid.is-list .org__actions { grid-area: actions; margin: 0; padding: 0; border: 0; flex-wrap: nowrap; gap: 4px 16px; }
@media (max-width: 860px) {
  .dir-grid.is-list .org { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name actions" "desc actions" "place actions"; }
}
@media (max-width: 560px) {
  .dir-view span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dir-view button { padding: 0 10px; }
  .dir-grid.is-list .org { grid-template-columns: 1fr; grid-template-areas: "name" "place" "actions"; padding: 14px 2px; }
  .dir-grid.is-list .org__desc { display: none; }
  .dir-grid.is-list .org__actions { margin-top: 4px; }
}

/* Cause sits in the details line under the description: "Brooklyn Park, MN 55428 · Food" (same style as the address) */

/* Cause color: a short strip across the top of each card (a tiny version of the nonprofit's cover) */
.org { border-top: 6px solid var(--cc, #86a297); }
.org__dot { display: none; }

/* List view: each row is its own full-width card, spaced like the grid cards */
.dir-grid.is-list { gap: 14px; border-top: 0; }
.dir-grid.is-list .org { padding: 20px 24px; border: 1px solid rgba(16, 22, 19, 0.18); border-left: 6px solid var(--cc, #86a297); row-gap: 6px; }
@media (max-width: 560px) { .dir-grid.is-list .org { padding: 18px 18px 14px; } .dir-grid.is-list .org__actions { margin-top: 8px; } }

/* Nonprofit page actions: Volunteer, Website, Share as icons only (words stay for screen readers and hover) */
.np-actions { gap: 6px; margin-left: -10px; }
.np-act { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: none; border: 0; color: var(--green-text); cursor: pointer; text-decoration: none; }
.np-act:hover { background: rgba(53,122,76,.1); }
.np-act svg { width: 22px; height: 22px; }
.np-act__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Panel's top line uses the nonprofit's cause color (set from the page script) */
.np-head { border-top-color: var(--cc, var(--dark)); }

/* Keep the cover drawing inside the cover, and the Summary inside narrow screens */
.np-cover { overflow: hidden; }
.np-facts dd { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 480px) { .np-facts { grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); } }

/* Directory hero: Balgin headline (lowercase, like the rest of samaky.co) */
/* Dark green hero, like "kindness deserves a lasting identity." */
.dir-hero { background: var(--dark); border-bottom: 0; }
.dir-title { color: var(--cream); }
.dir-sub { color: rgba(252,245,237,.88); }
.dir-sub strong { color: var(--mint); }
.dir-search { box-shadow: 12px 12px 0 var(--mint); }

/* Search feedback: the count flashes mint and the cards fade in when results change */
@keyframes dirFlash { 0% { background: var(--mint); } 100% { background: transparent; } }
@keyframes dirCardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dir-count.is-new { animation: dirFlash 900ms ease-out; border-radius: 4px; }
.dir-grid.is-new .org { animation: dirCardIn 380ms var(--ease-out) both; }
.dir-grid.is-new .org:nth-child(2) { animation-delay: 40ms; } .dir-grid.is-new .org:nth-child(3) { animation-delay: 80ms; }
.dir-grid.is-new .org:nth-child(4) { animation-delay: 120ms; } .dir-grid.is-new .org:nth-child(5) { animation-delay: 160ms; }
.dir-grid.is-new .org:nth-child(n+6) { animation-delay: 200ms; }
@media (prefers-reduced-motion: reduce) { .dir-count.is-new, .dir-grid.is-new .org { animation: none !important; } }

/* A calmer start: pick a cause, or a few nonprofits ready for volunteers */
.dir-start { display: grid; gap: 56px; }
.dir-start[hidden], .dir-bar[hidden], .dir-grid[hidden], .dir-start__causes[hidden], .dir-start__ready[hidden] { display: none; }
.dir-start__h { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; color: var(--dark); margin-bottom: 18px; }
.dir-start__sub { margin: -10px 0 18px; font-size: 16px; color: #4f5c56; }
.dir-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dir-tile { width: 100%; min-height: 76px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 14px 18px; background: var(--white); border: 1px solid rgba(16,22,19,.18); border-left: 6px solid var(--cc, #86a297); text-align: left; cursor: pointer; font-family: var(--font-body); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.dir-tile b { font-size: 18px; color: var(--dark); }
.dir-tile span { font-size: 14px; color: var(--grey-2); }
.dir-tile--more { border-left-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .dir-tile:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--green); } }
.dir-start__all { text-align: center; }
.dir-start__all .btn { height: 48px; font-weight: 600; }
@media (max-width: 860px) { .dir-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .dir-tile { padding: 12px 14px; } .dir-tile b { font-size: 16px; } }
.btn[hidden], .dir-more [hidden] { display: none; }

/* Directory hero sized like About us ("kindness deserves a lasting identity."):
   tall dark section, large Balgin headline, a thin line, then a small mint label over the search */
.dir-hero { padding: 150px 0; }
.dir-title.headline { margin: 0; max-width: 1000px; color: var(--cream); }
.dir-hero__body { margin-top: 90px; padding-top: 58px; border-top: 2px solid rgba(252, 245, 237, 0.28); }
.dir-hero__label { margin: 0 0 20px; font-size: 14px; line-height: 1.4; }
.dir-hero__label #total-count { font-weight: 700; }
.dir-hero .dir-search { margin-top: 0; }
@media (max-width: 800px) { .dir-hero { padding: 72px 0; } .dir-hero__body { margin-top: 48px; padding-top: 36px; } }
.dir-title.headline--lg { font-size: clamp(48px, 7vw, 94px); line-height: 0.9; }

/* Match samaky.co: white Search text on the deeper green; clear focus ring on the search box */
.search__field button { background: #357a4c; color: var(--white); }
.search__field:focus-within { box-shadow: 0 0 0 3px var(--dark); }
.btn--primary { background: #357a4c; }
/* Directory hero: no divider, tighter spacing so the whole search box fits on a laptop screen */
.dir-hero { padding: 72px 0 80px; }
.dir-hero__body { margin-top: 44px; padding-top: 0; border-top: 0; }
@media (max-width: 800px) { .dir-hero { padding: 48px 0 56px; } .dir-hero__body { margin-top: 28px; padding-top: 0; } }
.dir-hero__body { margin-top: 56px; }
@media (max-width: 800px) { .dir-hero__body { margin-top: 32px; } }
/* Directory hero matches the "What we do" section (it's friction, not character) */
.dir-hero { padding: 100px 0; }
.dir-title.headline { font-size: clamp(44px, 6vw, 72px); line-height: 1.12; }
.dir-hero__body { margin-top: 87px; }
@media (max-width: 800px) { .dir-hero { padding: 64px 0; } .dir-hero__body { margin-top: 48px; } }
@media (max-width: 600px) { .dir-title br { display: none; } }
/* Related nonprofits use the same cards as the directory (cause strip on top, no tag) */
.np-related { list-style: none; margin: 0; padding: 0; }
.np-rel .org__name a::after { content: ""; position: absolute; inset: 0; }
.np-rel:hover { border-color: var(--ink); border-top-color: var(--cc, #86a297); }
.np-rel-more { border: 2px dashed #8a9893; }
.np-rel-go { margin-top: auto; align-self: flex-start; padding: 10px 16px; border: 2px solid var(--green-text); font-size: 15px; font-weight: 700; color: var(--green-text); transition: background 150ms ease, color 150ms ease; }
.np-rel-more:hover .np-rel-go, .np-rel-more:focus-within .np-rel-go { background: var(--green-text); color: var(--white); }
.np-rel-more:hover { border: 2px dashed var(--green-text); }
/* Phone: smaller search box with even space on both sides of the mint shadow */
@media (max-width: 700px) {
  .dir-search { width: calc(100% - 8px); box-shadow: 8px 8px 0 var(--mint); padding: 18px 16px 20px; }
  .dir-search .search__field input { height: 54px; font-size: 16px; }
  .dir-search .search__field button { height: 50px; font-size: 17px; }
  .dir-search .dir-filters { gap: 12px 14px; }
}
/* Phone: headline in two even lines, "find a nonprofit / you care about." */
@media (max-width: 600px) { .dir-title br { display: inline; } .dir-title.headline { font-size: clamp(28px, 9.4vw, 44px); } }
/* Arriving from the samaky.co homepage: the search box glides into place instead of the page flashing */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .dir-search { view-transition-name: np-search; }
  ::view-transition-group(np-search) { animation-duration: 420ms; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
}
/* Compact pickers for City, Cause and Your major or skill (js/picker.js) */
.pick { position: relative; }
.dir-filter .pick__btn { width: 100%; height: 46px; padding: 0 36px 0 12px; border: 2px solid var(--ink); background: var(--white); font: 400 16px/1 var(--font-body); color: var(--ink); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.dir-filter .pick__btn, .pick__toggle { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.pick__toggle { position: absolute; right: 2px; bottom: 2px; width: 34px; height: 42px; border: 0; background-color: transparent; cursor: pointer; }
.dir-filter.pick input { padding-right: 36px; text-overflow: ellipsis; }
.dir-filter .pick__btn:focus-visible { outline: 3px solid var(--dark); outline-offset: 2px; }
.pick__list { position: absolute; z-index: 40; left: 0; top: 100%; width: max(100%, 240px); max-width: calc(100vw - 32px); margin: 4px 0 0; padding: 4px 0; list-style: none; max-height: 174px; overflow-y: auto; overscroll-behavior: contain; background: var(--white); border: 2px solid var(--ink); box-shadow: none; }
.pick__list[hidden] { display: none; }
.pick__opt, .pick__none { padding: 9px 12px; font-size: 15px; line-height: 1.35; color: var(--ink); cursor: pointer; }
.pick__none { color: #4f5c56; cursor: default; }
.pick__opt:hover { background: #eef5f0; }
.pick__opt.is-active { background: #dcefe2; outline: 2px solid var(--dark); outline-offset: -2px; }
.pick__opt[aria-selected="true"] { font-weight: 700; }
.pick__opt[aria-selected="true"]::after { content: " ✓"; color: #357a4c; }
.pick__list.is-right { left: auto; right: 0; }
@media (max-width: 700px) { .dir-filter.pick input { padding-right: 26px; } .pick__toggle { width: 26px; } .pick__toggle { background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%; } }
.pick__head { padding: 8px 12px 4px; font-size: 13px; font-weight: 700; color: #4f5c56; }
/* Card hover: fills with Samaky green from the top strip down, words turn white, card floats on a soft shadow */
.org:not(.np-rel-more) { background-image: linear-gradient(#357a4c, #357a4c); background-repeat: no-repeat; background-size: 100% 0; transition: background-size 300ms cubic-bezier(.2, .7, .2, 1), transform 200ms ease, box-shadow 200ms ease, border-color 180ms ease; }
.org:not(.np-rel-more) :is(.org__name a, .org__desc, .org__place, .org__btn, .org__share) { transition: color 180ms ease; }
.org:not(.np-rel-more):is(:hover, :focus-within) { background-size: 100% 100%; border-color: #357a4c; transform: none; box-shadow: none; }
.org:not(.np-rel-more):is(:hover, :focus-within) :is(.org__name a, .org__desc, .org__place, .org__btn, .org__share) { color: #fff; text-decoration: none; }
.org:not(.np-rel-more):is(:hover, :focus-within) .org__actions { border-top-color: rgba(255, 255, 255, .3); }
.org:not(.np-rel-more):is(:hover, :focus-within) .org__dot { background: #fff; }
.org:not(.np-rel-more):is(:hover, :focus-within) .org__share:hover { background: rgba(255, 255, 255, .15); }
/* List view: same green fill (the older list hover set a plain background that hid the fill) */
.dir-grid.is-list .org:not(.np-rel-more):is(:hover, :focus-within) { background-color: var(--white); background-image: linear-gradient(#357a4c, #357a4c); background-size: 100% 100%; border-color: #357a4c; border-left-color: #357a4c; transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .org:not(.np-rel-more) { transition: none; } }
/* Lists open straight out of their box: same width, no gap, no extra outlines */
.pick__list { margin: 0; left: 0; right: auto; width: 100%; max-width: none; border-top: 0; }
.pick__list.is-right { left: 0; right: auto; }
.dir-filter.pick :is(input, .pick__btn)[aria-expanded="true"] { outline: none; box-shadow: none; }
.pick__opt.is-active { outline: none; background: #dcefe2; }
/* Nonprofit page header: initials badge beside the name, place line, icons; "Back to search" above (no cover) */
.np-hero { background: var(--white); border-bottom: 1px solid rgba(16, 22, 19, .12); }
.np-hero__in { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: center; padding-top: 28px; padding-bottom: 30px; }
.np-hero .np-back { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #357a4c; font-size: 15px; font-weight: 600; text-decoration: none; }
.np-hero .np-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.np-avatar { display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%; background: var(--dark); color: var(--white); font: 700 38px/1 var(--font-body); letter-spacing: .5px; }
.np-hero .np-head { display: block; margin: 0; padding: 0; max-width: none; border: 0; background: none; }
.np-hero .np-namerow { display: flex; align-items: center; gap: 12px; padding-right: 0; }
.np-hero .np-title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.2px; }
.np-hero .np-seal { position: static; flex: none; }
.np-hero .np-seal__btn svg { width: 30px; height: 30px; }
.np-place { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 16px; color: #4f5c56; }
.np-place__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.np-hero .np-actions { margin-top: 2px; }
.np-tabs { margin-top: 0; }
@media (max-width: 560px) {
  .np-hero__in { column-gap: 16px; padding-top: 18px; padding-bottom: 22px; }
  .np-avatar { width: 76px; height: 76px; font-size: 26px; }
  .np-hero .np-namerow { gap: 8px; }
  .np-hero .np-seal__btn svg { width: 26px; height: 26px; }
  .np-place { margin-top: 6px; }
}
/* Card footer: same space above the Website / Volunteer row (from the divider) as below it (to the card edge) */
.org:has(> .org__actions) { padding-bottom: 17px; }
.org > .org__actions { padding-top: 17px; }

/* ---- Samaky Foundation demo: filled DEMO label on the card (turns mint when the card fills green), bloom logo on its page ---- */
.demo2 { position: relative; }
.demo2 .demo__tag2 { position: absolute; top: 18px; right: 18px; z-index: 2; display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; line-height: 1.4; white-space: nowrap; transition: background 180ms ease, color 180ms ease; }
.demo2 .org__name { padding-right: 96px; }
.demo2:is(:hover, :focus-within) .demo__tag2 { background: var(--mint); color: var(--dark); }
.np-avatar--logo img { width: 100%; height: 100%; display: block; }

/* Demo shifts: Sign up + Share side by side; a shared link highlights its date */
.np-shift__acts { display: flex; align-items: center; gap: 8px; }
.np-shift__share { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--green-text); border-radius: 50%; transition: background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .np-shift__share:hover { background: rgba(53, 122, 76, 0.1); } }
.np-shift__toast { position: absolute; bottom: 48px; right: 0; padding: 4px 10px; background: var(--dark); color: var(--white); font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 160ms ease; }
.np-shift__share.is-toast .np-shift__toast { opacity: 1; }
.np-shift.is-shared { border-color: #357a4c; box-shadow: inset 0 0 0 1px #357a4c; }
@media (max-width: 640px) { .np-shift__acts { grid-column: 1 / -1; } .np-shift__acts .btn { flex: 1; } }

/* Nonprofit header: verified seal right after the name, on the same line as the last word */
.np-hero .np-namerow { display: block; }
.np-hero .np-tail { white-space: nowrap; }
.np-hero .np-seal { display: inline-block; vertical-align: middle; margin-left: 0.2em; position: relative; top: -0.06em; right: auto; white-space: normal; }
.np-hero .np-seal__btn { vertical-align: middle; }
.np-place__cause { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
@media (max-width: 560px) { .np-place { row-gap: 2px; } .np-place__sep { display: none; } .np-place__cause { flex-basis: 100%; } }
/* Directory hero: a slightly smaller search box, and the same space below it (after the mint shadow) as above the headline */
.dir-search { padding: 24px 24px 26px; }
.dir-search .search__field input { height: 56px; font-size: 18px; }
.dir-search .search__field button { font-size: 18px; }
.dir-search .dir-filters { margin-top: 16px; }
.dir-filters input, .dir-filters .pick__btn, .dir-filters select { height: 44px; min-height: 44px; }
.dir-hero { padding-bottom: 117px; }
@media (max-width: 800px) { .dir-hero { padding-bottom: 73px; } }
@media (max-width: 600px) {
  .dir-search { padding: 18px 16px 20px; }
  .dir-search .search__field input { height: 52px; font-size: 16px; }
}
