/* =============================================================
   pages/armstrong-education.css
   Armstrong Educational Services — brand-to-code case study
   All new component classes beyond project-detail.css.
   Accents: portfolio purple only (same tokens as every other
   case study). Armstrong's own forest/orange brand appears only
   inside the embedded real photos, logo and flyer scans — never
   as a new CSS color decision on this page.
   ============================================================= */

/* ── Hero (bento layout) — same recipe as delta-for-business ── */
.ae-hero {
  position: relative;
  width: 100%;
  background:
    radial-gradient(ellipse at 82% 0%, rgba(143, 0, 216, 0.16), transparent 55%),
    linear-gradient(180deg, #0A0E20 0%, #080C1D 100%);
}

.ae-hero__grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(72px, 11vh, 130px) clamp(24px, 7vw, 160px);
}

.ae-hero__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 640px;
}

.ae-hero__bento {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  grid-template-rows: 1fr;
  gap: 14px;
  height: clamp(360px, 50vh, 500px);
}
.ae-bento {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--purple-card-border);
}
.ae-bento img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-bento--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #fff;
}
.ae-bento--logo img { width: 100%; height: auto; max-width: 92%; object-fit: contain; }
.ae-bento--portrait img { object-fit: cover; }

.ae-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-weight: var(--mono-fw-lte20);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--purple-900);
}

.ae-hero__title {
  font-family: var(--font-headings);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  color: var(--white);
  line-height: 1.15;
  margin: 0;
  max-width: 24ch;
}

.ae-hero__sub {
  font-family: var(--font-text);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: var(--fw-body);
  color: var(--gray-900);
  line-height: 1.58;
  margin: 0;
  max-width: 68ch;
}

.ae-hero__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  margin-top: 2px;
}

.ae-hero__role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-chip);
  border: 1px solid var(--purple-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: var(--mono-fw-lte20);
  letter-spacing: 0.06em;
  color: var(--off-white);
}

.ae-hero__role--lead {
  background: var(--purple-500);
  border-color: var(--purple-500);
  color: var(--white);
  font-weight: 500;
}
.ae-hero__role--lead i { font-size: 14px; }

.ae-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 4px;
}

.ae-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ae-hero__meta-label {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-weight: var(--mono-fw-lte20);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-900);
}

.ae-hero__meta-value {
  font-family: var(--font-text);
  font-size: var(--fs-14);
  color: var(--white);
}

.ae-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ── TL;DR summary strip (same recipe as delta-tldr) ─────────── */
.ae-tldr {
  background: rgba(170, 172, 241, 0.04);
  border: 1px solid var(--purple-card-border);
  border-radius: 14px;
  padding: 32px 36px;
  margin-bottom: 48px;
}
.ae-tldr__list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ae-tldr__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-family: var(--font-text);
  font-size: var(--fs-15);
  line-height: 1.6;
  color: var(--gray-900);
}
.ae-tldr__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(143, 0, 216, 0.12);
  color: var(--purple-900);
  font-size: 18px;
  margin-top: 1px;
}
.ae-tldr__item strong { color: var(--white); font-weight: 500; }

/* ── Quote block (same recipe as delta-quote) ────────────────── */
.ae-quote {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: rgba(143, 0, 216, 0.04);
  border-left: 3px solid var(--purple-500);
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}
.ae-quote__mark {
  font-family: var(--font-headings);
  font-size: 28px;
  color: var(--purple-500);
  line-height: 1;
  flex-shrink: 0;
  margin-top: -4px;
}
.ae-quote__text {
  font-family: var(--font-text);
  font-size: var(--fs-15);
  line-height: 1.6;
  font-style: italic;
  color: var(--white);
  margin: 0;
}
.ae-quote__attr {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.08em;
  color: var(--gray-900);
  margin-top: 6px;
  display: block;
}
.ae-quotes-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.ae-quotes-row .ae-quote { margin: 0; height: 100%; }

/* ── Callout block (same recipe as delta-callout) ────────────── */
.ae-callout {
  position: relative;
  margin: 8px 0 48px;
  padding: 32px 36px;
  background:
    linear-gradient(135deg, rgba(143, 0, 216, 0.09), rgba(143, 0, 216, 0.02) 60%),
    rgba(170, 172, 241, 0.04);
  border: 1px solid var(--purple-border);
  border-left: 3px solid var(--purple-500);
  border-radius: 16px;
}
.ae-callout__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-900);
  margin-bottom: 14px;
}
.ae-callout__label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-500);
  box-shadow: 0 0 10px rgba(143, 0, 216, 0.65);
}
.ae-callout__title {
  font-family: var(--font-headings);
  font-size: var(--fs-22);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 14px;
}
.ae-callout__body {
  font-family: var(--font-text);
  font-size: var(--fs-15);
  line-height: 1.65;
  color: var(--gray-900);
}
.ae-callout__body p { margin: 0 0 10px; }
.ae-callout__body p:last-child { margin-bottom: 0; }
.ae-callout__body strong { color: var(--white); font-weight: 500; }

