/* Tailwise — About page (pages/about.html). Prefix: .ab-*
   Loads after brand.css. Overrides the Serenity .ab-* rules in base.css for this page only. */

/* ───────── Hero: sun panel + rotated stickers ───────── */
.ab-hero { justify-content: center; }
.ab-hero p { font-size: 20px; line-height: 1.5; font-weight: 600; max-width: 560px; }
.ab-sticker {
  position: absolute; z-index: 1; display: inline-grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 22px; line-height: 1; letter-spacing: -.4px;
  border: var(--outline); box-shadow: var(--pop-sm); pointer-events: none;
}
.ab-sticker--l { left: 7%; top: 64px; padding: 14px 20px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); transform: rotate(-9deg); }
.ab-sticker--r { right: 7%; bottom: 56px; width: 116px; height: 116px; border-radius: 50%; background: var(--peach); color: var(--white); transform: rotate(10deg); }
@media (max-width: 1024px) { .ab-sticker--l { left: 4%; top: 36px; } .ab-sticker--r { right: 4%; bottom: 28px; width: 96px; height: 96px; font-size: 19px; } }
@media (max-width: 820px) { .ab-sticker { display: none; } }

/* ───────── Story collage ───────── */
.ab-story-grid { align-items: center; }
.ab-story-photo { border-radius: var(--r-lg); background: var(--sand); }
.ab-story-mid { position: relative; }
.ab-story-photo--tall { border-radius: 999px 999px 36px 36px; object-position: 50% 40%; }
.ab-story-badge {
  position: absolute; left: -22px; bottom: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 128px; height: 128px; border-radius: 50%; background: var(--butter); color: var(--ink); border: var(--outline); box-shadow: var(--pop-sm);
  font-size: 13px; font-weight: 700; line-height: 1.2; transform: rotate(-8deg);
}
.ab-story-badge b { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.8px; line-height: 1; }
.ab-story-card { color: var(--ink); border: var(--outline); min-height: 0; padding: 28px 30px 32px; gap: 14px; justify-content: flex-start; }
.ab-story-card .h4 { color: var(--ink); font-size: 23px; line-height: 1.3; }
.ab-story-card:hover { transform: translate(-3px, -3px); box-shadow: var(--pop); }
.ab-story-card--sun { background: var(--butter); }
.ab-story-card--sky { background: var(--sky); }
.ab-story-tag {
  align-self: flex-start; padding: 3px 12px; border-radius: var(--r-pill); background: var(--ink); color: var(--white);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

/* Who we are — heading + Pepper polaroid | founder story */
.ab-who { grid-template-columns: minmax(0, 1fr) minmax(0, 680px); gap: 56px; max-width: none; align-items: start; }
.ab-who-side { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
.ab-pepper {
  margin: 0 0 0 12px; width: 260px; padding: 12px 12px 0; background: var(--white); border: var(--outline); box-shadow: var(--pop);
  border-radius: 6px; transform: rotate(-4deg); transition: transform .4s var(--ease);
}
.ab-pepper:hover { transform: rotate(-1deg) translateY(-4px); }
.ab-pepper img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 8; object-fit: cover; border-radius: 2px; }
.ab-pepper figcaption { padding: 12px 4px 16px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--ink); }
.ab-who-text { gap: 22px; color: var(--cocoa); font-size: 17px; }
.ab-who-text strong { color: var(--ink); font-weight: 700; }
.ab-who-text .ab-who-lead { font-family: var(--font-display); font-size: 28px; line-height: 1.35; letter-spacing: -.5px; color: var(--ink); font-weight: 500; }
.ab-who-text .ab-who-lead strong { font-weight: 600; color: var(--peach); }

