/* ==========================================================================
   About page. Page-specific rules only; tokens and shared components
   (.page-hero, .cloud, .cloudline, .card, .chip, .btn, .appstore, .reveal)
   live in /css/site.css.
   ========================================================================== */

/* ---------- Hero ---------- */
.about-hero { padding-bottom: clamp(150px, 13vw, 190px); }
.about-hero__inner { position: relative; z-index: 2; }
.about-hero h1 { margin-bottom: 0.3em; }
.about-hero .lede { margin-inline: auto; max-width: 44ch; }

.about-hero__cloud--1 { --w: 240px; --o: 0.9; --d: 70s; top: 10%; left: -70px; }
.about-hero__cloud--2 { --w: 210px; --o: 0.8; --d: 56s; top: 44%; right: -60px; }
.about-hero__cloud--3 { --w: 120px; --o: 0.6; --d: 84s; top: 7%; right: 20%; }

.about-hero__spark {
  position: absolute; z-index: 1; width: 22px; height: auto; pointer-events: none;
  animation: twinkle 3.2s ease-in-out infinite;
}
.about-hero__spark--1 { top: 26%; left: 15%; }
.about-hero__spark--2 { top: 62%; right: 22%; width: 16px; animation-delay: 1.4s; }

.about-hero__coin {
  position: absolute; z-index: 1; left: 9%; top: 50%;
  --rot: -8deg;
  animation: bob-rot 5s ease-in-out infinite;
}

/* Waddo pops up out of the cloud line */
.about-hero__peek {
  position: absolute; z-index: 0; bottom: 0; right: clamp(16px, 8vw, 150px);
  width: clamp(112px, 12.5vw, 180px); height: auto;
  transform: translateY(16%);
  filter: drop-shadow(0 14px 20px rgba(3, 25, 69, 0.18));
  animation: about-peek 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes about-peek {
  0%, 100% { transform: translateY(16%); }
  50% { transform: translateY(9%); }
}

@media (max-width: 899px) {
  .about-hero__coin { display: none; }
}
@media (max-width: 760px) {
  .about-hero__cloud--3, .about-hero__spark--2 { display: none; }
  .about-hero__cloud--1 { --w: 170px; top: 4%; }
  .about-hero__cloud--2 { --w: 140px; top: auto; bottom: 20%; right: -76px; }
  .about-hero__spark--1 { top: 8%; left: auto; right: 12%; }
  .about-hero__peek { right: auto; left: 50%; translate: -50% 0; }
}

/* ---------- Founder: family illustration + story ---------- */
.about-founder { overflow-x: clip; }
.about-founder__grid {
  display: grid;
  gap: clamp(64px, 7vw, 96px);
  align-items: start;
}
@media (min-width: 900px) {
  .about-founder__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
@media (min-width: 900px) and (min-height: 720px) {
  .about-founder__media { position: sticky; top: calc(var(--nav-h) + 40px); }
}

.founder-photo {
  --bw: clamp(112px, 13vw, 176px); /* peeking bunny width */
  position: relative;
  margin: calc(var(--bw) * 0.46) 0 0;
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease-pop);
}
.founder-photo:hover { transform: rotate(-0.75deg); }

.founder-photo__frame {
  position: relative; z-index: 1;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 10px solid #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 8px 0 #cfe0f3, var(--shadow-float);
}

.founder-photo__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* Hops peeks over the top edge of the frame */
.founder-photo__peek {
  position: absolute; z-index: 0;
  top: calc(var(--bw) * -0.53); right: 13%;
  width: var(--bw); height: auto;
  transform-origin: 50% 100%;
  animation: about-wiggle 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes about-wiggle {
  0%, 68%, 100% { transform: translateY(0) rotate(0); }
  76% { transform: translateY(-6px) rotate(-4deg); }
  84% { transform: translateY(-2px) rotate(3deg); }
  92% { transform: translateY(0) rotate(-1deg); }
}

.founder-photo__coin {
  position: absolute; z-index: 2;
  top: -22px; left: clamp(-22px, -2vw, -8px);
  width: clamp(48px, 5vw, 64px); height: auto;
  --rot: -14deg;
  animation: bob-rot 4.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 12px rgba(86, 39, 2, 0.28));
}

.founder-photo__sticker {
  position: absolute; z-index: 2;
  right: clamp(12px, 5%, 32px); bottom: -22px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: var(--r-pill);
  background: var(--gold); color: var(--ink);
  font-size: 15px; font-weight: 900; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 4px 0 var(--gold-edge), 0 14px 24px -10px rgba(86, 39, 2, 0.5);
  transform: rotate(4deg);
}
.founder-photo__sticker img {
  width: 30px; height: 30px; padding: 6px;
  object-fit: contain;
  background: var(--navy);
  border-radius: 50%;
}

/* Story */
.about-founder__story .chip { margin-bottom: 16px; }
.about-founder__story h2 { margin-bottom: 0.5em; }
.about-founder__story p { max-width: 58ch; }
.about-founder__story strong { color: var(--ink); font-weight: 900; }
.about-founder__intro {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  font-weight: 700; line-height: 1.5;
  color: var(--ink-2);
}

.about-founder__kicker {
  margin-top: 1.4em;
  padding: 16px 22px;
  background: var(--cream);
  border-radius: var(--r-md);
  box-shadow: inset 0 -4px 0 rgba(86, 39, 2, 0.12);
  color: var(--reward);
  font-size: clamp(1.05rem, 1.4vw, 1.15rem); font-weight: 800; line-height: 1.45;
}

@media (max-width: 899px) {
  .about-founder__media { max-width: 620px; width: 100%; margin-inline: auto; }
  .founder-photo { transform: rotate(-1.5deg); }
}

/* ---------- Values ---------- */
.about-values {
  --scallop: var(--sky-4);
  background: linear-gradient(180deg, var(--sky-4) 0%, #dcf2ff 100%);
}
.about-values__head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); }
.about-values__head .lede { margin: 0 auto; max-width: 44ch; }