/* ── Metrics strip (same recipe as delta-metrics) ────────────── */
.ae-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
}
.ae-metric {
  flex: 1 1 160px;
  background: var(--purple-card);
  border: 1px solid var(--purple-card-border);
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s;
}
.ae-metric:hover { border-color: var(--purple-border); }
.ae-metric__value {
  font-family: var(--font-headings);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  color: var(--white);
  line-height: 1.05;
}
.ae-metric__label {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-weight: var(--mono-fw-lte20);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-900);
}
.ae-metric--pending .ae-metric__value { color: var(--purple-900); }
.ae-metric--pending .ae-metric__label::after {
  content: ' (pending launch)';
  color: var(--purple-900);
  opacity: 0.7;
}
.ae-metric--good { border-color: rgba(52, 211, 153, 0.40); background: rgba(52, 211, 153, 0.07); }
.ae-metric--good:hover { border-color: rgba(52, 211, 153, 0.65); }
.ae-metric--good .ae-metric__value { color: #34D399; }

/* ── What the agent got wrong: fix examples (same recipe as delta-fix) ── */
.ae-fixes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 4px;
}
.ae-fix {
  position: relative;
  background: var(--purple-card);
  border: 1px solid var(--purple-card-border);
  border-radius: 12px;
  padding: 20px 24px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.ae-fix::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: rgba(251, 146, 60, 0.55);
  transition: background 0.2s;
}
.ae-fix:hover { border-color: var(--purple-border); }
.ae-fix:hover::before { background: rgba(251, 146, 60, 0.85); }
.ae-fix__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.06em;
  color: var(--gray-900);
  background: rgba(170, 172, 241, 0.06);
  border: 1px solid var(--purple-card-border);
  border-radius: 999px;
  padding: 3px 12px;
}
.ae-fix__before, .ae-fix__after {
  font-family: var(--font-text);
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--gray-900);
  margin: 0;
}
.ae-fix__after { color: var(--off-white); }
.ae-fix__label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-900);
  margin-bottom: 4px;
}

/* ── Design-token swatches ─────────────────────────────────────
   Hex values here are DATA (Armstrong's real, shipped design
   tokens), same treatment as the traffic-light dots and tier
   badges elsewhere in the portfolio — not a new UI color choice. */
.ae-swatches {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 4px;
}
.ae-swatch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ae-swatch-row__label {
  flex: 0 0 128px;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-900);
}
.ae-swatch-scale { display: flex; gap: 4px; flex: 1; min-width: 220px; }
.ae-swatch {
  flex: 1;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--purple-card-border);
  position: relative;
}
.ae-swatch[data-brand]::after {
  content: '●';
  position: absolute;
  bottom: 3px;
  right: 5px;
  font-size: 8px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 0 3px rgba(0,0,0,0.6);
}

/* ── Agentic build: phase timeline ─────────────────────────────
   Same node-flow recipe as delta-methods__diagram, 4 columns. */
.ae-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  position: relative;
  padding: 22px;
  background: rgba(170, 172, 241, 0.03);
  border: 1px solid var(--purple-card-border);
  border-radius: 16px;
  margin: 24px 0 16px;
}
.ae-phase {
  position: relative;
  background: linear-gradient(180deg, rgba(170, 172, 241, 0.05), rgba(170, 172, 241, 0.02));
  border: 1px solid var(--purple-card-border);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.ae-phase:hover {
  border-color: var(--purple-border);
  background: rgba(143, 0, 216, 0.06);
  transform: translateY(-2px);
}
.ae-phase--verify {
  background: linear-gradient(180deg, rgba(143, 0, 216, 0.18), rgba(143, 0, 216, 0.04));
  border-color: var(--purple-border);
}
.ae-phase__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(143, 0, 216, 0.12);
  color: var(--purple-900);
  font-size: 17px;
}
.ae-phase__num {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.18em;
  color: var(--purple-900);
}
.ae-phase__title {
  font-family: var(--font-headings);
  font-size: var(--fs-13);
  font-weight: var(--fw-heading);
  color: var(--white);
  line-height: 1.25;
}
.ae-phase__desc {
  font-family: var(--font-text);
  font-size: var(--fs-12);
  line-height: 1.4;
  color: var(--gray-900);
}
.ae-phase + .ae-phase::before {
  content: '›';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--purple-border);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

