/**
 * Nitya Digital Hub — About page styles
 * Reuses the existing brand tokens from css/style.css
 * (--navy-900, --navy-700, --navy-500, --green-600, --green-500,
 *  --white, --mist, --line, --font-display, --font-body).
 * Semantic aliases only — no new colors introduced.
 */

:root {
  --nity-primary: var(--navy-700);         /* #16324F */
  --nity-primary-dark: var(--navy-900);    /* #0F2136 */
  --nity-primary-light: var(--navy-500);   /* #2C5578 */
  --nity-accent: var(--green-600);         /* #5AA02C */
  --nity-accent-light: var(--green-500);   /* #7BC24A */
  --nity-background: var(--white);         /* #FFFFFF */
  --nity-surface: var(--mist);             /* #F3F7F3 */
  --nity-text: var(--navy-900);            /* #0F2136 */
  --nity-muted: rgba(15, 33, 54, 0.62);
  --nity-border: var(--line);              /* #E2E8E4 */
}

.ab-page { background: var(--nity-background); }
.ab-page section { padding: 6.5rem 0; }
.ab-page section + section { border-top: 1px solid var(--nity-border); }

.ab-container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.ab-container--narrow { max-width: 760px; }

.ab-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--nity-accent);
  margin: 0 0 1.1rem;
}

.ab-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.14;
  color: var(--nity-primary-dark);
  max-width: 17ch;
  margin: 0 0 1.4rem;
}

.ab-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.22;
  color: var(--nity-primary-dark);
  max-width: 22ch;
  margin: 0 0 1rem;
}

.ab-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--nity-primary-dark);
  margin: 0 0 0.5rem;
}

.ab-lede { font-size: 1.08rem; line-height: 1.65; color: var(--nity-primary); max-width: 60ch; margin: 0 0 1.6rem; }
.ab-body { font-size: 1rem; line-height: 1.7; color: var(--nity-primary); max-width: 62ch; }
.ab-muted { color: var(--nity-muted); }

.ab-cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.ab-page .btn-primary { background: var(--nity-accent); color: var(--white); }
.ab-page .btn-primary:hover { background: #4C8A24; }
.ab-page .btn-ghost { border-color: var(--nity-primary); color: var(--nity-primary); }
.ab-page .btn-ghost:hover { background: var(--nity-primary); color: var(--white); }

/* ---------- Hero: connected system diagram ---------- */
.ab-hero { padding-top: 5rem; }
.ab-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

.ab-system {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.ab-system__node {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--nity-primary-dark);
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--nity-border);
  border-radius: 6px;
  background: var(--nity-surface);
  text-align: center;
}

.ab-system__node--wide {
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.ab-system__node--accent { border-color: var(--nity-accent); color: var(--nity-accent); background: var(--nity-background); }

.ab-system__connector {
  width: 1px;
  height: 1.5rem;
  background: var(--nity-border);
  margin: 0 auto;
  position: relative;
}

.ab-system__connector::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--nity-primary-light);
  border-bottom: 1px solid var(--nity-primary-light);
  transform: rotate(45deg);
}

.ab-system__loop {
  text-align: center;
  font-size: 0.82rem;
  color: var(--nity-muted);
  margin-top: 0.6rem;
}

/* ---------- Why Nitya: points list + shift visual ---------- */
.ab-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }

.ab-points { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.ab-points li {
  padding: 0.8rem 0 0.8rem 1.4rem;
  border-bottom: 1px solid var(--nity-border);
  position: relative;
  font-size: 0.98rem;
  color: var(--nity-primary);
}
.ab-points li::before {
  content: '';
  position: absolute; left: 0; top: 1.15rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--nity-accent);
}

.ab-shift {
  border: 1px solid var(--nity-border);
  border-radius: 6px;
  padding: 1.75rem;
  background: var(--nity-surface);
  text-align: center;
}

.ab-shift__row { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--nity-primary); }
.ab-shift__arrow { color: var(--nity-primary-light); font-size: 1.2rem; margin: 0.75rem 0; }
.ab-shift__row--result { color: var(--nity-accent); }

/* ---------- What We Do: capability ecosystem ---------- */
.ab-ecosystem {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--nity-border);
  border: 1px solid var(--nity-border);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 2.5rem;
}

.ab-ecosystem__cell {
  background: var(--nity-background);
  padding: 1.6rem 1.4rem;
}

.ab-ecosystem__cell h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--nity-primary-dark);
  margin: 0 0 0.5rem;
}

.ab-ecosystem__cell p { font-size: 0.9rem; color: var(--nity-muted); margin: 0; line-height: 1.55; }

