/* ============================================================
   Moony — Chapters page (new white system)
   Reuses tokens + shared classes from styles-moony(.css / -sections.css)
   ============================================================ */

.rv-kick { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.pill .ring-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.6px solid var(--violet); }
.pay-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 560; color: var(--ink-2); margin-bottom: clamp(26px, calc(4 * var(--vu)), 44px); }
.pay-back:hover { color: var(--violet); }
.pay-back-ic { transform: rotate(180deg); }

/* ---------------- HERO ---------------- */
.ch-hero { position: relative; padding: clamp(92px, calc(9 * var(--vu)), 132px) 0 0; overflow: clip;
  background: radial-gradient(125% 100% at 22% -10%, #32204f 0%, #221541 34%, #180f2d 66%, var(--ink-panel) 100%);
  color: var(--on-dark); }
.ch-hero-wash { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 74% 22%, rgba(216,197,253,.26) 0%, rgba(247,206,164,.1) 46%, transparent 74%); }
.ch-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.05)); }
.ch-hero-inner { position: relative; z-index: 3; }
.ch-hero .pay-back { color: rgba(255,255,255,.6); }
.ch-hero .pay-back:hover { color: #fff; }
.ch-hero .pill { color: rgba(255,255,255,.92); border-color: var(--line-d2); background: rgba(255,255,255,.05); backdrop-filter: blur(8px); }
.ch-hero .ring-dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.22); }
.ch-hero-head { max-width: 800px; }
.ch-hero-h { font-size: clamp(40px, calc(5.6 * var(--vu)), 72px); line-height: 1.0; letter-spacing: -.035em; font-weight: 700; margin-top: 22px; color: #fff; }
.ch-hero-h em { font-style: normal; }
.ch-hero-sub { color: rgba(255,255,255,.78); font-size: clamp(16.5px, calc(1.6 * var(--vu)), 20px); line-height: 1.55; margin-top: 24px; max-width: 46ch; font-weight: 420; }
.ch-hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* map as cinematic backdrop bleeding off the right edge */
.ch-hero-map { position: absolute; z-index: 1; top: -6%; right: -14%; width: 88%; min-width: 1100px; pointer-events: none;
  -webkit-mask-image: radial-gradient(76% 74% at 52% 48%, #000 56%, transparent 92%);
  mask-image: radial-gradient(76% 74% at 52% 48%, #000 56%, transparent 92%); }
.ch-map-img { display: block; width: 100%; opacity: .46; filter: none; }
.ch-hero-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, #1e1338 0%, rgba(30,19,56,.9) 26%, rgba(30,19,56,.5) 44%, transparent 64%); }
.ch-pin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; }
.ch-pin-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: #e5d8ff;
  box-shadow: 0 0 12px 2px rgba(216,197,253,.6); position: relative; }
.ch-pin-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #d8c5fd; opacity: .5; animation: chPulse 2.6s ease-out infinite; }
@keyframes chPulse { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(2.2); opacity: 0; } }
.ch-pin-label { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--ink); background: #fff;
  padding: 4px 9px; border-radius: 7px; box-shadow: var(--sh-soft); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.ch-pin:hover .ch-pin-label { opacity: 1; }

/* bottom rail: active chapters */
.ch-hero-rail { margin-top: clamp(38px, calc(4 * var(--vu)), 58px); padding: 22px 0 26px; border-top: 1px solid var(--line-d); }
.ch-rail-lede { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ch-rail-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #d8c5fd; }
.ch-rail-sub { font-size: 13px; color: rgba(255,255,255,.5); }
/* flag stack rail */
.ch-stack-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ch-stack { display: flex; align-items: center; }
.ch-stackf { position: relative; width: 40px; height: 40px; margin-left: -11px; padding: 0; border: 2px solid #1e1338; border-radius: 50%;
  background: #1e1338; cursor: pointer; transition: transform .22s cubic-bezier(.16,.8,.24,1), margin .22s ease; }
.ch-stackf:first-child { margin-left: 0; }
.ch-stackf .flag-img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.ch-stackf:hover { transform: translateY(-5px) scale(1.1); z-index: 40 !important; border-color: #d8c5fd; transition-delay: 0s; }
.ch-hero-rail .ch-stackf { opacity: 0; transform: scale(.4); transition: opacity .45s ease, transform .5s cubic-bezier(.16,.8,.24,1), margin .22s ease, border-color .22s ease; transition-delay: calc(var(--i, 0) * 55ms + 120ms); }
.ch-hero-rail.in .ch-stackf { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ch-hero-rail .ch-stackf { opacity: 1; transform: none; transition: none; } }
.ch-stackf-lab { position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
  white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--ink); background: #fff;
  padding: 4px 9px; border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.ch-stackf:hover .ch-stackf-lab { opacity: 1; }
.ch-stack-link { color: #fff; border-bottom-color: var(--line-d2); }
button.ch-stack-link { background: none; border: 0; border-bottom: 1px solid var(--line-d2); padding: 0 0 2px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 540; letter-spacing: inherit; display: inline-flex; align-items: center; gap: 7px; }
.ch-stack-link:hover { border-bottom-color: #fff; }
@media (max-width: 640px) { .ch-stackf { width: 34px; height: 34px; margin-left: -9px; } }

.ch-chips { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.ch-chip { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-d); color: rgba(255,255,255,.92); font: inherit; font-size: 13.5px; font-weight: 540;
  white-space: nowrap; cursor: pointer; box-shadow: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.ch-chip--more { padding: 7px 15px; background: transparent; border-style: dashed; border-color: var(--line-d2); color: rgba(255,255,255,.7); }
.ch-chip--more:hover { background: rgba(255,255,255,.06); color: #fff; }
.ch-chip:hover { transform: translateY(-2px); background: rgba(216,197,253,.16); border-color: var(--line-d2); color: #fff; }
.ch-cflag { position: relative; width: 24px; height: 24px; flex: none; }
.ch-cflag .flag-img { width: 24px; height: 24px; border-radius: 50%; }
.ch-cflag-dot { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; border: 2px solid #1e1338; }
.ch-cplus { font-size: 17px; font-weight: 500; line-height: 1; }
@media (max-width: 900px) { .ch-hero-map { top: auto; bottom: 14%; right: -40%; width: 150%; min-width: 0; opacity: .7; } .ch-hero-head { max-width: 100%; } }
@media (max-width: 640px) { .ch-pin-dot { width: 7px; height: 7px; } }

/* dark hero → nav inverts until it sticks */
.ch-page .nav:not(.stuck):not(.open) .nav-brand img { filter: brightness(0) invert(1); }
.ch-page .nav:not(.stuck):not(.open) .nav-links a { color: rgba(255,255,255,.72); }
.ch-page .nav:not(.stuck):not(.open) .nav-links a:hover { color: #fff; }
.ch-page .nav:not(.stuck):not(.open) .nav-x { color: #fff; border-color: var(--line-d2); }
.ch-page .nav:not(.stuck):not(.open) .nav-x:hover { color: #fff; border-color: #fff; }
.ch-page .nav:not(.stuck):not(.open) .nav-burger { color: #fff; }
.ch-page .nav:not(.stuck):not(.open) .btn--primary { background: #fff; color: var(--ink); }

/* ---------------- ETHOS principle cards ---------------- */
/* blend tinted sections like the homepage — no flat paper cutoffs */
/* one continuous wash for the whole page: sections stay transparent, no seams possible */
.ch-page main { background: linear-gradient(180deg, #ece2fa 0%, #fbf9fe 16%, #f2eafb 32%, #fbf9ff 48%, #efe7fb 64%, #fbf9ff 80%, #f3ecfc 92%, #faf7ff 100%); }
.ch-princ { background: var(--w); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px 32px;
  box-shadow: var(--sh-soft); position: relative; overflow: hidden; transition: transform .3s cubic-bezier(.16,.8,.24,1), box-shadow .3s ease, border-color .3s ease; }
.ch-princ::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--cac); }
.ch-princ:hover { transform: translateY(-6px); box-shadow: var(--sh-lift); border-color: transparent; }
.ch-princ--violet { --cac: #7c4dde; --cacbg: rgba(124,77,222,.11); }
.ch-princ--green { --cac: #2f9e63; --cacbg: rgba(47,158,99,.12); }
.ch-princ--blue { --cac: #3f74d6; --cacbg: rgba(63,116,214,.12); }
.ch-princ-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.ch-princ-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--cacbg); color: var(--cac); }
.ch-princ-n { font-size: 13px; color: var(--ink-3); }
.ch-princ h3 { font-size: 20px; letter-spacing: -0.03em; }
.ch-princ p { color: var(--ink-2); font-size: 14.6px; line-height: 1.56; margin-top: 11px; }

/* ---------------- WHAT CHAPTERS DO ---------------- */
.ch-do { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(28px, calc(4 * var(--vu)), 56px); align-items: center; margin-top: clamp(30px, calc(3.4 * var(--vu)), 46px); }
.ch-do-media { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--sh-card); background: var(--paper); }
.ch-do-cap { position: absolute; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(20,11,41,.58); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 500; color: #fff; }
.ch-do-body h2 { font-size: clamp(28px, calc(3.4 * var(--vu)), 42px); letter-spacing: -0.035em; margin-top: 12px; }
.ch-do-lede { color: var(--ink-2); font-size: clamp(16px, calc(1.4 * var(--vu)), 18px); line-height: 1.5; margin-top: 16px; max-width: 52ch; }
.ch-do-list { display: grid; gap: 4px; margin-top: clamp(22px, calc(2.6 * var(--vu)), 30px); }
.ch-do-row { display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: start; padding: 15px 0; border-top: 1px solid var(--line); }
.ch-do-row:first-child { border-top: none; }
.ch-do-ic { width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--violet-tint); color: var(--violet); flex: none; }
.ch-do-ic svg { display: block; }
.ch-do-row b { display: block; font-size: 16.5px; letter-spacing: -0.02em; color: var(--ink); }
.ch-do-row > div > span { display: block; color: var(--ink-2); font-size: 14px; line-height: 1.5; margin-top: 3px; }
@media (max-width: 820px) { .ch-do { grid-template-columns: 1fr; } .ch-do-media { aspect-ratio: 16 / 10; } }

/* ---------------- SPOTLIGHT ---------------- */
.ng-cine { margin-top: clamp(40px, calc(5 * var(--vu)), 60px); border-radius: var(--r-l); overflow: hidden; background: var(--w); border: 1px solid var(--line); box-shadow: var(--sh-card); }
.ng-cine-img { position: relative; aspect-ratio: 21 / 9; background: var(--paper); }
.ng-cine-scrim { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 15px;
  padding: 60px clamp(24px, calc(3 * var(--vu)), 40px) clamp(22px, calc(2.6 * var(--vu)), 32px); background: linear-gradient(180deg, transparent, rgba(16,8,32,.82)); }
.ng-mark { position: relative; width: 52px; height: 52px; flex: none; }
.ng-mark > img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.ng-flag { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid #fff; overflow: hidden; }
.ng-flag .flag-img { width: 100%; height: 100%; }
.ng-id { display: flex; flex-direction: column; gap: 4px; }
.ng-name { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(19px, calc(2.2 * var(--vu)), 25px); font-weight: 640; letter-spacing: -0.03em; color: #fff; }
.ng-loc { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: rgba(255,255,255,.78); }
.ch-tag-active { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; text-transform: none; color: #fff; background: rgba(74,222,128,.22); border: 1px solid rgba(74,222,128,.4); border-radius: 999px; padding: 4px 10px; }
.ch-tag-active .d { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.ng-body { padding: clamp(28px, calc(3 * var(--vu)), 40px) clamp(24px, calc(3 * var(--vu)), 40px); }
.ng-lede { color: var(--ink); font-size: clamp(16px, calc(1.5 * var(--vu)), 19px); line-height: 1.5; max-width: 68ch; }
.ng-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ng-tags span { font-size: 12.5px; font-weight: 520; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
.ng-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.ng-actions { display: flex; flex-wrap: wrap; gap: 11px; }

/* more forming */
.ch-more { margin-top: clamp(40px, calc(5 * var(--vu)), 60px); }
.ch-more-kick { display: block; margin-bottom: 18px; }
.ch-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ch-togo { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(26px, calc(3 * var(--vu)), 34px); border-radius: var(--r-l); background: var(--w); border: 1px solid var(--line); box-shadow: var(--sh-soft); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.ch-togo:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); border-color: transparent; }
.ch-togo-mast { display: flex; align-items: center; gap: 14px; }
.ch-togo-id b { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 640; letter-spacing: -0.02em; color: var(--ink); }
.ch-togo-id span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 3px; }
.ch-tag-new { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--violet); background: var(--violet-tint); border-radius: 999px; padding: 4px 10px; }
.ch-togo > p { color: var(--ink-2); font-size: 14.5px; line-height: 1.56; margin-top: 18px; }
.ch-togo-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14.5px; font-weight: 600; color: var(--violet); }
.ch-forming { padding: clamp(26px, calc(3 * var(--vu)), 34px); border-radius: var(--r-l); background: linear-gradient(150deg, #f2ebfe 0%, #f7f1fb 50%, #fdf3ea 100%); border: 1px solid rgba(124,77,222,.12); }
.ch-forming-eye { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ch-forming-flags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.ch-fflag { width: 34px; height: 34px; }
.ch-fflag .flag-img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 2px 8px rgba(44,22,87,.14); }
.ch-forming > p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.ch-forming-cta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 20px; }
.ch-forming-cta a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--violet); }
@media (max-width: 820px) { .ch-more-grid { grid-template-columns: 1fr; } }

/* ---------------- BACKED ---------------- */
.ch-backed-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .ch-backed-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ch-backed-grid { grid-template-columns: 1fr; } }
.ch-backed-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px;
  margin-top: 26px; padding: 24px 28px; border-radius: var(--r); background: var(--w); border: 1px solid var(--line); box-shadow: var(--sh-soft); }
.ch-backed-foot p { color: var(--ink-2); font-size: 15.5px; }
.ch-backed-foot strong { color: var(--ink); font-weight: 600; }

/* ---------------- START ---------------- */
.ch-start-sec { padding-top: 0; }
.ch-start { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.2fr .8fr;
  gap: clamp(30px, calc(4 * var(--vu)), 56px); align-items: center; padding: clamp(38px, calc(4.5 * var(--vu)), 62px);
  border-radius: var(--r-l); background: radial-gradient(120% 130% at 12% 10%, #3a2568 0%, #291a4b 42%, #1a1136 100%); color: #fff; box-shadow: var(--sh-card); }
.ch-start-mark { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 340px; opacity: .12; z-index: -1; filter: brightness(0) invert(1); }
.ch-start-copy h2 { color: #fff; font-size: clamp(28px, calc(3.4 * var(--vu)), 44px); letter-spacing: -0.04em; margin-top: 14px; }
.ch-start-em { color: #d8c5fd; }
.ch-start-copy > p { color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.6; margin-top: 16px; max-width: 52ch; }
.ch-start-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.ch-start-link { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; color: #d8c5fd; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.ch-start-link:hover { color: #fff; }
.ch-start-link svg { transition: transform .2s ease; }
.ch-start-link:hover svg { transform: translateX(3px); }
.ch-start-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ch-start-soon { grid-column: 1 / -1; justify-self: start; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(216,197,253,.9); border: 1px solid rgba(216,197,253,.32); border-radius: 999px; padding: 5px 11px; }
.ch-start-tile { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 14px; font-weight: 600; color: #fff; }
.ch-start-tile-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.ch-start-tile--violet .ch-start-tile-ic { background: rgba(216,197,253,.2); color: #d8c5fd; }
.ch-start-tile--green .ch-start-tile-ic { background: rgba(134,220,171,.18); color: #86dcab; }
.ch-start-tile--peach .ch-start-tile-ic { background: rgba(244,180,143,.18); color: #f4b48f; }
.ch-start-tile--blue .ch-start-tile-ic { background: rgba(169,198,255,.18); color: #a9c6ff; }
@media (max-width: 820px) { .ch-start { grid-template-columns: 1fr; } }

/* ---------------- MODALS ---------------- */
.ch-overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px;
  background: rgba(16,8,32,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: chFade .25s ease; }
@keyframes chFade { from { opacity: 0; } to { opacity: 1; } }
.ch-modal { position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: var(--w);
  border-radius: var(--r-l); box-shadow: var(--sh-panel); padding: clamp(30px, calc(4 * var(--vu)), 44px); animation: chUp .35s cubic-bezier(.16,.8,.24,1); }
@keyframes chUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.ch-modal-x { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; transition: all .18s ease; }
.ch-modal-x:hover { color: var(--ink); border-color: var(--ink); }
.ch-form h2, .ch-done h2 { font-size: clamp(24px, calc(3 * var(--vu)), 32px); letter-spacing: -0.03em; margin-top: 12px; }
.ch-form > p, .ch-done > p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin-top: 12px; }
.ch-form { display: flex; flex-direction: column; }
.ch-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 18px; }
.ch-opt { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.ch-form input, .ch-form textarea { font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); resize: vertical; transition: border-color .18s ease; }
.ch-form input:focus, .ch-form textarea:focus { outline: none; border-color: var(--violet); }
.ch-form input::placeholder, .ch-form textarea::placeholder { color: var(--ink-3); }
.ch-form .btn { margin-top: 24px; }
.ch-check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(22,163,74,.12); color: #16a34a; }
.ch-steps { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ch-steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.ch-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-tint); color: var(--violet); font-family: var(--mono); font-size: 13px; font-weight: 600; }
.ch-steps b { display: block; font-size: 15px; color: var(--ink); }
.ch-steps li > div span { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; margin-top: 3px; }
.ch-done-actions, .cm-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.ch-done-actions { flex-wrap: nowrap; }
.ch-done-actions .btn { flex: 1; justify-content: center; white-space: nowrap; padding-left: 12px; padding-right: 12px; }
.ch-modal--chapter .cm-head { display: flex; align-items: center; gap: 16px; padding-right: 40px; }
.cm-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-name-row h2 { font-size: clamp(22px, calc(2.6 * var(--vu)), 28px); margin-top: 0; }
.cm-loc { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.cm-blurb { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin-top: 22px; }

/* ── forming band (replaces Togo card + forming grid) ── */
.ch-formband { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr) auto; gap: clamp(20px, calc(3 * var(--vu)), 48px); align-items: center; margin-top: clamp(28px, calc(3.4 * var(--vu)), 44px); padding: clamp(20px, calc(2.6 * var(--vu)), 30px) clamp(22px, calc(2.8 * var(--vu)), 36px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper-2, #faf8fd); }
.ch-formband-tx p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-top: 8px; max-width: 46ch; text-wrap: pretty; }
.ch-formband-tx b { color: var(--ink); font-weight: 600; }
.ch-formband-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-formband-flags .ch-fflag { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); display: block; }
.ch-formband-flags a.ch-fflag { transition: transform .16s ease; }
.ch-formband-flags a.ch-fflag:hover { transform: translateY(-2px); }
.ch-formband-flags .ch-fflag img, .ch-formband-flags .ch-fflag svg { width: 100%; height: 100%; object-fit: cover; display: block; }
button.ch-formband-cta { background: none; border: 0; border-bottom: 1px solid var(--line-2); padding: 0 0 2px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 540; color: var(--ink); white-space: nowrap; }
button.ch-formband-cta:hover { border-bottom-color: var(--ink); }
/* ── grow ledger: Togo + forming, directly under the Nigeria card ── */
.ch-grow { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--w); box-shadow: var(--sh-soft); overflow: hidden; }
.ch-grow-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px 20px; align-items: center; padding: clamp(18px, 2vw, 24px) clamp(20px, 2.4vw, 30px); transition: background .18s ease; }
a.ch-grow-row:hover { background: rgba(124,77,222,.04); }
.ch-grow-row + .ch-grow-row { border-top: 1px solid var(--line); }
.ng-mark--sm { width: 44px; height: 44px; }
.ng-mark--sm > img { width: 44px; height: 44px; border-radius: 12px; }
.ng-mark--sm .ng-flag { width: 20px; height: 20px; border-width: 2px; }
.ch-grow-tx b { display: block; font-size: 16px; letter-spacing: -0.02em; color: var(--ink); }
.ch-grow-tx > span:last-child { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: 3px; max-width: 62ch; text-wrap: pretty; }
.ch-grow-cta { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--violet); white-space: nowrap; }
.ch-grow-cta svg { transition: transform .2s ease; }
.ch-grow-row:hover .ch-grow-cta svg { transform: translateX(3px); }
button.ch-grow-cta--btn { background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.ch-grow-flags { display: flex; }
.ch-grow-flags .ch-fflag { position: relative; display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(44,22,87,.18); margin-left: -9px; transition: transform .16s ease; }
.ch-grow-flags .ch-fflag:first-child { margin-left: 0; }
.ch-grow-flags .ch-fflag:hover { transform: translateY(-3px); z-index: 5; }
.ch-grow-flags .ch-fflag .flag-img { width: 100%; height: 100%; display: block; border-radius: 50%; }
@media (max-width: 900px) { .ch-grow-row { grid-template-columns: auto minmax(0,1fr); } .ch-grow-cta { grid-column: 2; justify-self: start; } .ch-grow .ch-grow-row--rest { grid-template-columns: minmax(0,1fr); } .ch-grow .ch-grow-row--rest > * { grid-column: 1; } }
@media (max-width: 700px) {
  .ch-grow { margin-top: 12px; border-radius: 18px; }
  .ch-grow .ch-grow-row--rest { padding: 20px 18px; gap: 14px; }
  /* flags stop being a decorative overlap stack — real 44px touch targets */
  .ch-grow-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .ch-grow-flags .ch-fflag { width: calc((100% - 48px) / 7); height: auto; aspect-ratio: 1 / 1; min-height: 44px; margin-left: 0; border-width: 2px; }
  .ch-grow-flags .ch-fflag:first-child { margin-left: 0; }
  .ch-grow-tx b { font-size: 15.5px; }
  .ch-grow-tx > span:last-child { font-size: 13px; margin-top: 5px; }
  .ch-grow-cta { justify-self: stretch; justify-content: center; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: rgba(124,77,222,.05); }
}
/* ── creed folded into 02 ── */
.ch-creedband { margin-top: clamp(64px, calc(7 * var(--vu)), 104px); }
.ch-creedband .ch-creed-h { font-family: var(--font-head); font-size: clamp(30px, calc(4 * var(--vu)), 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; color: var(--ink); text-align: center; }
.ch-creedband .ch-creed-h em { font-style: normal; background: var(--grad-vivid); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ch-formband--in { margin-top: clamp(40px, calc(5 * var(--vu)), 64px); }
@media (max-width: 860px) { .ch-formband { grid-template-columns: 1fr; gap: 16px; } }

/* ── 01 anatomy strip ── */
.ch-anatomy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(22px, calc(2.6 * var(--vu)), 32px); padding-top: clamp(18px, calc(2.2 * var(--vu)), 26px); border-top: 1px solid var(--line); }
.ch-anatomy-i { display: flex; flex-direction: column; gap: 4px; }
.ch-anatomy-i .num { font-size: clamp(24px, calc(2.4 * var(--vu)), 30px); font-weight: 600; letter-spacing: -0.03em; color: var(--violet); line-height: 1; }
.ch-anatomy-i span:last-child { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
/* ── creed statement band ── */
.ch-creed { position: relative; overflow: hidden; padding: clamp(72px, calc(8.5 * var(--vu)), 128px) 0; background: linear-gradient(180deg, #f3edfc 0%, #f0e9fb 42%, #f6f1fd 100%); }

.ch-creed::before { content: none; display: none; --x: radial-gradient(48% 54% at 50% 50%, rgba(216,197,253,.32), rgba(255,255,255,0) 68%); }
.ch-creed > .wrap { position: relative; z-index: 1; }
.ch-creed-h { font-family: var(--font-head); font-size: clamp(30px, calc(4 * var(--vu)), 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; color: var(--ink); text-align: center; }
.ch-creed-h em { font-style: normal; background: var(--grad-vivid); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ch-creed-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, calc(3 * var(--vu)), 48px); max-width: 980px; margin: clamp(40px, calc(5 * var(--vu)), 64px) auto 0; }
.ch-creed-i { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(80,39,148,.16); }
.ch-creed-i .num { font-size: 13px; color: var(--violet); font-weight: 560; }
.ch-creed-i b { font-size: 16.5px; font-weight: 620; letter-spacing: -0.015em; color: var(--ink); }
.ch-creed-i p { font-size: 14px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
/* ── 03 launch ── */
.ch-launch { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(24px, calc(3.2 * var(--vu)), 52px); align-items: stretch; margin-top: clamp(30px, calc(3.6 * var(--vu)), 48px); }
.ch-launch-steps { list-style: none; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(20px, calc(2.6 * var(--vu)), 32px); padding: clamp(6px, calc(1 * var(--vu)), 14px) 0; }
.ch-launch-steps li { display: flex; gap: 18px; align-items: flex-start; }
.ch-launch-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c-violet-bg); color: var(--violet); font-size: 16px; font-weight: 620; }
.ch-launch-steps b { display: block; font-size: 17px; font-weight: 620; letter-spacing: -0.015em; color: var(--ink); }
.ch-launch-steps li > div > p { font-size: 14.5px; line-height: 1.58; color: var(--ink-2); margin-top: 5px; max-width: 46ch; text-wrap: pretty; }
.ch-launch-foot { border-top: 1px solid var(--line); padding-top: clamp(16px, calc(2 * var(--vu)), 22px); }
.ch-launch-foot p { font-size: 15px; color: var(--ink-2); }
.ch-launch-foot strong { color: var(--ink); }
.ch-start--side { margin-top: 0; height: 100%; box-sizing: border-box; grid-template-columns: 1fr; align-items: start; align-content: space-between; gap: clamp(26px, calc(3 * var(--vu)), 40px); padding: clamp(30px, calc(3.4 * var(--vu)), 44px); }
.ch-start--side .ch-start-copy h2 { font-size: clamp(26px, calc(2.8 * var(--vu)), 36px); }
.ch-start--side .ch-start-mark { right: -60px; top: 24%; width: 260px; }
@media (max-width: 900px) { .ch-launch { grid-template-columns: 1fr; } .ch-creed-row { grid-template-columns: 1fr; gap: 22px; } .ch-anatomy { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ch-anatomy { grid-template-columns: 1fr; gap: 14px; } }

/* ── mobile-first layer ── */
@media (max-width: 640px) { .ch-more-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .ch-hero { padding-top: 84px; }
  .ch-hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .ch-hero-acts { width: 100%; flex-direction: column; }
  .ch-hero-acts .btn { width: 100%; justify-content: center; }
  .ch-anatomy { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ch-anatomy-i .num { font-size: 22px; }
  .ch-creed-h { font-size: clamp(26px, 8vw, 34px); }
  .ch-creed-row { grid-template-columns: 1fr; }
  .ch-do-media { aspect-ratio: 4 / 3; }
  .ng-cine-img { aspect-ratio: 16 / 10; }
  .ng-cine-scrim { padding-left: 18px; padding-right: 18px; }
  .ng-body { padding: 22px 18px 26px; }
  .ch-launch-steps li { gap: 14px; }
  .ch-launch-n { width: 34px; height: 34px; font-size: 14px; }
  .ch-start--side { padding: 24px 20px; }
  .ch-start--side .ch-start-copy h2 { font-size: 24px; }
  .ch-start-btns .btn { width: 100%; }
  .ch-formband { padding: 18px; }
  .ch-creed-row { gap: 18px; }
  /* hero rail: chapter chips scroll */
  .ch-hero-rail { margin-top: 30px; padding: 16px 0 20px; }
  /* flags become a tappable grid; the CTA sits below instead of scrolling off-screen */
  .ch-stack-row { display: flex; flex-direction: column; align-items: stretch; gap: 16px; overflow: visible; margin: 0; padding: 2px 0 0; }
  .ch-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .ch-stackf { width: calc((100% - 48px) / 7); height: auto; aspect-ratio: 1 / 1; min-height: 44px; margin-left: 0; }
  .ch-stackf .ch-stackf-lab { display: none; }
  .ch-stack-link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }
  /* what-chapters-do rows: tighter */
  .ch-do-row { gap: 12px; }
  .ch-do-row b { font-size: 15px; }
  /* launch steps compact */
  .ch-launch-steps { gap: 16px; }
  .ch-launch-steps li > div span { font-size: 13.5px; }
  /* anatomy stats: keep 3-up but small */
  .ch-anatomy { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; }
  .ch-anatomy-i .num { font-size: 20px; }
  .ch-anatomy-i span:last-child { font-size: 11.5px; }
}

/* composited-clip fix — clip the media child, not the shadowed wrapper */
.ch-lead-media > image-slot, .ch-do-media > image-slot, .ch-photo > image-slot, .ch-media > image-slot,
.ng-cine-img > image-slot { clip-path: inset(0 round var(--r-l) var(--r-l) 0 0); border-radius: var(--r-l) var(--r-l) 0 0; }

/* ── mobile type composition + rhythm ── */
@media (max-width: 700px) {
  .ch-hero-h { font-size: clamp(33px, 9.4vw, 38px); line-height: 1.06; letter-spacing: -.04em; }
  .ch-hero-sub { font-size: 15.5px; line-height: 1.55; margin-top: 16px; max-width: 34ch; text-wrap: pretty; }
  .ch-hero { padding-top: 74px; }
  .sec { padding: 60px 0; }
  .shead h2 { font-size: clamp(26px, 7.8vw, 29px); line-height: 1.1; letter-spacing: -.04em; text-wrap: pretty; }
  .shead p { font-size: 14.8px; line-height: 1.6; margin-top: 12px; max-width: 42ch; text-wrap: pretty; }
  .ch-start-copy h2 { font-size: 23px; line-height: 1.14; }
}


.ng-cine-scrim { border-radius: 0; }


/* ── community photo gallery (01) ── */
.ch-gallery { margin-top: clamp(34px, calc(4 * var(--vu)), 56px); }
.ch-gallery-strip { display: flex; gap: 14px; overflow-x: auto; margin-top: 16px; padding: 2px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ch-gallery-strip::-webkit-scrollbar { height: 6px; }
.ch-gallery-strip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.ch-gal-item { position: relative; flex: none; margin: 0; width: min(64vw, 250px); height: clamp(240px, calc(30 * var(--vu)), 340px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--paper); scroll-snap-align: start; }
.ch-gal-item--wide { width: min(84vw, 460px); }
.ch-gal-cap { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(10,6,12,.55); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; pointer-events: none; }

@media (max-width: 380px) { .ch-done-actions { flex-wrap: wrap; } }