@media (max-width: 1024px) {
  .ab-story-badge { width: 108px; height: 108px; left: -12px; font-size: 12px; }
  .ab-story-badge b { font-size: 25px; }
  .ab-story-card { padding: 22px 22px 26px; }
  .ab-story-card .h4 { font-size: 20px; }
  .ab-who { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 40px; }
  .ab-pepper { width: 230px; }
  .ab-who-text .ab-who-lead { font-size: 24px; }
}
@media (max-width: 820px) {
  .ab-story-mid { grid-column: 1 / -1; order: 3; }
  .ab-story-mid .ab-story-photo--tall { aspect-ratio: 16 / 11; height: auto; border-radius: 240px 240px 32px 32px; object-position: 50% 45%; }
  .ab-story-badge { left: auto; right: 16px; bottom: 20px; }
  .ab-who { grid-template-columns: 1fr; gap: 28px; }
  .ab-who-side { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .ab-pepper { width: 190px; margin: 0 8px 0 0; }
}
@media (max-width: 560px) {
  .ab-story-mid .ab-story-photo--tall { aspect-ratio: 4 / 5; border-radius: 999px 999px 32px 32px; }
  .ab-who-side { flex-direction: column; align-items: flex-start; }
  .ab-pepper { width: 200px; margin-left: 8px; }
  .ab-who-text { font-size: 16px; }
  .ab-who-text .ab-who-lead { font-size: 22px; }
}

/* ───────── Stats: colour-blocked tiles ───────── */
.ab-stats { background: none; padding: 0; border-radius: 0; margin-top: 120px; }
.ab-stats .metrics-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; align-items: stretch; }
.ab-stats .metrics-stats > div, .ab-stats .metrics-stats > div:last-child { width: auto; max-width: none; }
.ab-stat { padding: 32px 28px 30px; border: var(--outline); border-radius: var(--r-lg); gap: 10px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ab-stat:hover { transform: translate(-3px, -3px); box-shadow: var(--pop); }
.ab-stat:nth-child(odd) { rotate: -1.2deg; } .ab-stat:nth-child(even) { rotate: 1deg; }
.ab-stat--sun { background: var(--butter); } .ab-stat--mint { background: var(--mint); } .ab-stat--sky { background: var(--sky); } .ab-stat--peach { background: var(--peach); }
.ab-stats dt { font-weight: 600; font-size: 64px; color: var(--ink); font-variation-settings: "SOFT" 100; }
.ab-stats dt i { font-style: normal; font-size: .62em; margin-left: 4px; vertical-align: .18em; }
.ab-stats dd { font-size: 15px; font-weight: 600; color: var(--ink); max-width: 220px; }
.ab-stat--peach dt, .ab-stat--peach dd { color: var(--white); }
@media (max-width: 1024px) {
  .ab-stats { margin-top: 96px; padding: 0; }
  .ab-stats .metrics-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 640px) {
  .ab-stats { margin-top: 72px; padding: 0; }
  .ab-stats .metrics-stats { gap: 14px; }
  .ab-stat { padding: 22px 18px; }
  .ab-stats dt { font-size: 40px; letter-spacing: -1px; }
  .ab-stats dd { font-size: 13.5px; }
}

/* ───────── Slogan ───────── */
.ab-slogan .slogan-text { font-weight: 500; }
.ab-slogan .slogan-photo { border: var(--outline); object-position: 50% 30%; }
.ab-slogan .slogan-tag { border: var(--outline); box-shadow: var(--pop-sm); color: var(--ink); font-weight: 800; }
.ab-slogan .slogan-tag--peach { color: var(--white); }
.ab-slogan .ab-tag--mint { background: var(--mint); }

/* ───────── Values ticker ───────── */
.ab-ticker { margin-top: 120px; }
@media (max-width: 1024px) { .ab-ticker { margin-top: 96px; } }
@media (max-width: 640px) { .ab-ticker { margin-top: 64px; } }

/* ───────── Why Tailwise ───────── */
.ab-why { margin-top: 140px; }
.ab-why .why-card { min-height: 0; padding: 36px 34px 38px; gap: 28px; }
.ab-why-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: var(--outline);
  font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); background: var(--butter);
}
.ab-why-card:nth-child(6n + 2) .ab-why-num { background: var(--sky); }
.ab-why-card:nth-child(6n + 3) .ab-why-num { background: var(--mint); }
.ab-why-card:nth-child(6n + 4) .ab-why-num { background: var(--peach); color: var(--white); }
.ab-why-card:nth-child(6n + 5) .ab-why-num { background: var(--lilac); }
.ab-why-card:nth-child(6n + 6) .ab-why-num { background: var(--butter); }
.ab-why .why-card h3 { font-weight: 560; }
@media (max-width: 1024px) { .ab-why { margin-top: var(--section-gap); } .ab-why .why-card { padding: 30px 26px; gap: 22px; } }
@media (max-width: 640px) { .ab-why-num { width: 48px; height: 48px; font-size: 19px; } }