.values-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: clamp(18px, 2vw, 24px);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1160px) { .values-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.values-grid > li:nth-child(2) { --delay: 0.08s; }
.values-grid > li:nth-child(3) { --delay: 0.16s; }
.values-grid > li:nth-child(4) { --delay: 0.24s; }

.value-card {
  --tint: var(--mint);
  --tint-edge: #b3e6c6;
  height: 100%;
  display: flex; flex-direction: column;
  padding: 12px 12px 24px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: inset 0 -5px 0 var(--edge), var(--shadow-card);
  transition: transform 0.35s var(--ease-pop), box-shadow 0.35s var(--ease-out);
}
.value-card:hover { transform: translateY(-6px); box-shadow: inset 0 -5px 0 var(--edge), var(--shadow-float); }
.value-card--sky { --tint: #dcf1ff; --tint-edge: #b3d9f5; }
.value-card--lav { --tint: var(--lav); --tint-edge: #d2c7f7; }
.value-card--peach { --tint: var(--peach); --tint-edge: #f3c89e; }

.value-card__art {
  position: relative;
  display: grid; place-items: center;
  height: 172px; margin-bottom: 20px;
  border-radius: 22px;
  background:
    radial-gradient(90% 70% at 50% 105%, rgba(255, 255, 255, 0.85), transparent 70%),
    var(--tint);
  box-shadow: inset 0 -4px 0 var(--tint-edge);
  overflow: hidden;
}
.value-card__art img { width: 156px; height: 156px; object-fit: contain; transition: transform 0.45s var(--ease-pop); }
.value-card:hover .value-card__art img { transform: translateY(-4px) scale(1.04); }

.value-card__art--tiles img {
  grid-area: 1 / 1;
  width: 100px; height: 100px;
  border-radius: 22%;
  box-shadow: 0 5px 0 rgba(3, 25, 69, 0.12), 0 14px 22px -12px rgba(3, 25, 69, 0.45);
}
.value-card__art--tiles img:first-child { z-index: 1; transform: translate(-46px, -6px) rotate(-8deg); }
.value-card__art--tiles img:last-child { transform: translate(46px, 8px) rotate(7deg); }
.value-card:hover .value-card__art--tiles img:first-child { transform: translate(-50px, -10px) rotate(-11deg); }
.value-card:hover .value-card__art--tiles img:last-child { transform: translate(50px, 4px) rotate(10deg); }

.value-card__art--buddies { display: flex; justify-content: center; align-items: center; }
.value-card__art--buddies img {
  width: 62px; height: 62px;
  margin-left: -12px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 10px 18px -10px rgba(3, 25, 69, 0.5);
}
.value-card__art--buddies img:first-child { margin-left: 0; }
.value-card__art--buddies img:nth-child(odd) { transform: translateY(-8px); }
.value-card__art--buddies img:nth-child(even) { transform: translateY(8px); }
.value-card:hover .value-card__art--buddies img:nth-child(odd) { transform: translateY(-12px); }
.value-card:hover .value-card__art--buddies img:nth-child(even) { transform: translateY(12px); }

.value-card__title { font-size: clamp(1.3rem, 1.8vw, 1.45rem); margin: 0 10px 0.45em; }
.value-card p { margin: 0 10px 14px; font-size: 16px; line-height: 1.55; }
.value-card .value-card__note { margin-top: -4px; font-size: 14px; font-weight: 700; color: var(--muted); }
.value-card__chips {
  list-style: none; padding: 0;
  margin: auto 10px 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}

/* ---------- Note from Ted ---------- */
.about-note {
  --scallop: var(--cloud);
  background: var(--cloud);
  padding-top: calc(var(--section-y) + 12px);
}
.fridge-note {
  position: relative;
  margin: 0;
  padding: clamp(52px, 6vw, 72px) clamp(22px, 6vw, 72px) clamp(32px, 4vw, 48px);
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: inset 0 -6px 0 var(--edge), var(--shadow-float);
  text-align: center;
  transform: rotate(-1deg);
}
/* A fridge magnet holding the note up */
.fridge-note__magnet {
  position: absolute; top: -24px; left: 50%;
  width: 54px; height: 54px; margin-left: -27px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #7af2ad 0 10%, #19c264 32%, var(--green) 62%);
  box-shadow: inset 0 -5px 0 var(--green-edge), 0 12px 18px -8px rgba(0, 80, 30, 0.5);
}
.fridge-note__mark { width: 52px; height: 39px; margin: 0 auto 20px; color: var(--gold); }
.fridge-note__quote { margin: 0; }
.fridge-note__quote p {
  margin: 0 auto; max-width: 36ch;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem); font-weight: 800; line-height: 1.5; letter-spacing: -0.01em;
  color: var(--ink);
}
.fridge-note__sig {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 28px; padding: 6px 18px 6px 6px;
  background: var(--surface-alt);
  border-radius: var(--r-pill);
  font-size: 16px; font-weight: 800; line-height: 1.3; text-align: left;
  color: var(--ink-2);
}
.fridge-note__sig img { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-soft); }
@media (max-width: 520px) {
  .fridge-note__sig { flex-direction: column; gap: 8px; padding: 0; background: none; text-align: center; }
}

/* ---------- CTA band ---------- */
.about-cta { padding-top: 0; padding-bottom: clamp(96px, 11vw, 150px); }
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: end;
  padding: clamp(44px, 6vw, 76px) clamp(22px, 5vw, 72px) 0;
  border-radius: clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 58%, var(--sky-3) 100%);
  box-shadow: inset 0 -6px 0 rgba(3, 25, 69, 0.1), var(--shadow-float);
}
@media (min-width: 900px) {
  .cta-band { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: 24px; }
}
.cta-band__cloud--1 { --w: 200px; --o: 0.55; top: 6%; right: 4%; z-index: 0; }
.cta-band__cloud--2 { --w: 110px; --o: 0.45; top: 9%; left: 44%; z-index: 0; }

