/* About page: the Captain's story, from the noise of fitness advice to a simple plan. It keeps the program
   pages' art direction (ink frames, offset shadows, blue and purple, Archivo) with its own layout and visuals. */
body.ab-body { overflow-x: hidden; overflow-x: clip; }
.ab { position: relative; z-index: 2; width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 112px 0 90px; }
.ab h1, .ab h2, .ab h3 { text-wrap: balance; }
.ab p { text-wrap: pretty; }
.ab-section { margin-top: clamp(84px, 10vw, 140px); }
.ab h2 { margin: 0; color: var(--v2-ink); font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 900; line-height: .98; letter-spacing: -.045em; }
.ab-heading { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.ab-heading p { max-width: 58ch; margin: 18px auto 0; color: var(--v2-copy); font-size: 1.05rem; font-weight: 500; line-height: 1.55; }
.ab-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 15px 6px 7px;
  border: 2px solid var(--v2-ink); border-radius: 999px; color: var(--v2-ink); background: var(--v2-paper);
  box-shadow: 3px 3px 0 var(--v2-ink); font-size: .78rem; font-weight: 850;
}
.ab-pill img { width: 22px; height: 22px; }
/* The site's blue button; the sunburst hover comes from button-rays.css. */
.ab-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 32px;
  border: 3px solid var(--v2-ink); border-radius: 999px; color: #fff; background: var(--v2-action);
  box-shadow: 5px 5px 0 var(--v2-ink); font-size: 1.12rem; font-weight: 900; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ab-cta:hover { color: #fff; background: #3a5f98; transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--v2-ink); }
.ab-cta:focus-visible { outline: 3px solid var(--v2-purple); outline-offset: 4px; }

/* 1. Hero: the headline in the middle of floating, contradicting advice. */
.ab-hero { position: relative; display: grid; place-items: center; min-height: 560px; padding: 24px 0; text-align: center; }
.ab-hero__copy { position: relative; z-index: 1; max-width: 620px; }
.ab-hero h1 { margin: 0; color: var(--v2-ink); font-size: clamp(2.7rem, 6vw, 5.2rem); font-weight: 900; line-height: .94; letter-spacing: -.055em; }
.ab-hero h1 span { color: #fff; font-style: italic; -webkit-text-stroke: 2px var(--v2-ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--v2-ink); }
.ab-hero__lead { max-width: 50ch; margin: 22px auto 0; color: var(--v2-copy); font-size: clamp(1.02rem, 1.5vw, 1.16rem); font-weight: 500; line-height: 1.55; }
.ab-hero__lead strong { color: var(--v2-ink); font-weight: 900; }
.ab-noise { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.ab-noise li {
  position: absolute; top: var(--y); max-width: 210px; padding: 9px 14px;
  border: 2px solid var(--v2-ink); border-radius: 14px; color: var(--v2-ink); background: var(--v2-paper);
  box-shadow: 3px 3px 0 var(--v2-ink); font-size: .86rem; font-weight: 800; line-height: 1.25; text-align: left;
  transform: rotate(var(--r)); animation: abDrift 6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.ab-noise .is-left { left: var(--x); }
.ab-noise .is-right { right: var(--x); }
.ab-noise .is-trend { color: #fff; background: var(--v2-purple); }
.ab-noise small { display: block; margin-bottom: 3px; color: #d9d2f5; font-size: .62rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
@keyframes abDrift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* 2. The messages: a phone full of beginner questions next to the story. */
.ab-dms { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(36px, 6vw, 96px); max-width: 1040px; margin-inline: auto; }
.ab-phone {
  position: relative; justify-self: center; width: min(320px, 100%); margin: 0; padding: 12px;
  border: 3px solid var(--v2-ink); border-radius: 44px; background: var(--v2-ink); box-shadow: 8px 8px 0 var(--v2-purple); transform: rotate(-3deg);
}
.ab-phone::before { content: ""; position: absolute; top: 20px; left: 50%; z-index: 1; width: 74px; height: 18px; margin-left: -37px; border-radius: 999px; background: var(--v2-ink); }
.ab-phone__screen { padding: 44px 14px 20px; border-radius: 32px; background: var(--v2-soft); }
.ab-phone__bar { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--v2-outline); }
.ab-phone__bar img { width: 34px; height: 34px; border-radius: 50%; background: var(--v2-paper); }
.ab-phone__bar span { display: grid; gap: 1px; }
.ab-phone__bar b { color: var(--v2-ink); font-size: .86rem; font-weight: 900; }
.ab-phone__bar small { color: var(--v2-copy); font-size: .7rem; font-weight: 700; }
.ab-thread { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.ab-thread li { display: flex; align-items: flex-end; gap: 8px; }
.ab-thread i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--a); font-size: .66rem; font-style: normal; font-weight: 900; }
.ab-thread p { margin: 0; padding: 9px 12px; border-radius: 16px 16px 16px 4px; color: var(--v2-ink); background: var(--v2-paper); box-shadow: 0 2px 0 var(--v2-outline); font-size: .82rem; font-weight: 600; line-height: 1.35; }
.ab-thread__typing p { display: flex; gap: 4px; padding: 12px 14px; }
.ab-thread__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--v2-copy); animation: abTyping 1.2s ease-in-out infinite; }
.ab-thread__typing span:nth-child(2) { animation-delay: .15s; }
.ab-thread__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes abTyping { 0%, 60%, 100% { opacity: .35; translate: 0 0; } 30% { opacity: 1; translate: 0 -3px; } }
/* The heading pairs the problem with the answer, the answer on its own line in italic. */
.ab .ab-dms h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.ab-dms h2 span { display: block; margin-top: 6px; font-style: italic; }
.ab-dms__copy p { max-width: 50ch; margin: 18px 0 0; color: var(--v2-copy); font-size: 1.08rem; font-weight: 500; line-height: 1.6; }
.ab-dms__copy p:last-child { color: var(--v2-ink); font-weight: 800; }

/* 3. The equation: what adds up to Captain Workout. */
.ab-born { text-align: center; }
.ab-equation { display: flex; align-items: stretch; justify-content: center; gap: 14px; max-width: 1140px; margin: 46px auto 0; }
.ab-term, .ab-result {
  display: grid; align-content: center; justify-items: center; gap: 12px; flex: 1 1 0; min-height: 200px; margin: 0; padding: 24px 18px;
  border: 3px solid var(--v2-ink); border-radius: 24px; color: var(--v2-ink); background: var(--v2-paper); box-shadow: 6px 6px 0 var(--v2-ink);
  font-size: 1rem; font-weight: 800; line-height: 1.3;
  animation: abFloat 4.4s ease-in-out infinite; animation-delay: var(--d, 0s);
  transition: scale .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease;
}
.ab-term:nth-of-type(odd) { transform: rotate(-1.5deg); }
.ab-term:nth-of-type(even) { transform: rotate(1.5deg); }
/* Each card floats on its own rhythm and zooms in on hover. The float uses `translate` and the zoom `scale`,
   so neither undoes the tilt set with `transform`. */
.ab-term:hover, .ab-result:hover { z-index: 1; scale: 1.07; box-shadow: 9px 9px 0 var(--v2-ink); }
.ab-result:hover { box-shadow: 9px 9px 0 var(--v2-purple); }
@keyframes abFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.ab-term__big { color: var(--v2-purple); font-size: 4.2rem; font-weight: 900; line-height: .85; letter-spacing: -.05em; }
.ab-term__icon { display: grid; place-items: center; width: 60px; height: 60px; border: 2px solid var(--v2-ink); border-radius: 18px; color: #fff; background: var(--v2-purple); box-shadow: 3px 3px 0 var(--v2-ink); }
.ab-term__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ab-op { align-self: center; flex: none; color: var(--v2-ink); font-size: 2.8rem; font-weight: 900; line-height: 1; }
.ab-result {
  position: relative; isolation: isolate; overflow: hidden; flex-grow: 1.35; color: #fff;
  background: radial-gradient(circle at 50% 0%, rgba(126, 104, 214, .6), transparent 70%), #1d3657; box-shadow: 6px 6px 0 var(--v2-purple);
}
.home-v2 .ab-result .ab-result__star { top: 50%; width: 170%; background: #fff; opacity: .08; }
.ab-result img { width: 64px; height: 64px; border-radius: 50%; background: var(--v2-paper); box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.ab-result b { font-size: 1.55rem; font-style: italic; font-weight: 900; letter-spacing: -.03em; }
.ab-result > span:last-child { color: #c8dbf7; font-weight: 700; }
.ab-born__story { max-width: 62ch; margin: 40px auto 0; color: var(--v2-copy); font-size: 1.14rem; font-weight: 500; line-height: 1.65; }
.ab-born__story strong { color: var(--v2-ink); font-weight: 900; }

/* 4. About me: the hero file, the story and the physique along the way. */
.ab-me__intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(36px, 6vw, 88px); max-width: 1080px; margin-inline: auto; }
/* The Captain's photo floats over the site's star, with a soft shadow on the ground. */
.ab-float { position: relative; isolation: isolate; display: grid; justify-items: center; margin: 0; }
.home-v2 .ab-float .ab-float__star { top: 46%; z-index: -1; width: 150%; opacity: .8; }
.ab-float img {
  display: block; width: min(380px, 100%); height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%;
  border: 3px solid var(--v2-ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--v2-purple);
  rotate: -2deg; animation: abLevitate 4s ease-in-out infinite;
}
.ab-float__shadow { width: 62%; height: 24px; margin-top: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 58, 95, .34), rgba(31, 58, 95, 0)); animation: abLevitateShadow 4s ease-in-out infinite; }
@keyframes abLevitate { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes abLevitateShadow { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .82; opacity: .65; } }
.ab-me__copy > p:not(.ab-pill) { max-width: 54ch; margin: 18px 0 0; color: var(--v2-copy); font-size: 1.06rem; font-weight: 500; line-height: 1.6; }
.ab-me__copy > p.ab-me__punch { color: var(--v2-ink); font-weight: 800; }
.ab-stats { display: flex; flex-wrap: wrap; margin: 28px 0 0; padding: 0; list-style: none; }
.ab-stats li { display: grid; gap: 4px; padding: 0 26px; border-left: 2px solid var(--v2-outline); }
.ab-stats li:first-child { padding-left: 0; border-left: 0; }
.ab-stats b { color: var(--v2-ink); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.ab-stats span { color: var(--v2-copy); font-size: .64rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

/* 5. Proof: member polaroids scroll on their own, pause on hover and fade out at the edges. */
.ab-carousel {
  overflow: hidden; margin-inline: calc(50% - 50vw); padding: 14px 0 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ab-carousel__track { display: flex; width: max-content; animation: abCarousel 46s linear infinite; }
.ab-carousel:hover .ab-carousel__track { animation-play-state: paused; }
.ab-carousel__group { display: flex; gap: 28px; margin: 0; padding: 0 14px; list-style: none; }
.ab-carousel__group li { flex: none; width: 300px; }
@keyframes abCarousel { to { transform: translateX(-50%); } }
.ab-carousel figure { height: 100%; margin: 0; padding: 10px 10px 18px; border: 3px solid var(--v2-ink); border-radius: 18px; background: var(--v2-paper); box-shadow: 5px 5px 0 var(--v2-ink); transform: rotate(var(--r)); }
.ab-carousel img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: 10px; }
.ab-carousel figcaption { display: grid; gap: 4px; padding: 14px 6px 0; }
.ab-carousel blockquote { margin: 0 0 8px; color: var(--v2-ink); font-size: .92rem; font-weight: 600; line-height: 1.45; }
.ab-carousel b { color: var(--v2-ink); font-size: .98rem; font-weight: 900; }
.ab-carousel small { color: var(--v2-purple); font-size: .64rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

/* 6. Closing: the hero's noise again, crossed out, behind one clear step. */
.ab-final {
  position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; margin-top: clamp(84px, 10vw, 140px);
  padding: clamp(64px, 9vw, 112px) clamp(22px, 5vw, 64px); border: 3px solid var(--v2-ink); border-radius: 34px;
  background: radial-gradient(circle at 50% 0%, rgba(126, 104, 214, .55), transparent 62%), #1d3657; box-shadow: 8px 8px 0 var(--v2-purple); text-align: center;
}
.ab-final__noise { position: absolute; inset: 0; z-index: -1; margin: 0; padding: 0; list-style: none; }
.ab-final__noise li {
  position: absolute; top: var(--y); left: var(--x); padding: 7px 12px; border: 2px solid rgba(255, 255, 255, .2); border-radius: 12px;
  color: rgba(255, 255, 255, .42); font-size: .8rem; font-weight: 800; white-space: nowrap; transform: rotate(var(--r));
  text-decoration: line-through; text-decoration-color: #8ab4f2; text-decoration-thickness: 2px;
}
.ab .ab-final h2 { max-width: 16ch; color: #fff; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.ab-final h2 span { display: block; color: #8ab4f2; font-style: italic; }
.ab-final p { max-width: 52ch; margin: 18px 0 0; color: #c8dbf7; font-size: 1.1rem; font-weight: 500; line-height: 1.55; }
.ab-final .ab-cta { margin-top: 30px; border-color: #fff; box-shadow: 5px 5px 0 var(--v2-purple); }
.ab-final .ab-cta:hover { box-shadow: 3px 3px 0 var(--v2-purple); }

@media (max-width: 1080px) {
  .ab-noise li { max-width: 170px; font-size: .8rem; }
}
@media (max-width: 900px) {
  .ab { width: calc(100% - 32px); padding-top: 100px; }
  /* The noise becomes a cloud of tags under the headline. */
  .ab-hero { display: flex; flex-direction: column; min-height: 0; padding: 8px 0 0; }
  .ab-hero__copy { order: -1; }
  .ab-noise { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; margin-top: 30px; }
  .ab-noise li { position: static; max-width: none; padding: 8px 12px; font-size: .78rem; }
  .ab-noise li:nth-child(n + 8) { display: none; }
  .ab-dms, .ab-me__intro { grid-template-columns: 1fr; max-width: 560px; }
  .ab-phone { width: min(300px, 88%); }
  .ab-equation { flex-direction: column; align-items: center; gap: 10px; }
  .ab-term, .ab-result { width: min(420px, 100%); min-height: 0; flex: none; }
  .ab-term__big { font-size: 3.4rem; }
  .ab-float img { width: min(320px, 82%); }
}
@media (max-width: 600px) {
  .ab-carousel__group li { width: 260px; }
  .ab-carousel__group { gap: 20px; padding: 0 10px; }
  /* The three numbers stay on one row, each in its own third. */
  .ab-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-stats li { padding: 0 10px; }
  .ab-stats b { font-size: 1.5rem; }
  .ab-stats span { font-size: .56rem; letter-spacing: .1em; }
  /* The equation reads as a compact list: icon or number on the left, words on the right. */
  .ab-term { grid-template-columns: 64px 1fr; align-items: center; justify-items: start; gap: 16px; padding: 16px 20px; text-align: left; }
  .ab-term__big { justify-self: center; font-size: 2.8rem; }
  .ab-term__icon { width: 52px; height: 52px; justify-self: center; }
  .ab-op { font-size: 2rem; }
  /* Only two crossed-out tags, above and below the text, so nothing sits behind the words. */
  .ab-final { padding-block: 96px; }
  .ab-final__noise li { font-size: .72rem; }
  .ab-final__noise li:nth-child(n + 2):nth-child(-n + 5) { display: none; }
  .ab-final__noise li:first-child { top: 26px; left: 18px; }
  .ab-final__noise li:last-child { top: auto; bottom: 26px; left: auto; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-noise li, .ab-thread__typing span, .ab-term, .ab-result, .ab-float img, .ab-float__shadow { animation: none; }
  .ab-term, .ab-result { transition: none; }
  /* The carousel stops and scrolls by hand instead; the duplicate set is only there for the loop. */
  .ab-carousel { overflow-x: auto; }
  .ab-carousel__track { animation: none; }
  .ab-carousel__group[aria-hidden="true"] { display: none; }
}
