/* =========================================================
   About — Learning Rewired Lab
   Authored editorial / manifesto page.
   Loaded after /global.css. Everything is scoped with .ab-
   so it never collides with the shared header/footer or
   the marketing landing classes.
   ========================================================= */

.ab {
  --ab-ink: #07111f;
  --ab-ink-2: #0d2138;
  --ab-teal: #14b8a6;
  --ab-teal-d: #0f766e;
  --ab-mint: #6ee7d8;
  --ab-gold: #e0a93f;
  --ab-gold-d: #9a6a04;
  --ab-paper: #f3f6f6;
  --ab-paper-2: #fbfdfd;
  --ab-card: #ffffff;
  --ab-line: #e3e9ea;
  --ab-slate: #5a6b78;
  --ab-ink-soft: rgba(226, 242, 247, 0.72);
  --ab-ink-faint: rgba(226, 242, 247, 0.5);

  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #0f172a;
  background: var(--ab-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ab *, .ab *::before, .ab *::after { box-sizing: border-box; }
.ab ::selection { background: rgba(20, 184, 166, 0.22); }

/* ---- shared rhythm ------------------------------------- */
.ab-shell { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.ab-measure { max-width: 720px; }

.ab-section { position: relative; padding: clamp(72px, 9vw, 132px) 0; }
.ab-section--paper { background: var(--ab-paper); }
.ab-section--paper-alt { background: #eef3f3; }
.ab-section--warm {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(224, 169, 63, 0.07), transparent 55%),
    #f5f3ee;
}
.ab-section--ink {
  background:
    radial-gradient(75% 120% at 100% 0%, rgba(20, 184, 166, 0.14), transparent 55%),
    radial-gradient(60% 90% at 0% 100%, rgba(37, 99, 235, 0.08), transparent 60%),
    linear-gradient(165deg, var(--ab-ink) 0%, var(--ab-ink-2) 100%);
  color: #fff;
}
.ab-section--ink + .ab-section--ink { border-top: 1px solid rgba(110, 231, 216, 0.1); }

/* eyebrow / kicker */
.ab-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ab-teal-d); margin: 0 0 20px;
}
.ab-section--ink .ab-kicker, .ab-hero .ab-kicker { color: var(--ab-mint); }
.ab-kicker::before {
  content: ""; width: 22px; height: 1.5px; border-radius: 2px;
  background: currentColor; opacity: 0.55;
}
.ab-kicker--center { justify-content: center; }

/* section index numeral */
.ab-chapter {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 12px; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ab-slate); margin: 0 0 22px;
}
.ab-chapter b { color: var(--ab-teal-d); font-weight: 900; }
.ab-section--ink .ab-chapter { color: var(--ab-ink-faint); }
.ab-section--ink .ab-chapter b { color: var(--ab-mint); }

