/* ==========================================================
   CodeStory: new about page (about-new.html only)
   Loads after home-new.css and online-new.css and is built from their parts: the online
   hero (.on-hero, .on-inc, .on-ins, .on-band), centred section heads (.on-head), the home
   dark band (.nh-sys) and glass icons (.nh-gicon), the review layout (.on-rev).
   Only what those do not cover lives here. Classes are prefixed ab-.
   Owner rules: no eyebrow labels, green CTAs, no drop shadows, H1 600, no em dashes.
   ========================================================== */

/* ---------- hero ---------- */
.ab-thin { font-weight: 500; }
.ab-pill svg { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ab-inc { grid-template-columns: repeat(3, auto); justify-content: start; }
.on-btn svg { flex: none; }

/* the founders' note sits in the dark instructor card of the online hero */
.ab-note-in { padding: 28px 28px 6px; }
.ab-note-t { font-family: var(--f-display); font-weight: 600; font-size: 15px; color: #F6A283; }
.ab-note blockquote { margin: 12px 0 0; font-family: var(--f-display); font-weight: 500; font-size: 21px; line-height: 1.5; letter-spacing: -.01em; color: #fff; }
.ab-note mark {
  color: #fff; padding: 0 2px; border-radius: 4px;
  background: linear-gradient(transparent 58%, rgba(207, 64, 32, .55) 58%) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ab-note-l { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ab-note-l li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: #C9CEDD; }
.ab-note-l li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(123, 216, 143, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237BD88F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- how we teach: the postman lesson ---------- */
.ab-lesson { margin-top: 40px; display: grid; gap: 16px; }
.ab-walk { border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.ab-street { position: relative; padding: 26px 28px 0; }
.ab-road { list-style: none; margin: 0; padding: 0 0 42px; display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 8px; position: relative; }
.ab-road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 12px; border-radius: 99px; background: repeating-linear-gradient(90deg, var(--line-2) 0 16px, transparent 16px 28px), var(--bg-alt); }
.ab-house { display: flex; flex-direction: column; align-items: center; transition: opacity .45s; }
.ab-house svg { width: 100%; max-width: 58px; height: auto; }
.ab-house .w { fill: #fff; stroke: var(--line-2); stroke-width: 2.5; stroke-linejoin: round; }
.ab-house .d { fill: var(--bg-alt); stroke: var(--line-2); stroke-width: 2.5; }
.ab-house .r { fill: none; stroke: var(--ink-2); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.ab-house b { margin-top: 6px; padding: 2px 7px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--ink); transition: background-color .3s, color .3s, border-color .3s; }
.ab-house.is-out { opacity: .25; }
.ab-house.is-mid .r { stroke: var(--accent); }
.ab-house.is-mid b { background: var(--ink); border-color: var(--ink); color: #fff; }
.ab-house.is-hit .r { stroke: var(--nh-green); }
.ab-house.is-hit b { background: var(--nh-green); border-color: var(--nh-green); color: #fff; }
.ab-postman {
  position: absolute; left: 28px; bottom: 6px; z-index: 1; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; border: 3px solid #fff;
  transform: translateX(var(--ab-x, 0px)); transition: transform .7s var(--ease-out);
}
.ab-postman svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ab-ctrl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 16px 28px 20px; border-top: 1px solid var(--line); background: #FCFCFE; }
.ab-parcels { display: flex; align-items: center; gap: 8px; }
.ab-parcels span { margin-right: 4px; font-size: 14px; color: var(--nh-muted); }
.ab-parcels button {
  padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer;
  font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--ink); transition: border-color .2s, background-color .2s, color .2s;
}
.ab-parcels button:hover { border-color: var(--ink); }
.ab-parcels button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ab-parcels button:focus-visible { outline: 2px solid var(--nh-green-ring); outline-offset: 2px; }
.ab-log { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ab-log b { font-family: var(--f-display); font-weight: 600; color: var(--ink); }
.ab-score { display: flex; gap: 10px; }
.ab-score p { margin: 0; min-width: 108px; padding: 9px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-align: center; }
.ab-score b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 25px; line-height: 1.1; color: var(--ink); }
.ab-score .is-win b { color: var(--nh-green); }
.ab-score span { font-size: 12.5px; color: var(--nh-muted); }

.ab-two { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; }
/* the code window is the home page's dark app window */
.ab-code { border-radius: 20px; overflow: hidden; background: #131829; border: 1px solid #262D45; }
.ab-code-bar, .ab-log2-bar { margin: 0; display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; background: #0F1322; border-bottom: 1px solid #262D45; font-family: var(--f-mono); font-size: 12.5px; color: #99A0BA; }
[data-ab-state] { color: #F6A283; }
.ab-code-b { list-style: none; margin: 0; padding: 12px 0 14px; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.75; color: #EEF0F7; }
.ab-code-b li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 0 18px 0 22px; white-space: pre; transition: background-color .3s; }
.ab-code-b li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transition: transform .3s var(--ease-out); }
.ab-code-b li.is-on { background: rgba(207, 64, 32, .16); }
.ab-code-b li.is-hit { background: rgba(25, 135, 84, .22); }
.ab-code-b li.is-on::before { transform: scaleY(1); }
.ab-code-b li.is-hit::before { transform: scaleY(1); background: #7BD88F; }
.ab-code-b code { font: inherit; }
.ab-code-b k { color: #F6A283; } .ab-code-b f { color: #8FB4FF; } .ab-code-b n { color: #E8C07A; }
.ab-code-b em { font-style: normal; color: #6F7897; white-space: nowrap; }
.ab-code-b li.is-on em, .ab-code-b li.is-hit em { color: #FFD9C9; }

.ab-mins { display: flex; flex-direction: column; padding: 22px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.ab-mins h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.ab-mins > p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); }
.ab-bar { margin-top: 18px; display: flex; gap: 3px; height: 18px; }
.ab-bar i { flex: var(--w) 1 0; min-width: 6px; border-radius: 6px; background: var(--c); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease-out) .3s; }
.ab-bar.is-in i { transform: scaleX(1); }
.ab-bar i:nth-child(2) { transition-delay: .45s; } .ab-bar i:nth-child(3) { transition-delay: .6s; } .ab-bar i:nth-child(4) { transition-delay: .75s; }
html:not(.nh-js) .ab-bar i { transform: none; }
.ab-legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.ab-legend li { display: grid; grid-template-columns: 12px auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.ab-legend li > i { width: 12px; height: 12px; border-radius: 4px; align-self: center; }
.ab-legend b { font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.ab-legend em { font-style: normal; font-family: var(--f-mono); font-size: 12.5px; color: var(--nh-muted); }
.ab-legend span { grid-column: 2 / 4; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }

/* ---------- beliefs: the home page's dark band, three cards ---------- */
.ab-rules-l { list-style: none; max-width: 1100px; margin: 44px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ab-rule { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: 20px; background: var(--sys-win); border: 1px solid var(--sys-line); }
.ab-rule .nh-gicon { width: 48px; height: 48px; margin-bottom: 8px; }
.ab-rule .nh-gicon-back, .ab-rule .nh-gicon-front { border-radius: 14px; }
.ab-rule .nh-gicon svg { width: 24px; height: 24px; }
.ab-rule:hover .nh-gicon-back { transform: rotate(24deg) translate(10px, -5px); }
.ab-rule h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.ab-rule s { position: relative; margin-right: 6px; text-decoration: none; color: #6E7594; }
.ab-rule s::after { content: ""; position: absolute; left: -3px; right: -3px; top: 55%; height: 3px; border-radius: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .7s var(--ease-out) .5s; }
.ab-rule.is-in s::after, html:not(.nh-js) .ab-rule s::after { transform: scaleX(1); }
.ab-rule p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--sys-soft); }
.ab-rule .ab-cost { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--sys-line); font-family: var(--f-mono); font-size: 12.5px; color: var(--sys-or); }

/* ---------- the people ---------- */
/* two founder cards, photo beside the text */
.ab-team { max-width: 1040px; margin: 44px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ab-pc { display: flex; flex-direction: row; border-radius: 22px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, transform .25s var(--ease-out); }
.ab-pc:hover { border-color: var(--line-2); transform: translateY(-3px); }
.ab-ph { flex: none; width: 200px; height: auto; min-height: 240px; border-radius: 0; border: 0; }
.ab-ph svg { width: 76px; height: 76px; }
.ab-ph b { background: #fff; color: var(--ink); }   /* the role tag reads on every card colour */
.ab-pc:nth-child(1) .ab-ph { background: linear-gradient(165deg, #E0603F, #9E2C16); }
.ab-pc-b { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 22px; }
.ab-pc h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 23px; letter-spacing: -.02em; color: var(--ink); }
.ab-role { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.ab-pc-b > p:not(.ab-role):not(.ab-you):not(.on-chips) { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.ab-pc .on-chips { margin: 2px 0 0; }
.ab-you { margin: auto 0 0; padding-top: 12px; display: flex; gap: 8px; align-items: flex-start; border-top: 1px dashed var(--line-2); font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.ab-you b { font-family: var(--f-display); font-weight: 600; }
.ab-you i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #E8F5EE; color: var(--nh-green); }
.ab-you svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.ab-crew { max-width: 1040px; margin: 16px auto 0; display: flex; align-items: center; gap: 22px; padding: 18px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.ab-faces { flex: none; display: flex; }
.ab-faces i {
  width: 52px; height: 52px; margin-left: -12px; border-radius: 50%; display: grid; place-items: center; border: 3px solid #fff;
  font-style: normal; font-family: var(--f-display); font-weight: 700; font-size: 15px; color: #fff;
}
.ab-faces i:first-child { margin-left: 0; }
.ab-faces .ab-open { position: relative; margin-left: 8px; background: #fff; color: var(--nh-green); border: 2px dashed var(--nh-green); font-size: 13px; }
.ab-faces .ab-open::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--nh-green-ring); opacity: 0; animation: ab-ping 2.4s var(--ease-out) infinite; }
@keyframes ab-ping { from { transform: scale(.85); opacity: .55; } to { transform: scale(1.25); opacity: 0; } }
.ab-crew p { margin: 0; flex: 1; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ab-crew p b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 16.5px; color: var(--ink); }

/* ---------- where we are ---------- */
.ab-prog .on-rev { align-items: center; }
.ab-prog-lede { margin-left: 0; }
.ab-why { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
.ab-log2 { border-radius: 20px; overflow: hidden; background: #131829; border: 1px solid #262D45; }
.ab-log2-b { padding: 16px 20px 22px; font-family: var(--f-mono); font-size: 14.5px; line-height: 1.5; color: #EEF0F7; }
.ab-cmd { margin: 0; color: #99A0BA; } .ab-cmd b { font-weight: 500; color: #7BD88F; }
.ab-log2 ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 11px; }
.ab-log2 li { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; }
.ab-log2 small { display: block; font-size: 12.5px; color: #7A829E; }
.ab-k { font-weight: 500; } .ab-k-ok { color: #7BD88F; } .ab-k-now { color: #F6A283; } .ab-k-next { color: #8FB4FF; }
.ab-k-now::after { content: ""; display: inline-block; width: 8px; height: 15px; margin-left: 6px; vertical-align: -2px; background: #F6A283; animation: ab-blink 1s steps(2) infinite; }
@keyframes ab-blink { 50% { opacity: 0; } }
.nh-js .ab-log2 li { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease-out); }
.nh-js .ab-log2.is-in li { opacity: 1; transform: none; }
.ab-log2 li:nth-child(2) { transition-delay: .15s; } .ab-log2 li:nth-child(3) { transition-delay: .3s; } .ab-log2 li:nth-child(4) { transition-delay: .45s; }
.ab-log2 li:nth-child(5) { transition-delay: .6s; } .ab-log2 li:nth-child(6) { transition-delay: .75s; }

@media (max-width: 1100px) {
  .ab-two { grid-template-columns: minmax(0, 1fr); }
  .ab-ctrl { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ab-rules-l { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .ab-team { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
}
@media (max-width: 720px) {
  .ab-inc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-note blockquote { font-size: 18px; }
  .ab-street { padding: 18px 12px 0; }
  .ab-road { gap: 3px; }
  .ab-house b { padding: 1px 2px; font-size: 9.5px; }
  .ab-postman { left: 12px; width: 28px; height: 28px; margin-left: -14px; }
  .ab-ctrl { padding: 14px 14px 16px; }
  .ab-code-b { font-size: 11.5px; } .ab-code-b em { display: none; }
  .ab-team { margin-top: 28px; }
  .ab-pc { flex-direction: column; }
  .ab-ph { width: 100%; min-height: 0; height: 130px; }
  .ab-crew { flex-direction: column; align-items: flex-start; }
  .ab-log2 li { grid-template-columns: 70px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ab-postman, .ab-house, .ab-bar i, .ab-rule s::after, .nh-js .ab-log2 li { transition: none; }
  .ab-faces .ab-open::after, .ab-k-now::after { animation: none; }
}