/* ── Pricing decay chart — horizontal growing bars ─────────────
   Same recipe as delta-tt: a CSS var(--w) driven width, animated
   once via .is-revealed toggled by IntersectionObserver. */
.ae-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 4px;
  padding: 26px 28px;
  background: rgba(170, 172, 241, 0.03);
  border: 1px solid var(--purple-card-border);
  border-radius: 16px;
}
.ae-bars__row { display: flex; flex-direction: column; gap: 6px; }
.ae-bars__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.ae-bars__label { font-family: var(--font-text); font-size: var(--fs-13); color: var(--off-white); }
.ae-bars__value { font-family: var(--font-mono); font-size: var(--fs-11); color: var(--gray-900); }
.ae-bars__track {
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.ae-bars__fill {
  height: 100%;
  width: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, #7A00B8, var(--purple-500));
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ae-bars.is-revealed .ae-bars__fill { width: var(--w); }
.ae-bars__row:nth-child(2) .ae-bars__fill { transition-delay: 0.06s; }
.ae-bars__row:nth-child(3) .ae-bars__fill { transition-delay: 0.12s; }
.ae-bars__row:nth-child(4) .ae-bars__fill { transition-delay: 0.18s; }
.ae-bars__row:nth-child(5) .ae-bars__fill { transition-delay: 0.24s; }
.ae-bars__row:nth-child(6) .ae-bars__fill { transition-delay: 0.30s; }
.ae-bars__row:nth-child(7) .ae-bars__fill { transition-delay: 0.36s; }
.ae-bars__caption {
  font-family: var(--font-text);
  font-size: var(--fs-13);
  line-height: 1.6;
  color: var(--gray-900);
  margin-top: 4px;
}

/* ── Stack & why grid (same recipe as delta-stack) ───────────── */
.ae-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.ae-stack__item {
  background: var(--purple-card);
  border: 1px solid var(--purple-card-border);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.18s;
}
.ae-stack__item:hover { border-color: var(--purple-border); transform: translateY(-2px); }
.ae-stack__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(143, 0, 216, 0.12);
  color: var(--purple-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.ae-stack__name {
  font-family: var(--font-headings);
  font-size: var(--fs-16);
  font-weight: var(--fw-heading);
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}
.ae-stack__why {
  font-family: var(--font-text);
  font-size: var(--fs-13);
  line-height: 1.55;
  color: var(--gray-900);
  margin: 0;
}

/* ── Image figure with caption (same recipe as delta-img-wrap) ── */
.ae-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #050810;
  border: 1px solid var(--purple-card-border);
  cursor: zoom-in;
  transition: border-color 0.2s, transform 0.18s;
  margin: 0;
}
.ae-img-wrap:hover { border-color: var(--purple-border); transform: translateY(-2px); }
.ae-img-wrap:focus-visible { outline: 2px solid var(--purple-500); outline-offset: 2px; }
.ae-img-wrap img { display: block; width: 100%; height: auto; }
.ae-img-wrap--plate img { background: #fff; }
.ae-img-caption {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-900);
  border-top: 1px solid var(--purple-card-border);
}
.ae-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

/* ── 1-year roadmap cards ──────────────────────────────────────
   Same card recipe as .feature-card, extended with a quarter tag
   and an internal list — no new visual language introduced. */
.ae-roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.ae-roadmap__card {
  background: var(--purple-card);
  border: 1px solid var(--purple-card-border);
  border-radius: 12px;
  padding: 22px 20px;
  transition: border-color 0.2s;
}
.ae-roadmap__card:hover { border-color: var(--purple-border); }
.ae-roadmap__q {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-900);
  background: rgba(143, 0, 216, 0.12);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.ae-roadmap__title {
  font-family: var(--font-headings);
  font-size: var(--fs-16);
  font-weight: var(--fw-heading);
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.ae-roadmap__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
}
.ae-roadmap__list li {
  font-family: var(--font-text);
  font-size: var(--fs-13);
  line-height: 1.5;
  color: var(--gray-900);
  padding-left: 14px;
  position: relative;
}
.ae-roadmap__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple-500);
}
.ae-roadmap__metric {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.06em;
  color: var(--off-white);
  border-top: 1px solid var(--purple-card-border);
  padding-top: 10px;
  display: block;
}
.ae-roadmap__metric b { color: var(--purple-900); font-weight: 500; }

