
/* ================================================================
   Wrote Education — consolidated Results stylesheet
   One source of truth for the Results section.
   ================================================================ */

#results {
  --results-paper: #f4f1e9;
  --results-panel: #efefec;
  --results-ink: #101010;
  --results-muted: rgba(16, 16, 16, 0.58);
  --results-radius: 22px;
  --results-shadow: 0 18px 48px rgba(10, 10, 10, 0.07);
}

/* ---------------------------------------------------------------
   Results hover — high-impact, colour-safe and shine-free.
   --------------------------------------------------------------- */
#results .results-bento-card {
  transform: translateZ(0);
  transform-origin: center;
  will-change: transform, box-shadow;
  transition:
    transform 340ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 340ms cubic-bezier(.16, 1, .3, 1),
    border-color 260ms ease !important;
}

#results .results-bento-card::before,
#results .results-bento-card:hover::before {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
  background: none !important;
}

#results .results-bento-card > * {
  transition:
    transform 340ms cubic-bezier(.16, 1, .3, 1) !important;
}

@media (hover: hover) and (pointer: fine){
  #results .results-bento-card:hover {
    z-index: 8;
    transform: translateY(-11px) scale(1.018) !important;
    border-color: rgba(var(--results-red-rgb), .42) !important;
    box-shadow:
      0 34px 76px rgba(10, 10, 10, .18),
      0 12px 28px rgba(10, 10, 10, .1),
      0 0 0 2px rgba(var(--results-red-rgb), .13) !important;
  }

  #results .results-bento-card:hover > * {
    transform: translateY(-2px) !important;
  }

  #results .results-bento-card--feature:hover {
    background: #070707 !important;
    box-shadow:
      0 38px 82px rgba(0, 0, 0, .3),
      0 14px 34px rgba(0, 0, 0, .2),
      0 0 0 2px rgba(var(--results-red-rgb), .28) !important;
  }

  #results .results-bento-card--study:hover {
    background: #f7f7f5 !important;
  }

  #results .results-bento-card--cohort:hover {
    background: var(--results-paper) !important;
    color: var(--results-ink) !important;
  }

  #results .results-bento-card--summary:hover {
    background: #111 !important;
    color: #fff !important;
    box-shadow:
      0 38px 82px rgba(0, 0, 0, .28),
      0 14px 34px rgba(0, 0, 0, .18),
      0 0 0 2px rgba(var(--results-red-rgb), .28) !important;
  }

  #results .results-bento-card--study:hover .benchmark-ledger {
    transform: translateX(5px) !important;
  }

  #results .results-bento-card--study:hover .benchmark-ledger--atar {
    transform: translateX(-5px) !important;
  }

  #results .results-bento-card--cohort:hover .cohort-reframe__metric {
    transform: translateY(-4px) !important;
  }

  #results .results-bento-card--summary:hover .summary-reframe__line--2 {
    transform: translateX(2px) scale(1.025) !important;
  }
}

@media (hover: none), (pointer: coarse){
  #results .results-bento-card,
  #results .results-bento-card:hover,
  #results .results-bento-card > *,
  #results .results-bento-card:hover > * {
    transform: none !important;
  }
}

/* ---------------------------------------------------------------
   Top-right: Swiss editorial result card.
   --------------------------------------------------------------- */
#results .results-bento-card--study {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #f7f7f5;
}

#results .results-bento-card--study > :not(.results-editorial-bg) {
  position: relative;
  z-index: 2;
}

#results .results-editorial-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#results .results-editorial-bg__ten,
#results .results-editorial-bg__six {
  position: absolute;
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.11em;
  color: rgba(10, 10, 10, 0.026);
  user-select: none;
}

#results .results-editorial-bg__ten::before { content: "10"; }
#results .results-editorial-bg__six::before { content: "6"; }

#results .results-editorial-bg__ten {
  top: 34px;
  right: -4px;
  font-size: clamp(150px, 17vw, 245px);
  transform: rotate(-7deg);
}

#results .results-editorial-bg__six {
  left: -20px;
  bottom: 58px;
  color: rgba(var(--results-red-rgb), 0.035);
  font-size: clamp(130px, 15vw, 220px);
  transform: rotate(7deg);
}

#results .results-editorial-bg__rule {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #111;
}

