/* About / founder — Figma 247:8588 */

/* ——— Hero 247:8589 ——— */
.sm-about-hero {
  position: relative;
  min-height: 854px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #d6d6d6;
}

.sm-about-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sm-about-hero__bg picture {
  display: contents;
}

.sm-about-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: 68% center;
}

.sm-about-hero__fade {
  position: absolute;
  z-index: 1;
  left: -6px;
  top: 0;
  width: min(750px, 52%);
  height: 100%;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 53.256%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.sm-about-hero .sm-container {
  position: relative;
  z-index: 2;
}

.sm-about-hero__content {
  max-width: 616px;
  padding: 240px 0 180px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.sm-about-hero__eyebrow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--sm-font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 20px;
  color: var(--sm-grey-600);
}

.sm-about-hero__spark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.sm-about-hero__title {
  margin: 0;
  font-family: var(--sm-font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1;
  color: var(--sm-grey-900);
}

.sm-about-hero__text {
  margin: 0;
  font-family: var(--sm-font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  color: var(--sm-grey-600);
}

/* ——— Philosophy 247:8668 ——— */
.sm-about-phil {
  background: #fff;
  padding: 101px 0;
}

.sm-about-phil__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 616px));
  gap: 48px;
  align-items: center;
  justify-content: space-between;
}

.sm-about-phil__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d6d6d6;
  aspect-ratio: 616 / 514;
  background: var(--sm-main-100);
}

.sm-about-phil__media picture {
  display: contents;
}

.sm-about-phil__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.sm-about-phil__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 616px;
}

.sm-about-phil__eyebrow,
.sm-about-mission__eyebrow,
.sm-about-story__eyebrow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--sm-font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 20px;
  color: var(--sm-grey-600);
}

.sm-about-phil__spark,
.sm-about-mission__spark,
.sm-about-story__spark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* Second star only on mobile (Figma dual-star eyebrows) */
.sm-about-phil__spark--end,
.sm-about-mission__spark--end,
.sm-about-story__spark--end {
  display: none;
}