/* ── Static section titles opt-in for hero-adjacent copy ───────
   (No override here — this page keeps the site-wide default
   .project-section__title scroll reveal from animations.js.) */

/* ── Image lightbox overlay (driven by modules/lightbox.js) ──────
   Same block as delta-for-business.css: reuses the shared
   .uber-lightbox__* class names the module queries, restyled in
   the portfolio palette since uber-eats.css isn't linked here. */
.uber-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.uber-lightbox[data-open='true'] { display: flex; }
.uber-lightbox__img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--purple-card-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.uber-lightbox__caption {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--gray-900);
  text-align: center;
  max-width: 60ch;
}
.uber-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.06);
  border: 1px solid rgba(250, 250, 250, 0.2);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.uber-lightbox__close:hover {
  background: rgba(250, 250, 250, 0.12);
  border-color: rgba(250, 250, 250, 0.4);
}
body.uber-modal-open { overflow: hidden; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ae-hero__grid { grid-template-columns: 1fr; padding: 56px 32px; }
  .ae-hero__bento { height: 340px; order: -1; }
}
@media (max-width: 760px) {
  .ae-phases { grid-template-columns: repeat(2, 1fr); }
  .ae-phase + .ae-phase::before { content: none; }
  .ae-swatch-row__label { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .ae-hero__grid { padding: 40px 20px; }
  .ae-hero__bento { grid-template-columns: 1fr 1fr; height: 220px; }
  .ae-tldr { padding: 24px; }
  .ae-callout { padding: 24px; }
  .ae-phases { grid-template-columns: 1fr 1fr; }
}

/* ── Expandable "Know more / Know less" block ────────────────────
   Same recipe as delta-for-business.css: driven by
   modules/expandable-section.js. Included here since this page
   doesn't link delta-for-business.css. */
.expandable {
  position: relative;
  overflow: hidden;
  transition: max-height 260ms ease-out;
}
.expandable.is-collapsed {
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.expandable.is-open {
  -webkit-mask-image: none;
  mask-image: none;
}
.expandable__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px auto 0;
  padding: 9px 20px;
  background: var(--bg-chip);
  border: 1px solid var(--purple-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: var(--mono-fw-lte20);
  letter-spacing: 0.06em;
  color: var(--off-white);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.expandable__toggle:hover {
  color: var(--white);
  border-color: var(--purple-500);
  background: #251f47;
}
.expandable__toggle i { font-size: 14px; }

/* ── Code snippet card (design tokens / component stylesheets) ───
   Same bordered-card recipe as .feature-card / .ae-stack__item,
   just with a mono code block instead of prose. */
.ae-code {
  background: rgba(5, 8, 16, 0.55);
  border: 1px solid var(--purple-card-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}
.ae-code__file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-900);
  border-bottom: 1px solid var(--purple-card-border);
  background: rgba(170, 172, 241, 0.03);
}
.ae-code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  max-height: 420px;
  overflow-y: auto;
}
.ae-code code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--off-white);
  white-space: pre;
}
.ae-code .tok-com { color: var(--gray-900); font-style: italic; }
.ae-code .tok-key { color: var(--purple-900); }
.ae-code .tok-val { color: #34D399; }

/* ── Bidirectional Figma <-> agents flow ──────────────────────── */
.ae-figma-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 20px 0 4px;
}
.ae-figma-flow__card {
  background: var(--purple-card);
  border: 1px solid var(--purple-card-border);
  border-radius: 14px;
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ae-figma-flow__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(143, 0, 216, 0.12);
  color: var(--purple-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.ae-figma-flow__title {
  font-family: var(--font-headings);
  font-size: var(--fs-16);
  font-weight: var(--fw-heading);
  color: var(--white);
}
.ae-figma-flow__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.ae-figma-flow__list li {
  font-family: var(--font-text);
  font-size: var(--fs-13);
  line-height: 1.5;
  color: var(--gray-900);
  padding-left: 14px;
  position: relative;
}
.ae-figma-flow__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple-500);
}
.ae-figma-flow__arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--purple-500);
  font-size: 22px;
}
.ae-figma-flow__arrows span {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  color: var(--gray-900);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .ae-figma-flow { grid-template-columns: 1fr; }
  .ae-figma-flow__arrows { flex-direction: row; justify-content: center; }
}

/* ── Conversion-flow tree diagram ──────────────────────────────
   Vertical org-chart: nodes placed on a CSS grid via inline
   grid-row/grid-column, connectors drawn as an absolute SVG
   overlay (JS computes real DOM rects — same technique as the
   dynamic sitemap/gate connectors elsewhere in the portfolio). */