/* ───────── Meet the pack: cut-out portraits on colour blocks ───────── */
.ab-team .sec-head p { max-width: 520px; }
.ab-team-grid { margin-top: 64px; gap: 24px; }
.ab-member { overflow: hidden; background: var(--white); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ab-member:hover { transform: translate(-3px, -3px); box-shadow: var(--pop); }
.ab-member-photo {
  position: relative; isolation: isolate; aspect-ratio: 1 / 1.08; margin: 0; border-radius: 0; overflow: hidden;
  border-bottom: var(--outline); background: var(--butter);
}
.ab-member-photo::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: url("../assets/brand/paw-white.svg") 0 0 / 54px; opacity: .3; transform: rotate(-10deg); }
.ab-member-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform-origin: 50% 100%; }
.ab-member:hover .ab-member-photo img { transform: scale(1.04); }
.ab-member--sky .ab-member-photo { background: var(--sky); }
.ab-member--mint .ab-member-photo { background: var(--mint); }
.ab-member--peach .ab-member-photo { background: var(--peach); }
.ab-pet {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--r-pill); box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px; font-weight: 800; transform: rotate(-4deg);
}
.ab-pet::before { content: ""; width: 14px; height: 14px; background: url("../assets/brand/mark.svg") center / contain no-repeat; }
.ab-member-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.ab-member .h4 { font-size: 22px; font-weight: 600; }
.ab-member-body p { color: var(--cocoa); font-size: 15px; font-weight: 600; line-height: 1.45; }
@media (max-width: 1024px) { .ab-team-grid { gap: 16px; } .ab-member-body { padding: 14px 16px 18px; } .ab-member .h4 { font-size: 20px; } }
@media (max-width: 820px) { .ab-team-grid { gap: 20px; } }
@media (max-width: 640px) { .ab-team-grid { margin-top: 40px; } .ab-member-body p { font-size: 13.5px; } }
@media (max-width: 400px) { .ab-team-grid { gap: 14px 12px; } .ab-member .h4 { font-size: 17px; } .ab-pet { font-size: 11.5px; left: 8px; top: 8px; padding: 3px 9px 3px 6px; } .ab-member-body { padding: 12px 12px 14px; } }

/* ───────── Testimonials: pet polaroids ───────── */
.ab-testi .testi-stage { height: 660px; margin-top: 48px; }
.ab-testi .testi-stage::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(1100px, 92vw); height: 380px; translate: -50% -50%;
  background: var(--butter); border: var(--outline); border-radius: 220px; rotate: -2deg;
}
.ab-testi .testi-card { height: auto; width: 304px; padding: 0 28px 30px; align-items: flex-start; background: var(--white); }
.ab-testi .testi-card:hover { box-shadow: var(--pop); }
.ab-testi .testi-card figure { gap: 18px; }
.ab-polaroid {
  align-self: center; width: 180px; margin-top: -58px; padding: 9px 9px 0; background: var(--white); border: var(--outline); border-radius: 4px;
  box-shadow: var(--pop-sm); rotate: -5deg; position: relative;
}
.testi-card--2 .ab-polaroid, .testi-card--4 .ab-polaroid { rotate: 4deg; }
.ab-polaroid::before { content: ""; position: absolute; left: 50%; top: -12px; width: 70px; height: 22px; translate: -50% 0; rotate: -3deg; background: rgba(255, 201, 51, .85); border: 1.5px solid rgba(20, 33, 61, .25); }
.ab-polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.ab-polaroid span { display: block; padding: 8px 2px 10px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 14.5px; line-height: 1.2; color: var(--ink); white-space: nowrap; letter-spacing: -.2px; }
.ab-testi .testi-card blockquote { font-size: 19px; line-height: 1.42; }
.ab-testi .testi-who { color: var(--peach); font-weight: 800; }
.ab-testi .testi-who::before { content: "— "; }
@media (min-width: 1025px) {
  .ab-testi .track { gap: 40px; }
  .ab-testi .testi-card--1 { --dx: 0px; --dy: 10px; }
  .ab-testi .testi-card--2 { --dx: 0px; --dy: 40px; }
  .ab-testi .testi-card--3 { --dx: 0px; --dy: -6px; }
  .ab-testi .testi-card--4 { --dx: 0px; --dy: 36px; }
}
@media (max-width: 1024px) {
  .ab-testi .testi-stage { height: auto; margin-top: 24px; }
  .ab-testi .testi-stage::before { height: 300px; }
  .ab-testi .track { padding-top: 96px; }
}
@media (max-width: 640px) {
  .ab-testi .testi-card { width: min(300px, calc(100vw - 72px)); min-height: 0; padding: 0 22px 26px; }
  .ab-testi .testi-card blockquote { font-size: 17px; }
  .ab-polaroid { width: 150px; }
}

/* ───────── Small-screen fixes ───────── */
@media (max-width: 1024px) { .ab-pepper figcaption { font-size: 17px; } }
@media (max-width: 820px) {
  .ab-slogan { align-items: center; }
  .ab-slogan .slogan-text { max-width: none; flex: 0 0 100%; }
}
.ab-slogan .slogan-text { line-height: 1.32; }
.ab-slogan .slogan-photo { margin: -10px 8px -6px; }
@media (max-width: 640px) { .ab-slogan .slogan-photo { margin: -6px 4px -2px; } }
/* the rotated, edge-bleeding ticker (brand.css) pokes ~6px past the viewport — clip it on this page */
.ab-page main { overflow-x: clip; }
