.fp-section {
  --fp-blue: #276291;
  --fp-ink: #231f20;
  --fp-sand: #f1e1cf;
  background: #fff;
  color: var(--fp-ink);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.fp-heading, .fp-detail {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}
.fp-heading { margin-bottom: 1.8rem; }
.fp-heading h2 {
  font: 750 clamp(2.3rem, 5vw, 4.8rem)/1.06 Manrope, sans-serif;
  letter-spacing: .008em;
  margin: 0 0 .65rem;
}
.fp-heading p, .fp-detail p {
  font: 500 1.05rem/1.8 "Nunito Sans", sans-serif;
  letter-spacing: .015em;
  margin: 0;
}
.fp-photo { position: relative; }
.fp-photo img { display: block; width: 100%; height: auto; }
.fp-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}
.fp-point::before {
  content: "+";
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--fp-blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--fp-blue), 0 2px 8px #231f2050;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font: 800 1rem/1 Manrope, sans-serif;
}
.fp-point[aria-pressed="true"] { z-index: 1; }
.fp-point[aria-pressed="true"]::before,
.fp-point:hover::before { background: #0b667f; color: #fff; }
.fp-controls {
  width: min(100% - 2rem, 70rem);
  margin: 1.5rem auto 1.2rem;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: .65rem;
}
.fp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 0;
  border-radius: .8rem;
  padding: .3rem .12rem;
  color: var(--fp-ink);
  font: 700 .79rem/1.3 Manrope, sans-serif;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.fp-square {
  display: block;
  width: min(100%, 4.5rem);
  aspect-ratio: 1;
  perspective: 420px;
}
.fp-turn {
  position: relative;
  display: block;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 480ms cubic-bezier(.25,.7,.25,1);
}
.fp-face {
  position: absolute;
  inset: 0;
  border-radius: 24%;
  display: grid;
  place-items: center;
  background: #abcde8;
  color: #231f20;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.fp-card:nth-child(3n + 2) .fp-face:not(.fp-back) { background: #65c5dd; }
.fp-card:nth-child(3n) .fp-face:not(.fp-back) { background: var(--fp-sand); }
.fp-face svg {
  width: 76%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fp-back { background: var(--fp-blue); color: white; transform: rotateY(180deg); }
.fp-card[aria-pressed="true"] { color: var(--fp-blue); }
.fp-card[aria-pressed="true"] .fp-turn { transform: rotateY(180deg); }
.fp-card:focus-visible, .fp-point:focus-visible {
  outline: 3px solid #0b667f;
  outline-offset: 3px;
}
.fp-point:focus-visible { box-shadow: 0 0 0 3px #fff; }
.fp-detail {
  border-top: 1px solid #abcde8;
  padding-top: 1rem;
  min-height: 8rem;
}
.fp-detail h3 { font: 750 1.35rem/1.2 Manrope, sans-serif; margin: 0 0 .35rem; }
@media (max-width: 670px) {
  .fp-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fp-point::before { width: 20px; height: 20px; font-size: .85rem; }
  .fp-detail { min-height: 10rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-turn { transition: none; }
}
@media (max-width: 420px) {
  .fp-point { width: 36px; height: 36px; }
}
