/* About Me story carousel for the isolated front-page test. */

body.straight-frontpage .test-about-section > .section-heading {
  grid-template-columns: minmax(330px, 0.7fr) minmax(0, 1.3fr);
}

/* Keep the public front page to one clear editorial and one clear utility face. */
body.straight-frontpage {
  --frontpage-display-font: "Cormorant Garamond", Georgia, serif;
  --frontpage-ui-font: "Montserrat", Arial, sans-serif;
  font-family: var(--frontpage-ui-font) !important;
}

body.straight-frontpage :where(p, a, button, input, select, textarea, label, li, small, strong, time) {
  font-family: var(--frontpage-ui-font) !important;
}

body.straight-frontpage :where(h1, h2, h3, blockquote),
body.straight-frontpage .hero-ratio,
body.straight-frontpage .about-story-carousel .about-story-card p,
body.straight-frontpage .testimonial-card blockquote {
  font-family: var(--frontpage-display-font) !important;
}

body.straight-frontpage .about-story-carousel {
  display: block !important;
  min-width: 0;
}

body.straight-frontpage .about-story-carousel__viewport {
  position: relative;
  height: var(--about-story-card-height, clamp(340px, 29vw, 470px));
  min-height: clamp(340px, 29vw, 470px);
}

body.straight-frontpage .about-story-card {
  display: flex;
  height: 100%;
  min-height: clamp(340px, 29vw, 470px);
  padding: clamp(28px, 4vw, 58px);
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(214, 204, 181, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 10%, rgba(196, 122, 90, 0.16), transparent 30%),
    rgba(247, 244, 238, 0.055);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
  animation: about-card-in 240ms ease both;
}

body.straight-frontpage .about-story-card[hidden] {
  display: none !important;
}

body.straight-frontpage .about-story-card__number {
  color: var(--test-terracotta);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

body.straight-frontpage .about-story-card__number small {
  color: rgba(247, 244, 238, 0.4);
  font-size: inherit;
}

body.straight-frontpage .about-story-carousel .about-story-card p,
body.straight-frontpage .about-story-carousel .about-story-card p:first-child {
  max-width: 38ch !important;
  margin: clamp(34px, 6vw, 80px) 0 0 !important;
  color: var(--test-cream) !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem) !important;
  font-weight: 600 !important;
  line-height: 1.27 !important;
}

body.straight-frontpage .about-story-carousel__controls {
  display: grid;
  margin-top: 18px;
  grid-template-columns: minmax(92px, auto) 1fr minmax(92px, auto);
  gap: 16px;
  align-items: center;
}

body.straight-frontpage .about-story-carousel__arrow {
  display: inline-flex;
  min-height: 48px;
  padding: 10px 15px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(214, 204, 181, 0.22);
  border-radius: 14px;
  background: rgba(247, 244, 238, 0.06);
  color: var(--test-cream);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

body.straight-frontpage .about-story-carousel__arrow:not(:disabled):hover {
  border-color: rgba(196, 122, 90, 0.7);
  background: rgba(196, 122, 90, 0.14);
  transform: translateY(-2px);
}

body.straight-frontpage .about-story-carousel__arrow:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

body.straight-frontpage .about-story-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

body.straight-frontpage .about-story-carousel__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(214, 204, 181, 0.3);
  cursor: pointer;
  transition: width 160ms ease, background 160ms ease;
}

body.straight-frontpage .about-story-carousel__dots button[aria-current="true"] {
  width: 30px;
  background: var(--test-terracotta);
}

body.straight-frontpage .training-focus-panel__next {
  display: inline-flex;
  width: fit-content;
  min-width: 182px;
  min-height: 46px;
  margin-top: 28px;
  padding: 8px 9px 8px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(80, 89, 66, 0.32);
  border-radius: 999px;
  background: #344134;
  color: var(--test-cream);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 36, 23, 0.12);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

body.straight-frontpage .training-focus-panel__next::after {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--test-terracotta);
  color: #fff;
  content: "→";
  font-size: 0.9rem;
  line-height: 1;
}

body.straight-frontpage .training-focus-panel__next:hover {
  border-color: var(--test-terracotta);
  background: #243124;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(23, 36, 23, 0.18);
}

body.straight-frontpage .social-card > div {
  min-width: 0;
  max-width: 100%;
}