#results .results-editorial-bg__rule::after {
  content: "";
  position: absolute;
  top: 92px;
  left: 0;
  width: 3px;
  height: 64px;
  background: var(--results-red);
}

#results .results-bento-card--study .cohort-identity-sentence--simple {
  margin-left: 14px;
  padding-left: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.12);
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 700;
  letter-spacing: -0.04em;
}





#results .results-editorial-note {
  position: absolute !important;
  right: 10px;
  bottom: 10px;
  z-index: 4 !important;
  color: rgba(10, 10, 10, 0.33);
  font-size: 6px;
  font-weight: 760;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
}

#results .results-bento-card--study::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  width: 16px;
  height: 16px;
  border-top: 2px solid rgba(10, 10, 10, 0.5);
  border-right: 2px solid rgba(10, 10, 10, 0.5);
}

/* ---------------------------------------------------------------
   Bell curve -> final banner timing.
   --------------------------------------------------------------- */










#results .benchmark-final-copy {
  position: absolute !important;
  top: 4px !important;
  left: 16px !important;
  right: 16px !important;
  z-index: 40 !important;
  max-width: 11.3ch !important;
  color: var(--results-ink) !important;
  font-size: clamp(21px, 1.82vw, 29px) !important;
  font-weight: 740 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.047em !important;
  text-wrap: balance;
  text-shadow:
    0 1px 0 rgba(239, 239, 236, .98),
    0 0 5px rgba(239, 239, 236, .94),
    0 0 10px rgba(239, 239, 236, .84);
}

#results .benchmark-final-copy strong {
  color: var(--results-red) !important;
  font-weight: 800 !important;
}



/* ---------------------------------------------------------------
   Four-row seamless avatar marquee.
   --------------------------------------------------------------- */




























/* ---------------------------------------------------------------
   Bottom-left: rebuilt cohort card.
   --------------------------------------------------------------- */
#results .cohort-reframe {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(0, 1.8fr);
  grid-template-rows: 1fr auto;
  gap: 14px 18px;
  min-height: 252px;
  padding: 20px 20px 16px;
  overflow: hidden;
  border: 1px solid rgba(16, 16, 16, .1);
  border-radius: var(--results-radius);
  background: var(--results-paper);
  box-shadow: var(--results-shadow);
  color: var(--results-ink);
}

#results .cohort-reframe::before {
  content: none;
  display: none;
}

#results .cohort-reframe::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 4px;
  background: var(--results-red);
}

#results .cohort-reframe__intro {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 12px 16px 12px 18px;
  border-left: 4px solid var(--results-red);
}

#results .cohort-reframe__eyebrow {
  color: rgba(16, 16, 16, .5);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .15em;
  text-transform: uppercase;
}

#results .cohort-reframe__anchor {
  display: grid;
  gap: 0;
}

#results .cohort-reframe__anchor strong {
  font-size: clamp(66px, 6.5vw, 92px);
  font-weight: 840;
  line-height: .78;
  letter-spacing: -.09em;
}

#results .cohort-reframe__anchor span {
  margin-top: 6px;
  font-size: clamp(27px, 2.6vw, 38px);
  font-weight: 760;
  line-height: .9;
  letter-spacing: -.06em;
}

#results .cohort-reframe__intro p {
  margin: 4px 0 0;
  max-width: 23ch;
  color: rgba(16, 16, 16, .62);
  font-size: 10px;
  font-weight: 570;
  line-height: 1.3;
}

#results .cohort-reframe__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

#results .cohort-reframe__metric {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 96px;
  padding: 13px 14px 12px;
  overflow: hidden;
  border: 1px solid rgba(16, 16, 16, .1);
  border-radius: 15px;
  background: rgba(255, 255, 255, .78);
  box-shadow: none;
  color: var(--results-ink);
}

#results .cohort-reframe__metric--red {
  border-color: rgba(var(--results-red-rgb), .24);
  background: rgba(var(--results-red-rgb), .11);
}

#results .cohort-reframe__metric--dark {
  border-color: #171717;
  background: #171717;
  color: #fff;
}

#results .cohort-reframe__metric-index {
  position: absolute;
  top: 9px;
  right: 10px;
  color: rgba(16, 16, 16, .25);
  font-size: 7px;
  font-weight: 760;
  letter-spacing: .08em;
}

