/* About page. Builds on styles.css, articles.css (.a-hero) and how.css (.hw-end). */
.a-hero h1 { max-width: 980px; }
.ab-story, .ab-does, .ab-you { max-width: 760px; margin: 0 auto; padding: 96px 16px 0; text-align: center; }
.ab-story .eyebrow, .ab-does .eyebrow, .ab-you .eyebrow { display: block; margin-bottom: 18px; }
.ab-story p { font: 400 clamp(20px, 2vw, 24px)/1.45 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
.ab-story p + p { margin-top: 16px; }
.ab-does { max-width: 1040px; }
.ab-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.ab-cards li { padding: 24px 22px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-m); }
.ab-cards h3 { font: 400 24px/1.12 var(--serif); letter-spacing: -.02em; }
.ab-cards p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-70); }
.ab-steps { list-style: none; counter-reset: step; display: grid; gap: 12px; text-align: left; }
.ab-steps li { counter-increment: step; position: relative; padding: 20px 22px 20px 64px; background: var(--sage-tint); border-radius: var(--radius-m); font-size: 17px; line-height: 1.5; }
.ab-steps li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--canvas); font: 500 14px/1 var(--sans); }
.ab-steps b { font-weight: 600; }
@media (max-width: 900px) { .ab-cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ab-story, .ab-does, .ab-you { padding-top: 72px; } .ab-steps li { font-size: 16px; } }
/* "incredibly": italic; about.js fires one burst of canvas confetti from it */
.confetti { display: inline-block; font-style: italic; transform-origin: 50% 70%; }
/* the word gives a little wiggle as the confetti pops, then rests */
.confetti.wiggle { animation: wiggle .9s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes wiggle {
  0% { transform: none; }
  12% { transform: rotate(-7deg) scale(1.08); }
  28% { transform: rotate(6deg) scale(1.08); }
  44% { transform: rotate(-4deg) scale(1.04); }
  60% { transform: rotate(2.5deg) scale(1.02); }
  76% { transform: rotate(-1deg); }
  100% { transform: none; }
}
.ab-story a { color: inherit; border-bottom: 1px solid var(--ink-30); transition: border-color .2s; }
.ab-story a:hover { border-color: var(--ink); }
/* The rotating figure: the home hero's swap (.rot in styles.css), taken slower */
.ab-story .rot, .ab-story .rot-in { transition-duration: 1.2s; }

/* The founder beside the story: a cut-out photo on the brand's peach, with a name tag over the
   bottom of it */
.founder-card { position: relative; width: min(340px, 88vw); margin: 0 auto 36px; perspective: 1400px; }
.founder-flip { position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .7, .2, 1); }
.founder-card.is-flipped .founder-flip { transform: rotateY(180deg); }
.founder-front, .founder-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.founder-front { position: relative; }
.founder-back { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 16px; overflow-y: auto; border-radius: var(--radius-m); background: var(--surface); box-shadow: 0 0 0 1px var(--hair), 0 10px 24px -14px rgba(39, 37, 30, .35); transform: rotateY(180deg); text-align: left; }
.ab-story .founder-back p { font: 400 14px/1.5 var(--sans); letter-spacing: 0; color: var(--ink-70); }
.ab-story .founder-back p + p { margin-top: 0; }
.founder-back .eyebrow { margin-bottom: 2px; }
.founder-back .nowrap { white-space: nowrap; }
.bio-logo { display: inline-block; height: 1.1em; width: auto; margin: 0 1px 0 2px; vertical-align: -.2em; }
.founder-bio-btn { margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: var(--slate-bg); color: var(--navy); font-size: 13px; font-weight: 500; transition: background .2s; }
.founder-bio-btn:hover { background: #d9d8e6; }
.founder-bio-btn:focus-visible { outline: 2px solid var(--nhs-blue); outline-offset: 2px; }
.founder-back-btn { align-self: flex-start; margin: auto 0 0; }
@media (prefers-reduced-motion: reduce) { .founder-flip { transition: none; } }
@media (max-width: 600px) { .ab-story .founder-back p { font-size: 13.5px; } }
.founder-photo { aspect-ratio: 820 / 1093; overflow: hidden; border-radius: var(--radius-m); background: linear-gradient(165deg, #f9bc9f 0%, var(--peach) 100%); }
.founder-photo img { display: block; width: 100%; height: 100%; }
.founder-tag { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 20px; border-radius: var(--radius-m); background: var(--surface); box-shadow: 0 0 0 1px var(--hair), 0 10px 24px -14px rgba(39, 37, 30, .35); text-align: left; }
.founder-name { font: 400 26px/1.1 var(--serif); letter-spacing: -.02em; }
.founder-role { font-size: 15px; color: var(--ink-70); }
@media (min-width: 900px) {
  .ab-story { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 64px; align-items: center; max-width: 1040px; text-align: left; }
  .founder-card { width: 100%; margin: 0; }
}
