/* ============================================================
   Changing Nepal — about page
   Depends on cn.css for tokens and shared primitives.
   ============================================================ */

/* ============================================================
   Hero

   Deliberately not the home hero. No video, no full viewport and
   no contact bar — this one is typographic: the company's own
   Nepali slogan set large, its translation beneath, and the
   figures inline along the bottom rule.
   ============================================================ */
.cn-ahero {
  position: relative;
  overflow: hidden;
  /* --gx/--gy are written by cn.js as the pointer moves; the defaults
     are where the light sits before it is touched, and on any device
     without a fine pointer. */
  /* A fixed wash. It used to track the cursor, which on a page that is
     mostly reading was movement for its own sake. */
  background:
    radial-gradient(65% 95% at 88% 0%, rgba(0,163,224,0.14) 0%, rgba(0,163,224,0) 62%),
    radial-gradient(70% 100% at 0% 100%, rgba(62,177,73,0.09) 0%, rgba(62,177,73,0) 60%),
    var(--cn-bg);
  color: var(--cn-fg);
  border-bottom: 1px solid var(--cn-line);
  padding-top: calc(var(--cn-head-h) + clamp(3rem, 8vw, 7rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* A single hairline running down from the top edge, so the hero
   reads as the start of a document rather than a banner. */
.cn-ahero::before {
  content: '';
  position: absolute;
  top: 0; left: var(--cn-gutter);
  width: 1px; height: calc(var(--cn-head-h) + clamp(1.5rem, 4vw, 3.5rem));
  background: linear-gradient(to bottom, var(--cn-brand), transparent);
}

.cn-ahero__kicker { margin-bottom: clamp(1.25rem, 3vw, 2rem); }

.cn-ahero__slogan {
  font-family: var(--cn-display);
  font-size: clamp(2rem, 5.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
/* Devanagari carries ascenders the Latin metrics do not allow for,
   so the slogan gets its own leading. */
.cn-ahero__slogan:lang(ne) { line-height: 1.3; }

.cn-ahero__trans {
  /* Same proportion as the other page heads — see cn-page.css. */
  margin-top: clamp(1.25rem, 2.2vw, 2.25rem);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  color: var(--cn-fg-muted);
  max-width: 46ch;
}

/* Figures along the closing rule of the hero. */
.cn-ahero__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  border-top: 1px solid var(--cn-line);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}
@media (min-width: 56rem) { .cn-ahero__facts { grid-template-columns: repeat(4, 1fr); } }
.cn-ahero__facts > * { min-width: 0; }
.cn-ahero__fk {
  font-family: var(--cn-data); font-size: var(--cn-t-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cn-fg-muted);
  margin-bottom: 0.4rem;
}
.cn-ahero__fv {
  font-family: var(--cn-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.03em;
}
.cn-ahero__fv small { font-size: 0.45em; color: var(--cn-brand-deep); margin-left: 0.1em; }


/* ============================================================
   Why we exist

   Three bands rather than a two-column split. The old layout put a
   sticky aside beside a vertical list, which collided with the
   closing line and left the copy in one long unreadable run.
   ============================================================ */
.cn-why__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.cn-why__statement {
  font-family: var(--cn-display);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 0.85rem;
}

/* ---------- the three points ----------
   On the dark ground so the band carries weight in the page, with a
   drawn mark and an oversized numeral doing the work the copy cannot:
   the source paragraphs have no headings, so the eye needs something
   other than grey text to land on. */
.cn-why__points {
  display: grid;
  gap: 1px;
  background: var(--cn-ink-line);
  border: 1px solid var(--cn-ink-line);
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .cn-why__points { grid-template-columns: repeat(3, 1fr); } }
.cn-why__points > * { min-width: 0; }

.cn-point {
  position: relative;
  overflow: hidden;
  background: var(--cn-ink-bg);
  padding: clamp(1.75rem, 3.2vw, 2.75rem) clamp(1.35rem, 2.6vw, 2.25rem);
  display: grid;
  gap: 1.15rem;
  align-content: start;
  transition: background var(--cn-dur) var(--cn-ease);
}
.cn-point:hover { background: var(--cn-ink-soft); }

/* The numeral sits behind everything, oversized and low contrast. */
.cn-point__n {
  position: absolute;
  top: -0.15em; right: 0.1em;
  font-family: var(--cn-display);
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.05);
  pointer-events: none;
  transition: color var(--cn-dur) var(--cn-ease);
}
.cn-point:hover .cn-point__n { color: rgba(0,163,224,0.14); }

.cn-point__mark {
  position: relative;
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  border: 1px solid var(--cn-ink-line);
  color: var(--cn-on-ink);
  transition: background var(--cn-dur) var(--cn-ease),
              border-color var(--cn-dur) var(--cn-ease),
              color var(--cn-dur) var(--cn-ease);
}
.cn-point__mark .cn-ico { width: 1.6rem; height: 1.6rem; stroke-width: 1.6; }
.cn-point:hover .cn-point__mark {
  background: var(--cn-brand); border-color: var(--cn-brand); color: var(--cn-on-brand);
}

.cn-point__t {
  position: relative;
  font-family: var(--cn-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--cn-on-ink);
}
.cn-point__p {
  position: relative;
  font-size: var(--cn-t-sm);
  line-height: 1.7;
  color: var(--cn-on-ink-dim);
}

/* ============================================================
   Founder and the closing line
   ============================================================ */
.cn-close {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 56rem) {
  .cn-close { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); }
}
.cn-close > * { min-width: 0; }

/* Capped while stacked — at full column width the portrait ran to
   nearly a thousand pixels tall on a tablet. */
.cn-close__figure { margin: 0; position: relative; max-width: 18rem; }
@media (min-width: 56rem) { .cn-close__figure { max-width: none; } }
.cn-close__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  background: var(--cn-bg);
}
/* A brand edge down the leading side of the portrait. */
.cn-close__figure::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 -1px;
  width: 3px;
  background: var(--cn-brand);
}

.cn-close__signoff {
  display: grid;
  gap: 0.4rem;
  font-family: var(--cn-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 24ch;
}
.cn-close__signoff .is-last { color: var(--cn-brand-deep); }

.cn-close__who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  border-top: 1px solid var(--cn-line);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1rem;
}
.cn-close__role {
  font-family: var(--cn-data); font-size: var(--cn-t-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cn-fg-muted);
}
.cn-close__name {
  font-family: var(--cn-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
}
.cn-close__msg { font-size: var(--cn-t-sm); color: var(--cn-fg-muted); margin-top: 0.75rem; max-width: 46ch; }

.cn-close__row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.5rem, 3vw, 2rem); }

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

/* ---------- rotating sector line ---------- */
.cn-ahero__rotor {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  font-family: var(--cn-data);
  font-size: var(--cn-t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cn-fg-muted);
}
.cn-ahero__rotor-w {
  font-family: var(--cn-display);
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--cn-brand-deep);
  transition: opacity 240ms var(--cn-ease), transform 240ms var(--cn-ease);
}
/* The outgoing word lifts away; the incoming one arrives in place. */
.cn-ahero__rotor-w.is-out { opacity: 0; transform: translateY(-0.35em); }
@media (prefers-reduced-motion: reduce) {
  .cn-ahero__rotor-w { transition: none; }
}