#results .cohort-reframe__metric--dark .cohort-reframe__metric-index {
  color: rgba(255, 255, 255, .3);
}

#results .cohort-reframe__metric-kicker {
  color: rgba(16, 16, 16, .45);
  font-size: 7px;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#results .cohort-reframe__metric--dark .cohort-reframe__metric-kicker {
  color: rgba(255, 255, 255, .5);
}

#results .cohort-reframe__metric strong {
  margin-top: 5px;
  color: inherit;
  font-size: clamp(31px, 3vw, 45px);
  font-weight: 820;
  line-height: .9;
  letter-spacing: -.075em;
  white-space: nowrap;
}

#results .cohort-reframe__metric small {
  margin-top: 7px;
  color: rgba(16, 16, 16, .58);
  font-size: 9px;
  font-weight: 630;
  line-height: 1.1;
}

#results .cohort-reframe__metric--dark small {
  color: rgba(255, 255, 255, .66);
}

#results .cohort-reframe__note {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 16, 16, .12);
  color: rgba(16, 16, 16, .62);
  font-size: 10px;
  font-weight: 600;
}

/* ---------------------------------------------------------------
   Bottom-right: rebuilt permanent dark card.
   --------------------------------------------------------------- */
#results .summary-reframe {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-height: 252px;
  padding: 22px 22px 20px;
  overflow: hidden;
  border: 1px solid #111;
  border-radius: var(--results-radius);
  background: #111;
  box-shadow: var(--results-shadow);
  color: #fff;
}

#results .summary-reframe::before {
  content: none;
  display: none;
}

#results .summary-reframe::after {
  content: none;
  display: none;
}

#results .summary-reframe__signal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 5px;
  background: var(--results-red);
}

#results .summary-reframe__eyebrow {
  position: relative;
  z-index: 2;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .17);
  color: rgba(255, 255, 255, .55);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .15em;
  text-transform: uppercase;
}

#results .summary-reframe__lines {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3px;
}

#results .summary-reframe__line {
  display: block;
  color: #fff;
  font-size: clamp(27px, 2.35vw, 38px);
  font-weight: 820;
  line-height: .96;
  letter-spacing: -.065em;
}

#results .summary-reframe__line--2 {
  width: max-content;
  max-width: 100%;
  margin: 4px 0;
  padding: 5px 8px 6px;
  background: var(--results-red);
  color: #fff;
  transform: translateX(-8px);
}

#results .summary-reframe__copy {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 570;
  line-height: 1.35;
}

/* ---------------------------------------------------------------
   Responsive layout.
   --------------------------------------------------------------- */
@media (max-width: 1040px){
  #results .cohort-reframe {
    grid-template-columns: minmax(150px, .65fr) minmax(0, 1.65fr);
  }

  #results .cohort-reframe__anchor strong {
    font-size: clamp(58px, 7vw, 80px);
  }
}


/* Keep the full bell curve visible inside the 5% shorter banner. */






@media (max-width: 900px){
  #results .results-bento-card--study .benchmark-outcome-row {
    grid-template-columns: 36px 82px minmax(0, 1fr);
  }

  #results .results-bento-card--study .benchmark-outcome-row--6 {
    width: calc(100% - 42px);
  }

  #results .results-bento-card--study .benchmark-outcome-row--10 .benchmark-outcome-copy {
    padding-left: 22px;
  }

  #results .results-editorial-bg__ten {
    font-size: clamp(120px, 22vw, 190px);
  }

  

  

  

  

  #results .cohort-reframe {
    grid-template-columns: 1fr;
  }

  #results .cohort-reframe__intro {
    grid-template-columns: auto 1fr;
    align-items: end;
  }

  #results .cohort-reframe__eyebrow,
  #results .cohort-reframe__intro p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px){
  #results .results-editorial-bg__rule {
    left: 10px;
    width: 2px;
  }

  

  #results .results-bento-card--study .benchmark-outcome-row,
  #results .results-bento-card--study .benchmark-outcome-row--6 {
    width: 100%;
    grid-template-columns: 30px 66px minmax(0, 1fr);
    column-gap: 10px;
    min-height: 92px;
    transform: none;
  }

  #results .results-bento-card--study .benchmark-outcome-number,
  #results .results-bento-card--study .benchmark-outcome-number--6 {
    font-size: clamp(48px, 14vw, 66px) !important;
  }

  #results .results-bento-card--study .benchmark-outcome-title,
  #results .results-bento-card--study .benchmark-outcome-title--accent {
    font-size: clamp(15px, 4.2vw, 18px);
  }

  #results .results-bento-card--study .benchmark-outcome-row--10 .benchmark-outcome-copy {
    padding-left: 8px;
  }

  #results .results-editorial-note {
    display: none;
  }

  

  

  

  

  #results .cohort-reframe,
  #results .summary-reframe {
    min-height: auto;
    padding: 18px 16px;
  }

  #results .cohort-reframe__grid {
    grid-template-columns: 1fr 1fr;
  }

  #results .cohort-reframe__metric {
    min-height: 94px;
  }

  #results .summary-reframe__line {
    font-size: clamp(25px, 8.2vw, 34px);
  }
}