body.straight-frontpage .social-card strong,
body.straight-frontpage .social-card[href*="instagram.com"] strong {
  display: block;
  max-width: 100% !important;
  color: inherit !important;
  font-size: clamp(1.3rem, 1.45vw, 1.75rem) !important;
  line-height: 1.16 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

body.straight-frontpage .social-card small {
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
}

@media (min-width: 1241px) {
  body.straight-frontpage .socials-section {
    --social-layout-gap: clamp(24px, 2.2vw, 44px);
    padding-right: clamp(24px, 4vw, 80px) !important;
    padding-left: clamp(24px, 4vw, 80px) !important;
  }

  body.straight-frontpage .socials-heading,
  body.straight-frontpage .socials-layout {
    position: static;
    left: auto;
    width: 100% !important;
    max-width: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: var(--social-layout-gap) !important;
    transform: none !important;
  }

  body.straight-frontpage .socials-section > .socials-heading {
    width: 100% !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
    transform: none !important;
  }

  body.straight-frontpage .socials-heading .eyebrow {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    justify-self: stretch !important;
    text-align: left !important;
    transform: none !important;
  }

  body.straight-frontpage .socials-heading h2 {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 12ch !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    justify-self: start !important;
    text-align: left !important;
    transform: none !important;
  }

  body.straight-frontpage .socials-heading > p:last-child {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    width: 100%;
    max-width: 42rem;
    align-self: end;
  }

  body.straight-frontpage .socials-layout {
    margin-top: clamp(44px, 5vw, 76px) !important;
    gap: var(--social-layout-gap) !important;
  }

  body.straight-frontpage .socials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(16px, 1.45vw, 28px) !important;
  }

  body.straight-frontpage .social-card {
    min-height: clamp(255px, 15vw, 320px) !important;
    padding: clamp(26px, 2.1vw, 40px) !important;
  }

  body.straight-frontpage .events-card {
    min-width: 0;
    padding: clamp(34px, 3.2vw, 58px) !important;
  }
}

body.straight-frontpage .social-card strong,
body.straight-frontpage .social-card[href*="instagram.com"] strong {
  display: flex;
  min-height: 2.35em;
  align-items: flex-end;
  font-size: clamp(1.3rem, 1.4vw, 1.78rem) !important;
}

body.straight-frontpage .events-list {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

body.straight-frontpage .events-list article strong {
  font-size: clamp(1.05rem, 1.05vw, 1.3rem) !important;
  line-height: 1.2 !important;
}

body.straight-frontpage .about-story-carousel__arrow:focus-visible,
body.straight-frontpage .about-story-carousel__dots button:focus-visible,
body.straight-frontpage .training-focus-panel__next:focus-visible {
  outline: 3px solid rgba(196, 122, 90, 0.55);
  outline-offset: 4px;
}

@keyframes about-card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  body.straight-frontpage .test-about-section > .section-heading {
    grid-template-columns: 1fr;
  }

  body.straight-frontpage .about-story-carousel {
    grid-column: 1 !important;
    grid-row: auto !important;
    margin-top: 34px;
  }

  body.straight-frontpage .about-story-carousel .about-story-card p,
  body.straight-frontpage .about-story-carousel .about-story-card p:first-child {
    max-width: 42ch !important;
  }
}

