/* About the expert (core/about.html). Green and white slides alternate; cards keep
   dark text on a light surface; molecules and counters are the shared components. */

.ab { --ab-line: rgb(255 255 255 / .16); --ab-soft: rgb(255 255 255 / .08); overflow-x: clip; }
.ab .jn-slide--white .jn-section-heading h2 { color: var(--jn-green); }
.ab .jn-section-heading { margin-bottom: 2.25rem; }
.ab .jn-section-heading h2 { max-width: 46rem; letter-spacing: -.02em; }
.ab h3 { font-size: 1.0625rem; line-height: 1.35; }
.ab-text { max-width: 36rem; margin-bottom: 1rem; font-size: 1rem; line-height: 1.75; color: #444; }
.ab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.ab-button--ghost { color: #fff; border-color: rgb(255 255 255 / .35); background: transparent; }
.ab-button--ghost:hover { border-color: var(--jn-orange); color: #fff; }
.ab-link { color: var(--jn-orange-dark); font-size: .9375rem; font-weight: 700; text-decoration: none; }
.jn-slide--green .ab-link { color: var(--jn-orange); }
.ab-link:hover { text-decoration: underline; }

/* Hero */
.ab-hero { display: flex; align-items: center; }
.ab-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem); gap: 4.5rem; align-items: center; }
.ab-hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1.5rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.ab-badge { padding: .4rem .85rem; border-radius: .4rem; background: var(--jn-orange); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; }
.ab-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.ab-hero h1 span { color: var(--jn-orange); }
.ab-hero__lead { max-width: 38rem; margin-top: 1rem; font-size: clamp(.9375rem, 1.6vw, 1.125rem); line-height: 1.75; color: rgb(255 255 255 / .78); }
.ab-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; max-width: 36rem; margin: 2rem 0; }
.ab-stats div { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem; border: 1px solid var(--ab-line); border-radius: var(--jn-radius-sm); background: var(--ab-soft); }
.ab-stats dt { font-size: 1.5rem; font-weight: 700; line-height: 1.15; color: #fff; white-space: nowrap; }
.ab-stats dd { margin: 0; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.ab-portrait { position: relative; display: grid; gap: 1.25rem; margin: 0; }
.ab-portrait__frame { position: relative; z-index: 1; aspect-ratio: 4 / 5; }
.ab-portrait__frame::before { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; z-index: -1; border: 2px solid var(--jn-orange); border-radius: var(--jn-radius); }
.ab-portrait__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; border-radius: var(--jn-radius); box-shadow: 0 30px 70px rgb(0 0 0 / .3); }
.ab-portrait figcaption { position: relative; z-index: 1; display: grid; gap: .15rem; margin-top: .75rem; padding-left: .25rem; }
.ab-portrait strong { color: #fff; font-size: 1rem; }
.ab-portrait figcaption span { color: rgb(255 255 255 / .65); font-size: .8125rem; }
.ab-molecule { position: absolute; z-index: 0; height: auto; }
.ab-molecule--top { top: -4.5rem; right: -3rem; width: 9rem; }
.ab-molecule--bottom { bottom: 4rem; left: -4.5rem; width: 7rem; }

/* Approach */
.ab-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ab-side { display: grid; gap: .75rem; margin: 0; padding: 1.75rem; border: 1px solid var(--jn-border); border-radius: var(--jn-radius); background: var(--jn-cream); transition: translate .3s ease, box-shadow .3s ease, border-color .2s ease; }
.ab-side:hover { translate: 0 -4px; border-color: var(--jn-orange); box-shadow: 0 18px 40px rgb(1 60 53 / .12); }
.ab-side__label { font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--jn-orange-dark); }
.ab-side div { display: flex; align-items: baseline; gap: 1rem; }
.ab-side dt { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 700; line-height: 1; color: var(--jn-green); }
.ab-side dd { margin: 0; font-size: .9375rem; line-height: 1.55; color: #444; }
.ab-bridge { margin-top: 1.25rem; padding: 1.25rem 1.5rem; border-radius: var(--jn-radius-sm); background: var(--jn-green); color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.6; }
.ab-skills { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem 2rem; margin-top: 2rem; }
.ab-skills h3 { color: var(--jn-green); }
.ab-skills .jn-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Expertise */
.ab-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ab-card { --jn-text: #111; --jn-muted: #555; display: flex; flex-direction: column; gap: .6rem; padding: 1.75rem; border-radius: var(--jn-radius); background: #fff; color: #111; transition: translate .3s ease, box-shadow .3s ease; }
.ab-card:hover { translate: 0 -4px; box-shadow: 0 20px 44px rgb(0 0 0 / .22); }
.ab-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: .4rem; border-radius: .8rem; background: rgb(255 111 63 / .12); color: var(--jn-orange-dark); }
.ab-icon svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ab-card h3 { color: var(--jn-green); }
.ab-card p { flex: 1; font-size: .9375rem; line-height: 1.65; color: #444; }
.ab-card__link { margin-top: .5rem; color: var(--jn-orange-dark); font-size: .9375rem; font-weight: 700; text-decoration: none; }
.ab-card__link:hover { text-decoration: underline; }

/* Brand */
.ab-brand { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; align-items: center; }
.ab-brand__photo { margin: 0; overflow: hidden; border-radius: var(--jn-radius); }
.ab-brand__photo img { display: block; width: 100%; height: auto; transition: scale .8s cubic-bezier(.2, .7, .2, 1); }
.ab-brand__photo:hover img { scale: 1.04; }
.ab-brand .jn-section-heading { margin-bottom: 1.25rem; }
.ab-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1.75rem; padding: 0; list-style: none; }
.ab-tags li { padding: .4rem .85rem; border: 1px solid var(--jn-border); border-radius: 999px; background: var(--jn-cream); font-size: .8125rem; font-weight: 600; color: var(--jn-green); }

/* Books and closing call */
.ab-more { margin-top: 1.5rem; }
.ab-cta { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.ab-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: 2rem 2.25rem; border: 1px solid var(--jn-border); border-radius: var(--jn-radius); background: var(--jn-cream); }
.ab-cta h2 { margin: .5rem 0; font-size: clamp(1.375rem, 2.6vw, 1.875rem); color: var(--jn-green); }
.ab-cta .ab-text { margin: 0; }

/* Motion: hero entrance; reveals only where scroll timelines exist. system.css turns
   all of it off for reduced motion and on weak devices (.jn-lite). */
@keyframes ab-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ab-hero__copy > * { animation: ab-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.ab-hero__copy > :nth-child(2) { animation-delay: .08s; }
.ab-hero__copy > :nth-child(3) { animation-delay: .16s; }
.ab-hero__copy > :nth-child(4) { animation-delay: .24s; }
.ab-hero__copy > :nth-child(5) { animation-delay: .32s; }
.ab-portrait__frame, .ab-portrait figcaption { animation: ab-in 1s cubic-bezier(.2, .7, .2, 1) .25s both; }
@supports (animation-timeline: view()) {
  .ab :is(.ab-side, .ab-bridge, .ab-card, .ab-brand__photo, .ab-cta__inner) {
    animation: ab-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  .ab :is(.ab-card):nth-child(2n) { animation-range: entry 8% entry 63%; }
  .ab :is(.ab-card):nth-child(3n) { animation-range: entry 16% entry 71%; }
}

/* Responsive */
@media (min-width: 901px) {
  .ab > .ab-hero { min-height: calc(100svh - var(--jn-header-height)); }
}
@media (max-width: 900px) {
  .ab-hero__grid, .ab-brand { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .ab-portrait { grid-row: 1; justify-self: center; width: 100%; max-width: 20rem; }
  .ab-portrait figcaption { text-align: center; padding-left: 0; }
  .ab-molecule { display: none; }
  .ab-cards { grid-template-columns: minmax(0, 1fr); }
  .ab-skills { grid-template-columns: minmax(0, 1fr); }
  .ab-skills .jn-checks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .ab-sides { grid-template-columns: minmax(0, 1fr); }
  .ab-portrait { max-width: 14rem; }
  .ab-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ab-stats div:last-child:nth-child(3) { grid-column: 1 / -1; }
  .ab-side, .ab-card, .ab-cta__inner { padding: 1.5rem 1.25rem; }
  .ab-actions .jn-button { flex: 1 1 100%; text-align: center; }
}