@media (prefers-reduced-motion: reduce){
  
}


/* ================================================================
   Top-right outcomes — asymmetric ledger cards
   ================================================================ */
#results .results-editorial-ticker,
#results .results-editorial-bg__ten,
#results .results-editorial-bg__six {
  display: none !important;
}

#results .benchmark-ledger-stack {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin: 12px 16px 0 14px !important;
}

#results .benchmark-ledger {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 50px 112px minmax(0, 1fr);
  align-items: stretch;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 18px;
  background: #ecece8;
  box-shadow:
    0 8px 20px rgba(16, 16, 16, 0.055),
    inset 0 -4px 0 #111;
}

#results .benchmark-ledger--study {
  width: 94%;
  justify-self: start;
}

#results .benchmark-ledger--atar {
  width: 88%;
  justify-self: end;
  border-color: rgba(var(--results-red-rgb), 0.22);
  background: #f3e8ea;
  box-shadow:
    0 8px 20px rgba(16, 16, 16, 0.05),
    inset 0 -4px 0 var(--results-red);
}

#results .benchmark-ledger__rail {
  display: grid;
  align-content: space-between;
  justify-items: center;
  padding: 13px 0 12px;
  background: #111;
  color: #fff;
}

#results .benchmark-ledger--atar .benchmark-ledger__rail {
  background: var(--results-red);
}

#results .benchmark-ledger__rail strong {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
}

#results .benchmark-ledger__rail span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 6px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

#results .benchmark-ledger__number {
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  padding: 6px 8px 9px 2px;
  color: #080808;
  font-size: clamp(66px, 5.7vw, 86px);
  font-weight: 840;
  line-height: 0.78;
  letter-spacing: -0.09em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}

#results .benchmark-ledger__number--atar {
  color: var(--results-red);
  font-size: clamp(60px, 5.1vw, 78px);
}

#results .benchmark-ledger__body {
  position: relative;
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 15px 22px 14px 10px;
  border-left: 1px solid rgba(16, 16, 16, 0.1);
}

#results .benchmark-ledger--atar .benchmark-ledger__body {
  border-left-color: rgba(var(--results-red-rgb), 0.18);
}

#results .benchmark-ledger__body::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 9px;
  height: 9px;
  border-top: 1px solid rgba(16, 16, 16, 0.28);
  border-right: 1px solid rgba(16, 16, 16, 0.28);
}

#results .benchmark-ledger--atar .benchmark-ledger__body::after {
  border-color: rgba(var(--results-red-rgb), 0.62);
}

#results .benchmark-ledger__sentence {
  display: block;
  max-width: 18ch;
  color: #101010;
  font-size: clamp(17px, 1.38vw, 21px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

#results .benchmark-ledger__sentence--atar {
  color: var(--results-red);
}

#results .benchmark-ledger__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(16, 16, 16, 0.42);
  font-size: 7px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#results .benchmark-ledger--atar .benchmark-ledger__meta {
  color: rgba(var(--results-red-rgb), 0.7);
}

#results .benchmark-ledger__meta i {
  display: block;
  width: 42px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.55;
}

/* Give the bell curve enough vertical space to display its full SVG. */








/* The final avatar state inherits the same longer panel. */








@media (max-width: 900px){
  #results .benchmark-ledger {
    grid-template-columns: 44px 94px minmax(0, 1fr);
    min-height: 96px;
  }

  #results .benchmark-ledger--study {
    width: 96%;
  }

  #results .benchmark-ledger--atar {
    width: 92%;
  }

  #results .benchmark-ledger__body {
    padding-right: 17px;
  }

  

  
}