@media (max-width: 640px) {
  body.straight-frontpage .training-focus-panel__next {
    min-width: 170px;
    margin-top: 24px;
  }

  body.straight-frontpage .about-story-carousel__viewport,
  body.straight-frontpage .about-story-card {
    min-height: 500px;
  }

  body.straight-frontpage .about-story-card {
    padding: 26px 23px;
    border-radius: 20px;
  }

  body.straight-frontpage .about-story-carousel .about-story-card p,
  body.straight-frontpage .about-story-carousel .about-story-card p:first-child {
    margin-top: 30px !important;
    font-size: clamp(1.4rem, 7vw, 1.8rem) !important;
    line-height: 1.3 !important;
  }

  body.straight-frontpage .about-story-carousel__controls {
    grid-template-columns: 76px 1fr 76px;
    gap: 8px;
  }

  body.straight-frontpage .about-story-carousel__arrow {
    min-height: 44px;
    padding: 8px;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.straight-frontpage .about-story-card {
    animation: none;
  }
}

/* 2026-08-16 client testimonial carousel. */
body.straight-frontpage .testimonial-display {
  min-height: clamp(500px, 42vw, 620px) !important;
  width: 100% !important;
  overflow: hidden !important;
  padding-right: clamp(34px, 6vw, 70px) !important;
}

body.straight-frontpage .testimonial-card,
body.straight-frontpage .testimonial-card.is-active {
  min-height: clamp(500px, 42vw, 620px) !important;
  width: calc(100% - clamp(34px, 6vw, 70px)) !important;
}

body.straight-frontpage .testimonial-card {
  left: 0 !important;
  right: auto !important;
  transform: translateX(14%) scale(0.94) !important;
  transform-origin: center right !important;
  opacity: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease !important;
}

body.straight-frontpage .testimonial-card.is-active {
  transform: translateX(0) scale(1) !important;
  opacity: 1 !important;
  z-index: 2 !important;
  pointer-events: auto !important;
}

body.straight-frontpage .testimonial-card.is-next {
  transform: translateX(calc(100% - 140px)) scale(0.94) !important;
  opacity: 0.72 !important;
  z-index: 1 !important;
}

body.straight-frontpage .testimonial-card blockquote {
  font-size: clamp(1.25rem, 1.55vw, 1.75rem) !important;
  line-height: 1.22 !important;
}

body.straight-frontpage .testimonial-dots {
  position: absolute;
  left: 50%;
  bottom: 88px;
  z-index: 6;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

body.straight-frontpage .testimonial-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 244, 238, 0.3);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease, transform 180ms ease;
}

body.straight-frontpage .testimonial-dots button:hover,
body.straight-frontpage .testimonial-dots button:focus-visible {
  background: rgba(247, 244, 238, 0.68);
  outline: 2px solid rgba(247, 244, 238, 0.65);
  outline-offset: 3px;
}

body.straight-frontpage .testimonial-dots button[aria-current="true"] {
  width: 28px;
  background: #c47a5a;
}

body.straight-frontpage .testimonial-dots button.is-active {
  width: 28px;
  background: #c47a5a;
}

body.straight-frontpage .nav-app-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 4px;
  background: #172a22;
  color: #f7f4ee !important;
  box-shadow: 0 8px 20px rgba(23, 42, 34, 0.16);
}

body.straight-frontpage .test-front-hero__actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

body.straight-frontpage .hero-app-button {
  display: inline-flex !important;
  min-width: min(220px, 100%);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  text-align: left;
  border: 1px solid rgba(247, 244, 238, 0.62) !important;
  color: #f7f4ee !important;
  background: rgba(16, 28, 19, 0.54) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
}

body.straight-frontpage .hero-app-button span {
  font-size: 0.95rem;
}

body.straight-frontpage .hero-app-button small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.72;
  text-transform: uppercase;
}

body.straight-frontpage .hero-consultation-button {
  display: inline-flex !important;
  min-width: min(290px, 100%);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  text-align: left;
  border: 2px solid #f3d0ba !important;
  color: #fffaf5 !important;
  background: #c67652 !important;
  box-shadow: 0 20px 42px rgba(9, 15, 11, 0.34) !important;
}

body.straight-frontpage .hero-consultation-button span {
  font-size: 1.02rem;
}

body.straight-frontpage .hero-consultation-button small {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  opacity: 0.86;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  body.straight-frontpage .testimonial-stage {
    min-height: 690px !important;
  }

  body.straight-frontpage .testimonial-display,
  body.straight-frontpage .testimonial-card,
  body.straight-frontpage .testimonial-card.is-active {
    min-height: 570px !important;
  }

  body.straight-frontpage .testimonial-display {
    padding-right: 28px !important;
  }

  body.straight-frontpage .testimonial-card,
  body.straight-frontpage .testimonial-card.is-active {
    width: calc(100% - 28px) !important;
  }

  body.straight-frontpage .testimonial-card.is-next {
    transform: translateX(calc(100% - 74px)) scale(0.96) !important;
  }

  body.straight-frontpage .testimonial-card blockquote {
    font-size: clamp(1.08rem, 4.8vw, 1.35rem) !important;
    line-height: 1.23 !important;
  }

  body.straight-frontpage .testimonial-dots {
    bottom: 92px;
  }

  body.straight-frontpage .test-front-hero__actions,
  body.straight-frontpage .hero-app-button,
  body.straight-frontpage .hero-consultation-button {
    width: 100%;
  }
}