/* ---------- Different by Design: comparison ---------- */
.ab-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.5rem; }
.ab-compare__col { border: 1px solid var(--nity-border); border-radius: 6px; padding: 1.75rem; }
.ab-compare__col--connected { border-color: var(--nity-accent); background: var(--nity-surface); }
.ab-compare__head {
  font-family: var(--font-display); font-weight: 600; font-size: 0.86rem;
  color: var(--nity-muted); margin: 0 0 1.2rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--nity-border);
}
.ab-compare__col--connected .ab-compare__head { color: var(--nity-accent); }
.ab-compare__steps { display: flex; flex-direction: column; }
.ab-compare__step { padding: 0.65rem 0; font-size: 0.96rem; color: var(--nity-primary); border-bottom: 1px dashed var(--nity-border); }
.ab-compare__step:last-child { border-bottom: none; }

/* ---------- Tech + Human split ---------- */
.ab-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; }
.ab-split__col { border: 1px solid var(--nity-border); border-radius: 6px; padding: 1.9rem; }
.ab-split__col--human { border-color: var(--nity-primary); }
.ab-split__eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; color: var(--nity-muted); margin: 0 0 1.2rem; }
.ab-split__col--human .ab-split__eyebrow { color: var(--nity-primary); }
.ab-split__col--ai .ab-split__eyebrow { color: var(--nity-accent); }
.ab-split ul li { padding: 0.65rem 0; border-bottom: 1px solid var(--nity-border); font-size: 0.98rem; color: var(--nity-primary); }
.ab-split ul li:last-child { border-bottom: none; }
.ab-split__message {
  text-align: center; font-family: var(--font-display); font-weight: 600;
  font-size: 1.2rem; color: var(--nity-primary-dark); margin: 3rem auto 0; max-width: 40ch; line-height: 1.55;
}

/* ---------- Growth system loop (dark, strong visual) ---------- */
.ab-loop-section { background: var(--nity-primary-dark); color: var(--white); }
.ab-loop-section .ab-h2 { color: var(--white); }
.ab-loop-section .ab-lede { color: rgba(255,255,255,0.78); }

.ab-loop-ring {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 2.5rem;
}

.ab-loop-ring__cell { background: var(--nity-primary-dark); padding: 1.7rem 1.3rem; }
.ab-loop-ring__num { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--nity-accent-light); margin-bottom: 0.5rem; }
.ab-loop-ring__label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--white); }
.ab-loop-ring__final {
  grid-column: 1 / -1; text-align: center; background: rgba(122,194,74,0.12);
  color: var(--nity-accent-light); font-family: var(--font-display); font-weight: 600; padding: 1.05rem;
}

/* ---------- Principles: elegant, not card-heavy ---------- */
.ab-principles { margin-top: 2.5rem; }
.ab-principle-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
}
.ab-principle-row + .ab-principle-row { border-top: 1px solid var(--nity-border); }
.ab-principle-row__num { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--nity-accent); }
.ab-principle-row__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--nity-primary-dark); margin: 0 0 0.4rem; }
.ab-principle-row__desc { font-size: 0.98rem; color: var(--nity-primary); line-height: 1.6; margin: 0; }

/* ---------- Client experience: status flow ---------- */
.ab-status-flow { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 1.5rem; }
.ab-status-flow__pill {
  padding: 0.6rem 1.2rem; border: 1px solid var(--nity-border); border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.86rem;
  color: var(--nity-primary); background: var(--nity-surface);
}
.ab-status-flow__pill--done { border-color: var(--nity-accent); color: var(--nity-accent); background: var(--nity-background); }
.ab-status-flow__arrow { align-self: center; color: var(--nity-border); font-size: 1.05rem; }

.ab-examples { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.ab-examples span { font-size: 0.9rem; color: var(--nity-muted); position: relative; padding-left: 1rem; }
.ab-examples span::before {
  content: ''; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; border-radius: 50%; background: var(--nity-primary-light);
}

/* ---------- Who We Work With ---------- */
.ab-industries {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem;
}
.ab-industries__tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--nity-primary);
  border: 1px solid var(--nity-border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
}

/* ---------- Final CTA ---------- */
.ab-final-cta .ab-container { max-width: 760px; }

/* ---------- Reveal (fade in on load, no scroll dependency; no JS required) ---------- */
.ab-fade { opacity: 0; transform: translateY(10px); animation: abFadeIn 0.6s ease forwards; }
.ab-fade--delay-1 { animation-delay: 0.08s; }
.ab-fade--delay-2 { animation-delay: 0.16s; }

@keyframes abFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ab-fade { opacity: 1; transform: none; animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ab-hero__grid,
  .ab-section-grid,
  .ab-split,
  .ab-compare { grid-template-columns: 1fr; gap: 2.5rem; }

  .ab-ecosystem { grid-template-columns: repeat(2, 1fr); }
  .ab-loop-ring { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ab-page section { padding: 4rem 0; }
  .ab-ecosystem { grid-template-columns: 1fr; }
  .ab-loop-ring { grid-template-columns: 1fr; }
  .ab-principle-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .ab-status-flow { flex-direction: column; align-items: flex-start; }
  .ab-status-flow__arrow { display: none; }
}