@media (max-width: 640px){
  #results .benchmark-ledger-stack {
    margin: 10px 6px 0 !important;
    gap: 9px !important;
  }

  #results .benchmark-ledger,
  #results .benchmark-ledger--study,
  #results .benchmark-ledger--atar {
    width: 100%;
    grid-template-columns: 38px 78px minmax(0, 1fr);
    min-height: 90px;
  }

  #results .benchmark-ledger__number,
  #results .benchmark-ledger__number--atar {
    font-size: clamp(48px, 13vw, 64px);
  }

  #results .benchmark-ledger__sentence {
    font-size: clamp(15px, 4.2vw, 18px);
  }

  #results .benchmark-ledger__meta {
    font-size: 6px;
  }

  

  

  

  

  
}



#results .benchmark-ledger,
#results .cohort-reframe__metric,
#results .summary-reframe__line--2 {
  transition:
    transform 340ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 340ms cubic-bezier(.16, 1, .3, 1) !important;
}

/* ================================================================
   Final benchmark avatar marquee — complete repaired block
   ================================================================ */
#results .benchmark-avatar-marquee {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(4, 27px);
  align-content: space-evenly;
  gap: 4px;
  padding: 0;
  overflow: hidden;
  opacity: 0.96;
  pointer-events: none;
}

#results .benchmark-avatar-row {
  position: relative;
  display: block;
  width: 100%;
  height: 27px;
  overflow: hidden;
}

#results .benchmark-avatar-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
  height: 27px;
  will-change: transform;
  animation: benchmarkMarqueeForward 15.5s linear infinite;
}

#results .benchmark-avatar-row--2 .benchmark-avatar-track {
  animation-duration: 18s;
  animation-direction: reverse;
}

#results .benchmark-avatar-row--3 .benchmark-avatar-track {
  animation-duration: 14.5s;
}

#results .benchmark-avatar-row--4 .benchmark-avatar-track {
  animation-duration: 19s;
  animation-direction: reverse;
}

#results .benchmark-avatar-sequence {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 15px;
  height: 27px;
  padding-right: 15px;
}

#results .benchmark-avatar-row:nth-child(even) .benchmark-avatar-sequence {
  padding-left: 9px;
}

#results .benchmark-loop-avatar {
  position: relative;
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(154, 154, 154, 0.22);
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.035);
}

#results .benchmark-loop-avatar::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 50%;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(126, 126, 126, 0.34);
  transform: translateX(-50%);
}

#results .benchmark-loop-avatar::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 12%;
  height: 35%;
  border-radius: 55% 55% 38% 38%;
  background: rgba(126, 126, 126, 0.34);
}

#results .benchmark-loop-avatar--red {
  background: rgba(var(--results-red-rgb), 0.25);
}

#results .benchmark-loop-avatar--red::before,
#results .benchmark-loop-avatar--red::after {
  background: rgba(var(--results-red-rgb), 0.72);
}

@keyframes benchmarkMarqueeForward {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 900px){
  #results .benchmark-avatar-marquee {
    grid-template-rows: repeat(4, 25px);
    gap: 3px;
  }

  #results .benchmark-avatar-row,
  #results .benchmark-avatar-track,
  #results .benchmark-avatar-sequence {
    height: 25px;
  }

  #results .benchmark-avatar-sequence {
    gap: 14px;
    padding-right: 14px;
  }

  #results .benchmark-loop-avatar {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 640px){
  #results .benchmark-avatar-marquee {
    grid-template-rows: repeat(4, 23px);
    gap: 3px;
  }

  #results .benchmark-avatar-row,
  #results .benchmark-avatar-track,
  #results .benchmark-avatar-sequence {
    height: 23px;
  }

  #results .benchmark-avatar-sequence {
    gap: 12px;
    padding-right: 12px;
  }

  #results .benchmark-loop-avatar {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce){
  #results .benchmark-avatar-track {
    animation-play-state: paused;
  }
}

/* ================================================================
   Bell curve -> avatar banner: hidden state and dot-centred zoom
   ================================================================ */










/* The final banner is completely absent until the bell-curve phase ends. */