.ae-tree {
  position: relative;
  margin: 20px 0 4px;
  padding: 28px 20px 8px;
  background: rgba(170, 172, 241, 0.03);
  border: 1px solid var(--purple-card-border);
  border-radius: 16px;
  overflow-x: auto;
}
.ae-tree__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  grid-auto-rows: min-content;
  row-gap: 30px;
  column-gap: 12px;
  min-width: 760px;
  z-index: 1;
}
.ae-tree__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}
.ae-tree__edge {
  fill: none;
  stroke: var(--purple-border);
  stroke-width: 1.5;
}
.ae-tree__edge--dashed { stroke-dasharray: 3 4; opacity: 0.75; }

.ae-tree__node {
  justify-self: center;
  align-self: start;
  width: 100%;
  max-width: 200px;
  background: var(--purple-card);
  border: 1px solid var(--purple-card-border);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.ae-tree__node:hover { border-color: var(--purple-border); transform: translateY(-2px); }
.ae-tree__node-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-900);
  margin-bottom: 4px;
}
.ae-tree__node-title {
  font-family: var(--font-headings);
  font-size: 12.5px;
  font-weight: var(--fw-heading);
  color: var(--white);
  line-height: 1.3;
}
.ae-tree__node-sub {
  display: block;
  font-family: var(--font-text);
  font-size: 11px;
  line-height: 1.4;
  color: var(--gray-900);
  margin-top: 4px;
}
.ae-tree__node--entry     { background: rgba(143, 0, 216, 0.14); border-color: var(--purple-border); }
.ae-tree__node--decision  { border-style: dashed; }
.ae-tree__node--yes       { border-color: rgba(52, 211, 153, 0.45); }
.ae-tree__node--yes .ae-tree__node-tag { color: #34D399; }
.ae-tree__node--no        { border-color: rgba(251, 146, 60, 0.5); }
.ae-tree__node--no .ae-tree__node-tag  { color: #FB923C; }
.ae-tree__node--merge     { background: rgba(143, 0, 216, 0.1); }
.ae-tree__node--end       { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.4); }

@media (max-width: 860px) {
  .ae-tree__svg { display: none; }
  .ae-tree__grid {
    display: flex;
    flex-direction: column;
    min-width: 0;
    row-gap: 12px;
  }
  .ae-tree__node { max-width: none; }
}

/* ── Email mockups (real renderEmail() shell, reproduced) ────────
   Scoped under .ae-email-mock — this is the ONLY place on the
   page Armstrong's real email palette (cream/green/orange) is
   used as literal CSS, because it's reproducing an actual shipped
   deliverable (an HTML email), not a new portfolio UI decision.
   Sits inside the existing .project-carousel shell (project-detail.css) —
   no new carousel mechanics, just a taller, non-16:9 container. */
.ae-email-carousel .project-carousel {
  height: 640px;
  border-radius: 16px;
  border: 1px solid var(--purple-card-border);
}
.ae-email-carousel .project-carousel__slide {
  padding: 20px;
  overflow-y: auto;
}
.ae-email-mock {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 10px;
  padding: 18px 14px 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.ae-email-mock__logo { margin-bottom: 10px; }
.ae-email-mock__logo img { height: 20px; width: auto; display: block; }
.ae-email-mock__card {
  background: #ffffff;
  border: 1px solid #e7e1d2;
  border-radius: 14px;
  padding: 20px 20px 16px;
}
.ae-email-mock__bar { height: 3px; width: 40px; background: #006a3e; border-radius: 2px; margin-bottom: 14px; }
.ae-email-mock__eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.ae-email-mock__heading { font-size: 18px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; }
.ae-email-mock__text { font-size: 12.5px; line-height: 1.55; color: #3e4941; margin: 0 0 10px; }
.ae-email-mock__callout {
  background: #ffefd2;
  border-left: 3px solid #e9923b;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #124c34;
  margin-bottom: 12px;
}
.ae-email-mock__recap {
  background: #ecf7f1;
  border: 1px solid #cbeee0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.ae-email-mock__recap-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #006a3e;
  margin-bottom: 8px;
}
.ae-email-mock__row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #3e4941;
  padding: 4px 0;
}
.ae-email-mock__row b { color: #1c1c16; }
.ae-email-mock__badge {
  display: inline-block;
  margin-top: 8px;
  background: #ffefd2;
  color: #e9923b;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.ae-email-mock__footer {
  text-align: center;
  font-size: 10.5px;
  color: #6b7169;
  margin: 12px 0 0;
}
