/* v8 and v9: the changes from the 11 Nov call with Haritha, layered on a saved copy of the staging About page.
   Everything is scoped to html[data-proto] so it wins over the page's own embeds without touching them. */

/* ---------- Top fold: a red ink stamp instead of the wax seal, no grain on the envelope, no yellow highlight ---------- */
html[data-proto] .is-about .about-hero_seal { width: calc(150 * var(--u)); height: calc(150 * var(--u)); border-radius: 0; background: url("../assets/stamp.svg") center / contain no-repeat; box-shadow: none; rotate: -11deg; mix-blend-mode: multiply; }
html[data-proto] .is-about .about-hero_seal::before, html[data-proto] .is-about .about-hero_seal::after { content: none; }
html[data-proto] .is-about .about-hero_env.is-front::after { content: none; }
html[data-proto] .about-hero_pin:not(.is-pinned) .about-hero_seal { width: calc(108 * var(--u)); height: calc(108 * var(--u)); }
html[data-proto] .about-hero_sheet-text { font-weight: 400; }
html[data-proto] .about-hero_sheet-text mark { font-weight: 700; }
html[data-proto] .about-hero_sheet-text mark::before { content: none; }

/* ---------- Story: the ribbon that floated in white space is gone, so the founders follow straight on ---------- */
html[data-proto] .about-story_ribbon { display: none; }
html[data-proto] .section_about-story { padding-bottom: 0; }
html[data-proto] .section_about-story .about-story_component { margin-bottom: 0; }

/* ---------- Founders: tighter above, taller cards so the photos are bigger ---------- */
html[data-proto] .section_about-founders { padding-top: 6rem; padding-bottom: 6rem; }
html[data-proto] .about-founders_card { height: 34rem; }
html[data-proto] .about-founders_photo { height: 74%; }
@media screen and (max-width: 767px) {
  html[data-proto] .section_about-founders { padding-top: 4rem; padding-bottom: 4rem; }
  html[data-proto] .about-founders_card { height: 30rem; }
}

/* ---------- Team: all five on one screen. One card is open at a time and shows that person's line. ---------- */
html[data-proto] .section_about-team { padding-top: 2rem; padding-bottom: 6rem; }
html[data-proto] .about-team_title { margin-bottom: 3rem; }
html[data-proto] .about-team_window { margin: 0; padding: 0; overflow: visible; }
/* --h is the row's height; the photo is 215% of it tall. Each card names a face in the group photo (--fx, --fy, as
   fractions of the photo) and the crop keeps that face in the same place whatever the card's width. */