/* Do not spend animation frames on a panel that is still hidden. */






@media (prefers-reduced-motion: reduce){
  

  #results .benchmark-avatar-track {
    animation-play-state: paused !important;
  }
}

/* ================================================================
   Bell curve -> avatar banner: pause, then crossfade
   ================================================================ */
#results .bell-viewport {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: start center;
  width: 100%;
  height: 100%;
  opacity: 1;
  visibility: visible;
  transform: none !important;
  transition:
    opacity .72s ease,
    visibility 0s linear 0s !important;
  will-change: opacity;
}

#results .bell-curve {
  display: grid !important;
  place-items: start center !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}



/* Keep the completed TOP 2% state readable during the pause. */
#results .bell-marker-label {
  opacity: 1;
  font-weight: 800;
}

#results .benchmark-graphic.is-avatars .bell-viewport {
  opacity: 0 !important;
  visibility: hidden !important;
  transition:
    opacity .72s ease,
    visibility 0s linear .72s !important;
}

#results .benchmark-graphic.is-avatars .avatar-stage {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* The scrolling panel remains completely hidden until the crossfade. */




#results .benchmark-graphic:not(.is-avatars) .benchmark-avatar-track {
  animation-play-state: paused !important;
}

#results .benchmark-graphic.is-avatars .benchmark-avatar-track {
  animation-play-state: running !important;
}



@media (max-width: 900px){
  
}

@media (max-width: 640px){
  
}

@media (prefers-reduced-motion: reduce){
  

  #results .benchmark-avatar-track {
    animation-play-state: paused !important;
  }
}

/* ================================================================
   Benchmark cell — 5% shorter, clearer surface, balanced curve
   ================================================================ */
#results .results-bento-card--study .metric-visual {
  box-sizing: border-box;
  min-height: 159px !important;
  height: 159px !important;
  margin: 12px 14px 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(16, 16, 16, 0.15) !important;
  border-radius: 19px !important;
  background: #efeee9 !important;
  box-shadow:
    0 10px 24px rgba(16, 16, 16, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28) !important;
}

#results .results-bento-card--study .benchmark-graphic {
  position: relative;
  min-height: 159px !important;
  height: 159px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0) 42%
    ),
    #efeee9 !important;
}

#results .bell-curve svg {
  display: block !important;
  box-sizing: border-box !important;
  width: 92% !important;
  height: 89% !important;
  margin: 0 auto !important;
  padding: 2px 8px 0 !important;
  overflow: visible !important;
  transform: translateY(-2px) !important;
  transform-origin: top center !important;
}

#results .benchmark-final-state {
  position: absolute !important;
  inset: 0 !important;
  z-index: 30 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #efeee9 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(5px) scale(.985) !important;
  pointer-events: none !important;
  transition:
    opacity .82s ease,
    transform .82s cubic-bezier(.16, 1, .3, 1),
    visibility 0s linear .82s !important;
}

#results .benchmark-graphic.is-avatars .benchmark-final-state {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  transition-delay: 0s !important;
}

#results .benchmark-final-state::before,
#results .benchmark-final-state::after {
  content: none !important;
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  #results .results-bento-card--study:hover .metric-visual {
    border-color: rgba(var(--results-red-rgb), 0.34) !important;
    box-shadow:
      0 16px 34px rgba(16, 16, 16, 0.11),
      0 0 0 2px rgba(var(--results-red-rgb), 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  }
}

@media (max-width: 900px) {
  #results .results-bento-card--study .metric-visual,
  #results .results-bento-card--study .benchmark-graphic {
    min-height: 158px !important;
    height: 158px !important;
  }

  #results .bell-curve svg {
    width: 93% !important;
    height: 90% !important;
  }
}

@media (max-width: 640px) {
  #results .results-bento-card--study .metric-visual,
  #results .results-bento-card--study .benchmark-graphic {
    min-height: 146px !important;
    height: 146px !important;
  }

  #results .bell-curve svg {
    width: 94% !important;
    height: 91% !important;
  }
}


/* ================================================================
   Lower-left cohort metrics — larger readable labels
   ================================================================ */