.sm-about-phil__title,
.sm-about-mission__title {
  margin: 0;
  font-family: var(--sm-font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 52px;
  color: var(--sm-grey-900);
}

.sm-about-phil__text,
.sm-about-mission__text,
.sm-about-story__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sm-about-phil__text p,
.sm-about-mission__text p,
.sm-about-story__text p {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  color: var(--sm-grey-600);
}

/* ——— Values 269:12335 ——— */
.sm-about-values {
  background: #fafafa;
  padding: 102px 0;
}

.sm-about-values__head {
  max-width: 616px;
  margin: 0 auto 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.sm-about-values__head .sm-eyebrow__text {
  font-size: 24px;
  font-weight: 700;
  line-height: 20px;
}

.sm-about-values__title {
  margin: 0;
  font-family: var(--sm-font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 52px;
  color: var(--sm-grey-900);
  text-align: center;
}

.sm-about-values__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.sm-about-values__card {
  background: #fff;
  border: 1px solid var(--sm-main-900-a10);
  border-radius: 16px;
  padding: 16px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  height: 100%;
}

.sm-about-values__num {
  margin: 0;
  font-family: var(--sm-font-ui);
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  background-image: linear-gradient(180deg, #cfefe4 0%, #b5f0dc 101.55%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sm-about-values__card-title {
  margin: 0;
  font-family: var(--sm-font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: var(--sm-grey-900);
}

.sm-about-values__card-text {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  color: var(--sm-grey-600);
}

/* ——— Story 329:14726 ——— */
.sm-about-story {
  padding: 101px 0;
  background-image: linear-gradient(93.94deg, #fefefe 0%, #f6f7f7 100%);
  overflow: visible;
}

/* Figma 329:14726 — stage has top room for giraffe head */
.sm-about-story__stage {
  position: relative;
  padding-top: 102px;
  overflow: visible;
  min-height: calc(102px + 578px);
}

/* White plate: clips kids + lines; giraffe is a sibling so it can overflow */
.sm-about-story__card {
  position: relative;
  z-index: 1;
  min-height: 578px;
  padding: 32px;
  border: 1px solid var(--sm-main-900-a10);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

/* Rotated lines pattern — right half of card only */
.sm-about-story__lines {
  position: absolute;
  inset: -40% 0 -40% 35%;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-about-story__lines img {
  width: 140%;
  height: 140%;
  max-width: none;
  object-fit: cover;
  transform: rotate(-90deg);
  opacity: 0.9;
}

/* Yellow text — inside card (desktop absolute); giraffe overlaps from outside */
.sm-about-story__copy {
  position: absolute;
  left: 32px;
  top: 32px;
  z-index: 2;
  width: min(616px, calc(100% - 64px));
  min-height: 514px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 24px;
  background-image: linear-gradient(92.89deg, #fffee9 0%, #fff1a4 98%);
  box-sizing: border-box;
}

.sm-about-story__title {
  margin: 0;
  font-family: var(--sm-font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 52px;
  color: var(--sm-grey-900);
}

/* Kids — clipped by card; Figma ~742 frame, dialed to visible scale */
.sm-about-story__kids {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(500px, 47%);
  height: 96%;
  pointer-events: none;
  background: transparent;
  overflow: hidden;
}

.sm-about-story__kids picture {
  position: absolute;
  inset: 0;
  display: block;
}

.sm-about-story__kids-img,
.sm-about-story__kids img {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  top: auto !important;
  width: auto !important;
  height: 100% !important;
  max-width: none !important;
  transform: translateX(-50%);
  display: block;
  object-fit: contain !important;
  object-position: center bottom !important;
}

/* Giraffe — overflows above the card and sits on top of kids */
.sm-about-story__giraffe {
  position: absolute;
  right: clamp(16px, 5vw, 89px);
  bottom: 0;
  z-index: 3;
  width: min(668px, 52%);
  height: auto;
  max-width: none;
  pointer-events: none;
  display: block;
}

/* Figma mobile paint — desktop off */
.sm-about-story__paint-m {
  display: none;
}

/* ——— Mission 316:14273 ——— */
.sm-about-mission {
  padding: 101px 0;
  background-image: linear-gradient(95deg, #fefefe 0%, #f6f7f7 100%);
}

.sm-about-mission__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 616px));
  gap: 48px;
  align-items: center;
  justify-content: space-between;
}

.sm-about-mission__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 616 / 514;
  background: var(--sm-main-100);
}

.sm-about-mission__media picture {
  display: contents;
}

.sm-about-mission__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-about-mission__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 616px;
}

/* ——— Quote 273:13676 ——— */
/* Mint card + alpha family cutout on the right (heads above card) */
.sm-about-quote {
  background: #fff;
  padding: 102px 0 120px;
  overflow: visible;
}

.sm-about-quote__inner {
  position: relative;
  min-height: 224px;
  padding-top: 84px; /* room for heads above the mint card */
  overflow: visible;
}

.sm-about-quote__card {
  position: relative;
  z-index: 1;
  width: min(1104px, 100%);
  min-height: 224px;
  padding: 32px;
  padding-right: min(440px, 42%);
  border-radius: 16px;
  border: 1px solid var(--sm-main-900-a10);
  background-image: linear-gradient(102deg, var(--sm-main-100) 0%, var(--sm-main-300) 100%);
  overflow: visible;
}

.sm-about-quote__mark {
  position: absolute;
  width: 15px;
  height: 10px;
  z-index: 2;
}

.sm-about-quote__mark--start {
  top: 24px;
  left: 32px;
}

.sm-about-quote__mark--end {
  bottom: 28px;
  right: 44%;
  transform: rotate(180deg);
}

.sm-about-quote__text {
  position: relative;
  z-index: 2;
  max-width: 528px;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sm-about-quote__text p {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  color: var(--sm-grey-600);
}

.sm-about-quote__media {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: min(407px, 38%);
  height: 308px;
  pointer-events: none;
  background: transparent;
  overflow: visible;
}

.sm-about-quote__media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.sm-about-quote__img,
.sm-about-quote__media img {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  height: 140% !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
  object-fit: contain !important;
  object-position: right bottom !important;
}

/* Figma mobile paint — desktop off */
.sm-about-quote__paint-m {
  display: none;
}

@media (max-width: 1100px) {
  .sm-about-phil__grid,
  .sm-about-mission__grid,
  .sm-about-values__grid,
  .sm-about-story__card {
    grid-template-columns: 1fr;
  }

  .sm-about-hero {
    min-height: 0;
  }

  .sm-about-hero__content {
    padding: 140px 0 64px;
    max-width: 100%;
  }

  .sm-about-hero__fade {
    width: 85%;
  }

  .sm-about-story__stage {
    padding-top: 48px;
    min-height: 0;
  }

  .sm-about-story__card {
    min-height: 0;
    padding: 32px 32px 260px;
    background: linear-gradient(91.14deg, #fffee9 0%, #fff1a4 98%);
  }

  .sm-about-story__copy {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .sm-about-story__kids {
    right: 50%;
    left: auto;
    transform: translateX(50%);
    width: min(320px, 85%);
    height: 260px;
    bottom: 0;
  }

  /* Hide giraffe on tablet; mobile ≤430 restores Frame 165 giraffe */
  .sm-about-story__giraffe {
    display: none;
  }

  .sm-about-quote {
    padding-bottom: 80px;
  }

  .sm-about-quote__inner {
    padding-top: 64px;
  }

  .sm-about-quote__card {
    padding-right: 32px;
    padding-bottom: 200px;
  }

  .sm-about-quote__media {
    right: 50%;
    transform: translateX(50%);
    width: min(320px, 80%);
    height: 260px;
  }

  .sm-about-quote__mark--end {
    right: 32px;
  }
}

/* About mobile 390 — Figma 493:9942 (hero)
 * Photo 503:15556: x −466 / y 0, 1015.415×689
 * Content wrap: inset 23, bottom 48; title 40/38; btn 197×51 centered
 */
@media (max-width: 430px) {
  .sm-about-hero {
    min-height: 0;
    aspect-ratio: 390 / 832;
    display: flex;
    align-items: flex-end;
  }

  .sm-about-hero .sm-container {
    width: min(100% - 46px, var(--sm-container));
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .sm-about-hero__bg picture {
    display: contents;
  }

  /* Figma 503:15556 inside clip frame 493:9944 (390×585) */
  .sm-about-hero__img {
    inset: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    height: calc(100vw * 585 / 390);
    max-width: none;
    object-fit: cover;
    object-position: center top;
  }

  .sm-about-hero__fade {
    width: 100%;
    left: 0;
    /* Figma 493:9949 — soft white rise under content, keep faces clear */
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 42%,
      rgba(255, 255, 255, 0.25) 55%,
      rgba(255, 255, 255, 0.75) 68%,
      #fff 78%
    );
  }

  .sm-about-hero__content {
    padding: 0 0 48px;
    max-width: 100%;
    width: 100%;
    text-align: center;
    align-items: center;
    gap: 24px;
  }

  /* Mobile Figma hero has no eyebrow — only title + text + CTA */
  .sm-about-hero__eyebrow {
    display: none;
  }

  .sm-about-hero__title {
    font-size: 40px;
    line-height: 38px;
  }

  .sm-about-hero__text {
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
    font-weight: 500;
  }

  .sm-about-hero__actions {
    width: auto;
    margin: 0;
  }

  /* Figma 498:12045 — mint pill 197×51, not full-bleed */
  .sm-about-hero__content .sm-btn {
    width: auto;
    min-width: 197px;
    justify-content: center;
    min-height: 51px;
    height: 51px;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
  }

  .sm-about-phil,
  .sm-about-mission,
  .sm-about-values,
  .sm-about-quote {
    padding: 48px 0;
  }

  /* Philosophy mobile — Figma 496:10442: dual-star eyebrow + centered copy */
  .sm-about-phil .sm-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sm-about-phil__grid {
    gap: 32px;
  }

  .sm-about-phil__body {
    max-width: none;
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .sm-about-phil__eyebrow {
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 16px;
    line-height: 20px;
  }

  .sm-about-phil__spark--end {
    display: block;
  }

  .sm-about-phil__title {
    font-size: 32px;
    line-height: 38px;
    text-align: center;
    width: 100%;
  }

  .sm-about-phil__text {
    width: 100%;
    align-items: center;
  }

  .sm-about-phil__text p {
    text-align: center;
  }

  /* Mission mobile — Figma 498:11726 Frame 162 */
  .sm-about-mission {
    padding: 48px 16px;
    background-image: linear-gradient(91.19deg, #fefefe 0%, #f6f7f7 100%);
  }

  .sm-about-mission .sm-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .sm-about-mission__grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
    justify-content: flex-start;
  }

  .sm-about-mission__media {
    width: 100%;
    aspect-ratio: 358 / 298;
    border-radius: 16px;
    overflow: hidden;
    background: var(--sm-main-100);
  }

  .sm-about-mission__media picture {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
  }

  /* Pre-baked Figma crop (mission-m) fills the frame */
  .sm-about-mission__media img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .sm-about-mission__body {
    max-width: none;
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .sm-about-mission__eyebrow {
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 16px;
    line-height: 20px;
  }

  .sm-about-mission__spark--end {
    display: block;
  }

  .sm-about-mission__title {
    font-size: 32px;
    line-height: 38px;
    text-align: center;
    width: 100%;
  }

  .sm-about-mission__text {
    width: 100%;
    align-items: center;
  }

  .sm-about-mission__text p {
    text-align: center;
  }

  /* Values mobile — Figma 496:10458 Frame 164 */
  .sm-about-values {
    padding: 48px 16px;
    background-image: linear-gradient(90.94deg, #fefefe 0%, #f6f7f7 100%);
  }

  .sm-about-values .sm-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .sm-about-values__head {
    margin: 0 0 32px;
    gap: 12px;
    max-width: none;
    width: 100%;
  }

  .sm-about-values__head .sm-eyebrow {
    justify-content: center;
  }

  .sm-about-values__head .sm-eyebrow__text {
    font-size: 16px;
    line-height: 20px;
  }

  .sm-about-values__title {
    font-size: 32px;
    line-height: 38px;
  }

  .sm-about-values__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sm-about-values__card {
    padding: 16px 32px;
  }

  .sm-about-mission__title,
  .sm-about-values__title,
  .sm-about-story__title {
    font-size: 32px;
    line-height: 38px;
    text-align: center;
  }

  .sm-about-mission__head .sm-eyebrow,
  .sm-about-values__head .sm-eyebrow {
    justify-content: center;
  }

  .sm-about-mission__head,
  .sm-about-values__head {
    text-align: center;
  }

  /* Story mobile — Figma 498:11303 exact paint (story-card-m) */
  .sm-about-story {
    padding: 48px 16px;
    background: #fff;
  }

  .sm-about-story .sm-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .sm-about-story__stage {
    position: relative;
    padding-top: 0;
    min-height: 0;
    overflow: visible;
  }

  .sm-about-story__card {
    position: relative;
    z-index: 1;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
  }

  .sm-about-story__paint-m {
    display: block;
    width: 100%;
    margin: 0;
    line-height: 0;
  }

  .sm-about-story__paint-m img {
    display: block;
    width: 100%;
    height: auto;
  }

  .sm-about-story__lines,
  .sm-about-story__kids,
  .sm-about-story__giraffe {
    display: none !important;
  }

  /* Keep copy in DOM for SEO / a11y; paint carries the pixels */
  .sm-about-story__copy {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    background: none !important;
    min-height: 0 !important;
  }

  .sm-about-quote__card {
    padding: 32px 16px 200px;
  }

  .sm-about-quote__mark--end {
    right: 16px;
  }

  /* Quote mobile — Figma 498:11791 Frame 166 exact paint */
  .sm-about-quote {
    padding: 48px 16px;
    background: #fff;
    overflow: visible;
  }

  .sm-about-quote .sm-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .sm-about-quote__paint-m {
    display: block;
    width: 100%;
    margin: 0;
    line-height: 0;
  }

  .sm-about-quote__paint-m img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
  }

  .sm-about-quote__inner {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    min-height: 0 !important;
  }
}