.cta-band__copy { position: relative; z-index: 3; padding-bottom: clamp(36px, 6vw, 88px); }
.cta-band h2 { margin-bottom: 0.35em; }
.cta-band .lede { max-width: 36ch; margin-bottom: 0; color: var(--ink-2); }
.cta-band__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 18px;
  margin-top: 28px;
}

.cta-band__cast {
  position: relative; z-index: 1;
  justify-self: center; align-self: end;
  width: min(100%, 430px);
}
.cta-band__cast::before {
  /* soft sunny glow behind the buddies */
  content: ''; position: absolute; z-index: -1;
  left: -12%; right: -12%; top: -18%; bottom: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 100%);
}
.cta-band__buddies { position: relative; width: 100%; height: auto; margin-bottom: clamp(14px, 2.4vw, 30px); }

/* white cloud bank the buddies stand in */
.cta-band .cloudline { z-index: 2; color: #fff; height: clamp(44px, 5vw, 72px); }

@media (max-width: 899px) {
  .cta-band { text-align: center; }
  .cta-band .lede { margin-inline: auto; }
  .cta-band__actions { justify-content: center; }
  .cta-band__cast { width: min(88%, 340px); margin-top: 8px; }
  .cta-band__cloud--1 { right: 4%; top: 4%; --w: 140px; }
}
@media (max-width: 400px) {
  .cta-band .appstore { height: 56px; padding: 0 18px 0 14px; }
  .cta-band .appstore strong { font-size: 21px; }
}

.cta-band__coin {
  position: absolute; z-index: 2;
  width: clamp(30px, 3.4vw, 44px); height: auto;
  filter: drop-shadow(0 8px 10px rgba(86, 39, 2, 0.25));
  animation: bob-rot 4.6s ease-in-out infinite;
}
.cta-band__coin--1 { --rot: -14deg; top: -4%; left: 4%; }
.cta-band__coin--2 { --rot: 12deg; top: -16%; left: 46%; width: clamp(24px, 2.6vw, 34px); animation-delay: -1.6s; }
.cta-band__coin--3 { --rot: -8deg; top: 6%; right: 2%; animation-delay: -3s; }