#results .results-bento-card--cohort .cohort-metric-label,
#results .results-bento-card--cohort .cohort-stat-label,
#results .results-bento-card--cohort .metric-label,
#results .results-bento-card--cohort .metric-title,
#results .results-bento-card--cohort .stat-label,
#results .results-bento-card--cohort .stat-title,
#results .results-bento-card--cohort .mini-card-label,
#results .results-bento-card--cohort .mini-card-title,
#results .results-bento-card--cohort .cohort-card-label {
  font-size: 0.82rem !important;
  line-height: 1.15 !important;
  letter-spacing: 0.08em !important;
}

#results .results-bento-card--cohort .cohort-metric-value-caption,
#results .results-bento-card--cohort .cohort-stat-caption,
#results .results-bento-card--cohort .metric-caption,
#results .results-bento-card--cohort .stat-caption,
#results .results-bento-card--cohort .mini-card-caption,
#results .results-bento-card--cohort .cohort-card-caption,
#results .results-bento-card--cohort .metric-subtitle,
#results .results-bento-card--cohort .stat-subtitle {
  font-size: 0.94rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  color: rgba(16, 16, 16, 0.72) !important;
}

#results .results-bento-card--cohort .cohort-metric-card small,
#results .results-bento-card--cohort .cohort-stat-card small,
#results .results-bento-card--cohort .metric-card small,
#results .results-bento-card--cohort .stat-card small,
#results .results-bento-card--cohort .mini-card small {
  font-size: 0.94rem !important;
  line-height: 1.2 !important;
  color: rgba(16, 16, 16, 0.72) !important;
}

@media (max-width: 900px) {
  #results .results-bento-card--cohort .cohort-metric-label,
  #results .results-bento-card--cohort .cohort-stat-label,
  #results .results-bento-card--cohort .metric-label,
  #results .results-bento-card--cohort .metric-title,
  #results .results-bento-card--cohort .stat-label,
  #results .results-bento-card--cohort .stat-title,
  #results .results-bento-card--cohort .mini-card-label,
  #results .results-bento-card--cohort .mini-card-title,
  #results .results-bento-card--cohort .cohort-card-label {
    font-size: 0.78rem !important;
  }

  #results .results-bento-card--cohort .cohort-metric-value-caption,
  #results .results-bento-card--cohort .cohort-stat-caption,
  #results .results-bento-card--cohort .metric-caption,
  #results .results-bento-card--cohort .stat-caption,
  #results .results-bento-card--cohort .mini-card-caption,
  #results .results-bento-card--cohort .cohort-card-caption,
  #results .results-bento-card--cohort .metric-subtitle,
  #results .results-bento-card--cohort .stat-subtitle,
  #results .results-bento-card--cohort .cohort-metric-card small,
  #results .results-bento-card--cohort .cohort-stat-card small,
  #results .results-bento-card--cohort .metric-card small,
  #results .results-bento-card--cohort .stat-card small,
  #results .results-bento-card--cohort .mini-card small {
    font-size: 0.88rem !important;
  }
}


/* ================================================================
   Lower-left cohort metrics — bigger text above the numbers only
   ================================================================ */
#results .results-bento-card--cohort .cohort-metric-label,
#results .results-bento-card--cohort .cohort-stat-label,
#results .results-bento-card--cohort .metric-label,
#results .results-bento-card--cohort .metric-title,
#results .results-bento-card--cohort .stat-label,
#results .results-bento-card--cohort .stat-title,
#results .results-bento-card--cohort .mini-card-label,
#results .results-bento-card--cohort .mini-card-title,
#results .results-bento-card--cohort .cohort-card-label {
  font-size: 0.98rem !important;
  line-height: 1.08 !important;
  letter-spacing: 0.08em !important;
  color: rgba(16, 16, 16, 0.78) !important;
}

@media (max-width: 900px) {
  #results .results-bento-card--cohort .cohort-metric-label,
  #results .results-bento-card--cohort .cohort-stat-label,
  #results .results-bento-card--cohort .metric-label,
  #results .results-bento-card--cohort .metric-title,
  #results .results-bento-card--cohort .stat-label,
  #results .results-bento-card--cohort .stat-title,
  #results .results-bento-card--cohort .mini-card-label,
  #results .results-bento-card--cohort .mini-card-title,
  #results .results-bento-card--cohort .cohort-card-label {
    font-size: 0.92rem !important;
  }
}


/* ================================================================
   Results cards — restored lift and internal hover choreography
   ================================================================ */