html[data-proto] .about-team_strip { --h: clamp(24rem, 64vh, 31rem); --ih: calc(var(--h) * 2.15); --iw: calc(var(--ih) * 1.5); display: flex; gap: .75rem; height: var(--h); margin: 0; padding: 0; }
html[data-proto] .is-about .about-team_card:nth-child(1) .about-team_photo { --fx: .24; --fy: .17; }
html[data-proto] .is-about .about-team_card:nth-child(2) .about-team_photo { --fx: .545; --fy: .25; }
html[data-proto] .is-about .about-team_card:nth-child(3) .about-team_photo { --fx: .27; --fy: .54; }
html[data-proto] .is-about .about-team_card:nth-child(4) .about-team_photo { --fx: .74; --fy: .16; }
html[data-proto] .is-about .about-team_card:nth-child(5) .about-team_photo { --fx: .44; --fy: .57; }
html[data-proto] .about-team_card { position: relative; flex: 1 1 0; width: auto; min-width: 0; overflow: hidden; border-radius: 1.125rem; background: #f4f0e8; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07); transition: flex-grow .32s cubic-bezier(.2, .8, .2, 1); cursor: pointer; }
html[data-proto] .about-team_card.is-open { flex-grow: 2.7; cursor: default; }
html[data-proto] .about-team_card:focus-visible { outline: 2px solid var(--base-color-brand--black); outline-offset: 3px; }
html[data-proto] .about-team_photo { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; background-size: auto var(--ih); background-position: max(100%, min(0px, calc(50% + (.5 - var(--fx)) * var(--iw)))) min(0px, calc(var(--h) * .36 - var(--fy) * var(--ih))); transition: filter .32s ease-out; filter: saturate(.25) contrast(.96); }
html[data-proto] .about-team_card.is-open .about-team_photo { filter: none; }
html[data-proto] .about-team_card::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(180deg, rgba(28, 29, 31, 0), rgba(28, 29, 31, .84)); pointer-events: none; }
html[data-proto] .about-team_card .about-tag.is-team { left: .75rem; top: .75rem; bottom: auto; }
html[data-proto] .about-team_card .about-tag_inner { font-size: 0; gap: 0; padding: .4rem; transition: none; }
html[data-proto] .about-team_card.is-open .about-tag_inner { font-size: 1rem; gap: .5rem; padding: .4rem .8rem .4rem .5rem; }
html[data-proto] .about-team_caption { position: absolute; z-index: 1; left: 1.125rem; right: 1.125rem; bottom: 1.125rem; }
html[data-proto] .about-team_caption h3 { display: flex; align-items: flex-end; min-height: 2.4em; margin: 0; color: #fff; font-size: 1.125rem; line-height: 1.2; letter-spacing: -.03em; }
html[data-proto] .about-team_card.is-open .about-team_caption h3 { font-size: 1.5rem; min-height: 0; }
html[data-proto] .about-team_caption p { width: 19rem; max-width: none; margin: 0; max-height: 0; opacity: 0; overflow: hidden; color: rgba(255, 255, 255, .86); font-size: 1rem; line-height: 1.45; transition: opacity .2s ease-out; }
html[data-proto] .about-team_card.is-open .about-team_caption p { max-height: 6rem; margin-top: .5rem; opacity: 1; transition-delay: .12s; }
@media screen and (max-width: 767px) {
  html[data-proto] .about-team_strip { --ih: 24rem; flex-direction: column; height: 44rem; gap: .5rem; }
  html[data-proto] .about-team_card { flex: 1 1 0; width: auto; scroll-snap-align: none; }
  html[data-proto] .about-team_card.is-open { flex-grow: 3.2; }
  html[data-proto] .about-team_photo { background-position: max(100%, min(0px, calc(74% + (.5 - var(--fx)) * var(--iw)))) min(0px, calc(42% + (.42 - var(--fy)) * var(--ih))); }
  html[data-proto] .about-team_card::after { inset: 0; background: linear-gradient(90deg, rgba(28, 29, 31, .7), rgba(28, 29, 31, .1)); }
  html[data-proto] .about-team_card.is-open::after { inset: 30% 0 0; background: linear-gradient(180deg, rgba(28, 29, 31, 0), rgba(28, 29, 31, .84)); }
  html[data-proto] .about-team_card:not(.is-open) .about-tag.is-team { display: none; }
  html[data-proto] .about-team_card:not(.is-open) .about-team_caption { bottom: auto; top: 50%; right: 4rem; translate: 0 -50%; }
  html[data-proto] .about-team_caption h3 { min-height: 0; }
  html[data-proto] .about-team_caption p { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-proto] .about-team_card, html[data-proto] .about-team_photo, html[data-proto] .about-team_caption p { transition: none; }
}

/* ---------- Investors: heading and line stacked on the left, close to the logos ---------- */
html[data-proto] .section_about-investors { padding-top: 2rem; padding-bottom: 7rem; }
html[data-proto] .about-investors_header { display: block; margin-bottom: 2rem; }
html[data-proto] .about-investors_header h2 { margin: 0 0 .75rem; }
html[data-proto] .about-investors_text { max-width: none; margin: 0; text-align: left; font-size: 1.125rem; }

/* ---------- Open roles: a clearer highlight on the row under the pointer ---------- */
html[data-proto] .is-about .is-enhanced .about-jobs_row { position: relative; transition: background-color .2s ease-out; }
html[data-proto] .is-about .is-enhanced .about-jobs_row::before { content: ""; position: absolute; left: -1.25rem; right: -1.25rem; top: 0; bottom: 0; border-radius: .625rem; background: linear-gradient(90deg, rgba(249, 40, 16, .2), rgba(254, 154, 140, .1) 38%, rgba(255, 255, 255, .05)); box-shadow: inset 2px 0 0 #f92810; opacity: 0; transition: opacity .2s ease-out; pointer-events: none; }
html[data-proto] .is-about .is-enhanced .about-jobs_row:hover::before, html[data-proto] .is-about .is-enhanced .about-jobs_row:focus-visible::before { opacity: 1; }
html[data-proto] .is-about .is-enhanced .about-jobs_row > * { position: relative; }