/* headings */
.ab-h2 {
  font-size: clamp(28px, 4.1vw, 47px); font-weight: 900; line-height: 1.05;
  letter-spacing: -0.035em; color: var(--ab-ink); margin: 0;
  text-wrap: balance;
}
.ab-section--ink .ab-h2 { color: #fff; }
.ab-h2 .ab-em { color: var(--ab-teal-d); }
.ab-section--ink .ab-h2 .ab-em { color: var(--ab-mint); }

.ab-h3 {
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 850; line-height: 1.15;
  letter-spacing: -0.025em; color: var(--ab-ink); margin: 0;
}
.ab-section--ink .ab-h3 { color: #fff; }

.ab-lede {
  font-size: clamp(17px, 1.7vw, 20px); line-height: 1.62; font-weight: 500;
  color: #38505f; margin: 22px 0 0; text-wrap: pretty;
}
.ab-section--ink .ab-lede { color: var(--ab-ink-soft); }

.ab-p {
  font-size: clamp(15.5px, 1.25vw, 17px); line-height: 1.72; font-weight: 450;
  color: #46586a; margin: 18px 0 0; text-wrap: pretty;
}
.ab-section--ink .ab-p { color: var(--ab-ink-soft); }
.ab-p strong, .ab-lede strong { font-weight: 750; color: var(--ab-ink); }
.ab-section--ink .ab-p strong, .ab-section--ink .ab-lede strong { color: #fff; }

/* =========================================================
   HERO
   ========================================================= */
.ab-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(104px, 15vh, 184px) 0 clamp(72px, 10vw, 120px);
  background:
    radial-gradient(60% 80% at 82% 8%, rgba(20, 184, 166, 0.2), transparent 58%),
    radial-gradient(70% 90% at 0% 100%, rgba(37, 99, 235, 0.12), transparent 60%),
    linear-gradient(168deg, #07111f 0%, #0a1a2e 56%, #0d2138 100%);
}
.ab-hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(110, 231, 216, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 216, 0.06) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(80% 70% at 75% 20%, #000 0%, transparent 75%);
          mask-image: radial-gradient(80% 70% at 75% 20%, #000 0%, transparent 75%);
}
.ab-hero__orbit {
  position: absolute; top: 50%; right: -160px; transform: translateY(-50%);
  width: 560px; height: 560px; pointer-events: none; opacity: 0.85;
}
.ab-hero__orbit span {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid rgba(110, 231, 216, 0.16);
}
.ab-hero__orbit span:nth-child(1) { width: 100%; height: 100%; }
.ab-hero__orbit span:nth-child(2) { width: 70%; height: 70%; }
.ab-hero__orbit span:nth-child(3) { width: 42%; height: 42%; border-color: rgba(110, 231, 216, 0.26); }
.ab-hero__node {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ab-mint); box-shadow: 0 0 0 5px rgba(110, 231, 216, 0.14);
}
.ab-hero__node--a { top: 6%; left: 50%; }
.ab-hero__node--b { top: 50%; left: 1%; width: 8px; height: 8px; background: var(--ab-teal); }
.ab-hero__node--c { bottom: 12%; right: 14%; width: 9px; height: 9px; background: #7fb0ff; box-shadow: 0 0 0 5px rgba(127, 176, 255, 0.14); }

.ab-hero__inner { position: relative; max-width: 880px; }
.ab-hero__h1 {
  font-size: clamp(38px, 6.4vw, 78px); font-weight: 900; line-height: 1.0;
  letter-spacing: -0.045em; margin: 0; text-wrap: balance;
}
.ab-hero__h1 .ab-em { color: var(--ab-mint); }
.ab-hero__lede {
  font-size: clamp(17px, 1.85vw, 21px); line-height: 1.6; font-weight: 500;
  color: var(--ab-ink-soft); margin: 26px 0 0; max-width: 660px; text-wrap: pretty;
}
.ab-hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.ab-hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px; font-weight: 650; color: var(--ab-ink-faint);
}
.ab-hero__meta i { font-style: normal; opacity: 0.4; }

/* buttons */
.ab-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 14.5px; letter-spacing: -0.01em;
  border-radius: 12px; padding: 14px 22px; text-decoration: none; transition: all 0.18s ease;
  border: 1px solid transparent;
}
.ab-btn__arrow { transition: transform 0.18s ease; }
.ab-btn:hover .ab-btn__arrow { transform: translateX(3px); }
.ab-btn--primary { color: #07111f; background: var(--ab-mint); box-shadow: 0 14px 30px rgba(110, 231, 216, 0.24); }
.ab-btn--primary:hover { background: #fff; transform: translateY(-1px); }
.ab-btn--teal { color: #fff; background: var(--ab-teal); box-shadow: 0 14px 30px rgba(20, 184, 166, 0.26); }
.ab-btn--teal:hover { background: #0f9e8e; transform: translateY(-1px); }
.ab-btn--ghost { color: #fff; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.ab-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(110, 231, 216, 0.4); }
.ab-btn--ghost-d { color: var(--ab-ink); background: #fff; border-color: var(--ab-line); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05); }
.ab-btn--ghost-d:hover { border-color: var(--ab-teal); color: var(--ab-teal-d); }

.ab a:focus-visible, .ab button:focus-visible {
  outline: 2.5px solid var(--ab-teal); outline-offset: 3px; border-radius: 12px;
}
.ab-section--ink a:focus-visible { outline-color: var(--ab-mint); }

/* =========================================================
   S1 — THE PROBLEM (narrative + symptom ledger)
   ========================================================= */
.ab-split { display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(36px, 5vw, 76px); align-items: start; }
.ab-split__aside { position: sticky; top: 96px; }

.ab-ledger { display: grid; gap: 12px; }
.ab-ledger__item {
  display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: start;
  padding: 18px 20px; border-radius: 15px; background: var(--ab-card);
  border: 1px solid var(--ab-line); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.ab-ledger__mark {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 15px; color: var(--ab-gold-d); background: rgba(224, 169, 63, 0.12);
  border: 1px solid rgba(224, 169, 63, 0.26);
}
.ab-ledger__tx strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.015em; color: var(--ab-ink); }
.ab-ledger__tx span { display: block; font-size: 13.5px; line-height: 1.55; color: var(--ab-slate); font-weight: 500; margin-top: 3px; }

.ab-pull {
  margin: 30px 0 0; padding: 22px 26px; border-left: 3px solid var(--ab-teal);
  background: rgba(20, 184, 166, 0.05); border-radius: 0 14px 14px 0;
  font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; font-weight: 650;
  letter-spacing: -0.02em; color: var(--ab-ink); text-wrap: pretty;
}

/* =========================================================
   S2 — THE THESIS (statement + practice facets + contrast)
   ========================================================= */
.ab-thesis-line {
  font-size: clamp(30px, 4.6vw, 56px); font-weight: 900; line-height: 1.04;
  letter-spacing: -0.04em; color: #fff; margin: 24px 0 0; max-width: 940px; text-wrap: balance;
}
.ab-thesis-line .ab-em { color: var(--ab-mint); }

.ab-facets {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 52px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(110, 231, 216, 0.16); background: rgba(110, 231, 216, 0.12);
}
.ab-facet { background: rgba(13, 33, 56, 0.86); padding: 22px 20px; }
.ab-facet__n { font-size: 12px; font-weight: 850; color: var(--ab-mint); letter-spacing: 0.04em; }
.ab-facet__t { font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin: 12px 0 5px; }
.ab-facet__d { font-size: 12.5px; line-height: 1.5; color: var(--ab-ink-faint); font-weight: 500; margin: 0; }

/* contrast: old default / better question */
.ab-contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.ab-contrast__card { border-radius: 20px; padding: 30px 32px; }
.ab-contrast__card--old {
  background: #fff; border: 1px solid var(--ab-line);
}
.ab-contrast__card--new {
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(20, 184, 166, 0.12), transparent 60%),
    linear-gradient(165deg, #07111f, #0d2138);
  border: 1px solid rgba(110, 231, 216, 0.2); box-shadow: 0 24px 56px rgba(7, 17, 31, 0.18);
}
.ab-contrast__tag {
  font-size: 11px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase;
}
.ab-contrast__card--old .ab-contrast__tag { color: #94a3b8; }
.ab-contrast__card--new .ab-contrast__tag { color: var(--ab-mint); }
.ab-contrast__q {
  font-size: clamp(19px, 2.1vw, 24px); font-weight: 850; line-height: 1.28; letter-spacing: -0.025em;
  margin: 14px 0 0; text-wrap: pretty;
}
.ab-contrast__card--old .ab-contrast__q { color: #64748b; }
.ab-contrast__card--new .ab-contrast__q { color: #fff; }
.ab-contrast__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.ab-contrast__list li {
  position: relative; padding-left: 26px; font-size: 14px; line-height: 1.5; font-weight: 500;
}
.ab-contrast__card--old .ab-contrast__list li { color: #8a98a6; }
.ab-contrast__card--new .ab-contrast__list li { color: var(--ab-ink-soft); }
.ab-contrast__list li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 9px; height: 9px; border-radius: 3px;
}
.ab-contrast__card--old .ab-contrast__list li::before { background: #cbd5e1; }
.ab-contrast__card--new .ab-contrast__list li::before { background: var(--ab-teal); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16); }

/* =========================================================
   S3 — WHY THIS SITE IS A LAB
   ========================================================= */
.ab-lab-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
.ab-verbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ab-verb {
  padding: 18px 18px; border-radius: 14px; background: var(--ab-card);
  border: 1px solid var(--ab-line); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.16s, transform 0.16s;
}
.ab-verb:hover { border-color: rgba(20, 184, 166, 0.38); transform: translateY(-2px); }
.ab-verb__ic {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 16px; color: var(--ab-teal-d); background: rgba(20, 184, 166, 0.1); margin-bottom: 11px;
}
.ab-verb__t { font-size: 14.5px; font-weight: 800; letter-spacing: -0.015em; color: var(--ab-ink); }
.ab-verb__d { font-size: 12.5px; line-height: 1.5; color: var(--ab-slate); font-weight: 500; margin: 4px 0 0; }

/* =========================================================
   S4 — HOW THE PIECES FIT (operating system / signal flow)
   ========================================================= */
.ab-os__head { max-width: 720px; }
.ab-os {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.ab-os__node {
  position: relative; display: block; text-decoration: none;
  padding: 24px 24px 22px; border-radius: 18px;
  background: rgba(13, 33, 56, 0.7); border: 1px solid rgba(110, 231, 216, 0.16);
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
.ab-os__node:hover { border-color: rgba(110, 231, 216, 0.45); background: rgba(13, 33, 56, 0.95); transform: translateY(-3px); }
.ab-os__layer { font-size: 10.5px; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ab-mint); }
.ab-os__name {
  display: flex; align-items: center; gap: 9px;
  font-size: 20px; font-weight: 850; letter-spacing: -0.025em; color: #fff; margin: 12px 0 0;
}
.ab-os__name .ab-os__go { font-size: 16px; color: var(--ab-mint); transition: transform 0.18s; }
.ab-os__node:hover .ab-os__go { transform: translateX(4px); }
.ab-os__role { font-size: 13px; font-weight: 700; color: var(--ab-mint); margin: 14px 0 0; }
.ab-os__desc { font-size: 13px; line-height: 1.55; color: var(--ab-ink-faint); font-weight: 500; margin: 6px 0 0; }
.ab-os__spine {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 30px; padding: 18px 24px; border-radius: 14px;
  background: rgba(110, 231, 216, 0.07); border: 1px solid rgba(110, 231, 216, 0.16);
  font-size: 13.5px; font-weight: 600; color: var(--ab-ink-soft); line-height: 1.5;
}
.ab-os__spine b { color: #fff; font-weight: 800; }

/* =========================================================
   S5 — COMMUNITY LAYER
   ========================================================= */
.ab-comm { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.ab-comm__promise {
  font-size: clamp(22px, 2.7vw, 32px); font-weight: 850; line-height: 1.22; letter-spacing: -0.03em;
  color: var(--ab-ink); margin: 22px 0 0; text-wrap: balance;
}
.ab-comm__promise .ab-em { color: var(--ab-teal-d); }
.ab-alone { display: grid; gap: 12px; }
.ab-alone__row {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: 14px; background: var(--ab-card);
  border: 1px solid var(--ab-line);
}
.ab-alone__av {
  flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 850; font-size: 14px; color: #fff;
}
.ab-alone__tx strong { display: block; font-size: 14px; font-weight: 800; color: var(--ab-ink); letter-spacing: -0.015em; }
.ab-alone__tx span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ab-slate); font-weight: 500; margin-top: 2px; }

/* =========================================================
   S6 — FOUNDER FIELD NOTE
   ========================================================= */
.ab-note {
  position: relative; max-width: 820px; margin: 0 auto;
  border-radius: 22px; padding: clamp(34px, 5vw, 56px);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(20, 184, 166, 0.14), transparent 55%),
    linear-gradient(165deg, #07111f, #0d2138);
  border: 1px solid rgba(110, 231, 216, 0.18); box-shadow: 0 30px 70px rgba(7, 17, 31, 0.2);
  color: #fff;
}
.ab-note__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ab-mint);
}
.ab-note__p {
  font-size: clamp(17px, 1.9vw, 22px); line-height: 1.6; font-weight: 500;
  color: rgba(238, 247, 247, 0.92); margin: 22px 0 0; letter-spacing: -0.015em; text-wrap: pretty;
}
.ab-note__p + .ab-note__p { margin-top: 18px; }
.ab-note__p strong { font-weight: 800; color: #fff; }
.ab-note__sign {
  display: flex; align-items: center; gap: 14px; margin-top: 32px;
  padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ab-note__av {
  flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 900; font-size: 17px; color: #fff;
  background: linear-gradient(140deg, var(--ab-teal-d), var(--ab-teal));
  box-shadow: 0 10px 22px rgba(20, 184, 166, 0.3);
}
.ab-note__who strong { display: block; font-size: 15px; font-weight: 850; color: #fff; letter-spacing: -0.015em; }
.ab-note__who span { display: block; font-size: 13px; color: var(--ab-ink-faint); font-weight: 600; margin-top: 2px; }

/* =========================================================
   S7 — OPERATING PRINCIPLES
   ========================================================= */
.ab-principles { margin-top: clamp(34px, 4vw, 52px); display: grid; gap: 0; }
.ab-principle {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: baseline;
  padding: 24px 0; border-top: 1px solid var(--ab-line);
}
.ab-principle:last-child { border-bottom: 1px solid var(--ab-line); }
.ab-principle__n {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; letter-spacing: -0.04em;
  color: var(--ab-teal-d); line-height: 1;
}
.ab-principle__t {
  font-size: clamp(18px, 2vw, 23px); font-weight: 850; letter-spacing: -0.025em; color: var(--ab-ink); margin: 0;
}
.ab-principle__d { font-size: 14.5px; line-height: 1.55; color: var(--ab-slate); font-weight: 500; margin: 7px 0 0; max-width: 640px; }

/* =========================================================
   CLOSING MANIFESTO
   ========================================================= */
.ab-close { text-align: center; }
.ab-close__h {
  font-size: clamp(30px, 5vw, 58px); font-weight: 900; line-height: 1.06; letter-spacing: -0.04em;
  color: #fff; margin: 22px auto 0; max-width: 900px; text-wrap: balance;
}
.ab-close__h .ab-em { color: var(--ab-mint); }
.ab-close__lede {
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; font-weight: 500; color: var(--ab-ink-soft);
  margin: 26px auto 0; max-width: 620px; text-wrap: pretty;
}
.ab-close__actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 38px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .ab-split, .ab-lab-grid, .ab-comm { grid-template-columns: 1fr; }
  .ab-split__aside { position: static; }
  .ab-facets { grid-template-columns: 1fr 1fr; }
  .ab-os { grid-template-columns: 1fr 1fr; }
  .ab-hero__orbit { opacity: 0.4; right: -240px; }
}
@media (max-width: 680px) {
  .ab-shell { padding: 0 20px; }
  .ab-facets { grid-template-columns: 1fr; }
  .ab-os { grid-template-columns: 1fr; }
  .ab-contrast { grid-template-columns: 1fr; }
  .ab-verbs { grid-template-columns: 1fr; }
  .ab-hero__orbit { display: none; }
  .ab-principle { grid-template-columns: 44px 1fr; gap: 16px; }
  .ab-hero__actions .ab-btn, .ab-close__actions .ab-btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .ab-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1); }
  .ab-reveal.is-in { opacity: 1; transform: none; }
}