#results .results-bento-shell,
#results .results-bento-row {
  overflow: visible !important;
}

#results .results-bento-card {
  position: relative;
  isolation: isolate;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform 430ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 430ms cubic-bezier(.16, 1, .3, 1),
    border-color 300ms ease,
    background-color 300ms ease !important;
}

#results .premier-year-kicker,
#results .premier-side,
#results .premier-copy,
#results .cohort-identity-sentence--simple,
#results .benchmark-ledger,
#results .metric-visual,
#results .results-editorial-note,
#results .cohort-reframe__intro,
#results .cohort-reframe__metric,
#results .cohort-reframe__note,
#results .summary-reframe__signal,
#results .summary-reframe__eyebrow,
#results .summary-reframe__line,
#results .summary-reframe__copy {
  backface-visibility: hidden;
  transition:
    transform 430ms cubic-bezier(.16, 1, .3, 1),
    opacity 300ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
  #results .results-bento-card:hover {
    z-index: 20 !important;
    transform: translate3d(0, -13px, 0) scale(1.021) !important;
    border-color: rgba(var(--results-red-rgb), .44) !important;
    box-shadow:
      0 38px 84px rgba(10, 10, 10, .19),
      0 14px 32px rgba(10, 10, 10, .11),
      0 0 0 2px rgba(var(--results-red-rgb), .13) !important;
  }

  #results .results-bento-card--feature:hover .premier-year-kicker {
    transform: translate3d(6px, -2px, 0) !important;
  }

  #results .results-bento-card--feature:hover .premier-side {
    transform: translate3d(0, -5px, 0) scale(1.012) !important;
  }

  #results .results-bento-card--feature:hover .premier-copy {
    transform: translate3d(7px, -2px, 0) !important;
  }

  #results .results-bento-card--study:hover
  .cohort-identity-sentence--simple {
    transform: translate3d(5px, -2px, 0) !important;
  }

  #results .results-bento-card--study:hover
  .benchmark-ledger--study {
    transform: translate3d(7px, -3px, 0) !important;
  }

  #results .results-bento-card--study:hover
  .benchmark-ledger--atar {
    transform: translate3d(-7px, 3px, 0) !important;
  }

  #results .results-bento-card--study:hover .metric-visual {
    transform: translate3d(0, -5px, 0) scale(1.012) !important;
  }

  #results .results-bento-card--study:hover
  .results-editorial-note {
    transform: translate3d(-3px, 0, 0) !important;
  }

  #results .results-bento-card--cohort:hover
  .cohort-reframe__intro {
    transform: translate3d(5px, -2px, 0) !important;
  }

  #results .results-bento-card--cohort:hover
  .cohort-reframe__metric:nth-child(1) {
    transform: translate3d(0, -6px, 0) !important;
  }

  #results .results-bento-card--cohort:hover
  .cohort-reframe__metric:nth-child(2) {
    transform: translate3d(0, -3px, 0) !important;
  }

  #results .results-bento-card--cohort:hover
  .cohort-reframe__metric:nth-child(3) {
    transform: translate3d(0, -7px, 0) !important;
  }

  #results .results-bento-card--cohort:hover
  .cohort-reframe__metric:nth-child(4) {
    transform: translate3d(0, -4px, 0) !important;
  }

  #results .results-bento-card--cohort:hover
  .cohort-reframe__note {
    transform: translate3d(5px, 0, 0) !important;
  }

  #results .results-bento-card--summary:hover
  .summary-reframe__signal {
    transform: scaleY(1.22) !important;
  }

  #results .results-bento-card--summary:hover
  .summary-reframe__eyebrow {
    transform: translate3d(5px, -2px, 0) !important;
  }

  #results .results-bento-card--summary:hover
  .summary-reframe__line--1 {
    transform: translate3d(3px, -2px, 0) !important;
  }

  #results .results-bento-card--summary:hover
  .summary-reframe__line--2 {
    transform: translate3d(9px, -2px, 0) scale(1.028) !important;
  }

  #results .results-bento-card--summary:hover
  .summary-reframe__line--3 {
    transform: translate3d(5px, -2px, 0) !important;
  }

  #results .results-bento-card--summary:hover
  .summary-reframe__copy {
    transform: translate3d(5px, 2px, 0) !important;
  }
}

