/* About StoryGate Page - Stepped Reading Experience */

/* Intro Hero Phase (Centered large in screen initially) */
.about-page .bio-hero {
  min-height: clamp(520px, 80vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 0 clamp(2rem, 4vw, 3rem);
  position: relative;
  transition: min-height 500ms cubic-bezier(0.16, 1, 0.3, 1), padding 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-page .bio-hero::after {
  display: none;
}

.about-page .bio-hero__masthead {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-page .bio-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: auto;
  padding-block: clamp(1rem, 3vw, 2.5rem);
}

.about-page .bio-hero h1 {
  font-family: Spectral, Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-bottom: 1.25rem;
  color: var(--story);
  transition: font-size 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-page .bio-hero__introduction {
  max-width: 38ch;
  color: rgb(241 238 230 / 0.82);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  margin: 0 auto clamp(2rem, 4vh, 3rem);
  transition: opacity 400ms ease, font-size 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero CTA Button */
.bio-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(241, 238, 230, 0.08);
  border: 1px solid rgba(241, 238, 230, 0.28);
  color: var(--story);
  cursor: pointer;
  box-shadow: 0 0 24px rgba(241, 238, 230, 0.12);
  transition: all 260ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: heroCtaPulse 2.4s infinite ease-in-out;
}

.bio-hero__cta:hover {
  background: var(--story);
  color: #0b0d0c;
  transform: translateY(4px) scale(1.08);
  box-shadow: 0 0 32px rgba(241, 238, 230, 0.45);
}

@keyframes heroCtaPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 16px rgba(241, 238, 230, 0.1);
  }
  50% {
    transform: translateY(6px);
    box-shadow: 0 0 28px rgba(241, 238, 230, 0.25);
  }
}

/* Initial state: Biography reading stage hidden until CTA or content mode */
.about-page:not([data-stage="content"]) .biography {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  pointer-events: none;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

/* Content Stage: "Was ist StoryGate?" slided zum Titel, Content Box ist zentriert */
.about-page[data-stage="content"] .bio-hero {
  min-height: auto;
  padding: 1.5rem 0 clamp(0.75rem, 2vw, 1.5rem);
  display: block;
}

.about-page[data-stage="content"] .bio-hero__masthead {
  position: static;
}

.about-page[data-stage="content"] .bio-hero__copy {
  display: block;
  text-align: left;
  max-width: 780px;
  margin: 0 auto;
  padding-block: clamp(0.75rem, 2vw, 1.25rem);
}

.about-page[data-stage="content"] .bio-hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  max-width: 14ch;
  margin-bottom: 0.35rem;
  animation: aboutTitleSlideToTop 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-page[data-stage="content"] .bio-hero__introduction {
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  max-width: 48ch;
  color: rgb(241 238 230 / 0.65);
  margin: 0 0 0.5rem;
  text-align: left;
}

.about-page[data-stage="content"] .bio-hero__cta {
  display: none;
}

@keyframes aboutTitleSlideToTop {
  from {
    transform: translateY(24px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Stepped Reading Stage - Centered Content Box */
.about-page .biography {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto;
  padding-top: 0.5rem;
  padding-bottom: clamp(4rem, 8vw, 6rem);
  min-height: clamp(380px, 48vh, 560px);
  position: relative;
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-page[data-stage="content"] .biography {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  height: auto;
  animation: aboutContentBoxEnter 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes aboutContentBoxEnter {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Story Blocks: Focused Centered Interactive Reading Card */
.about-page .story-block {
  display: none;
  order: 1;
  width: 100%;
  min-width: 0;
  position: relative;
  background: rgba(241, 238, 230, 0.03);
  border: 1px solid rgba(241, 238, 230, 0.12);
  border-radius: clamp(16px, 3vw, 24px);
  padding: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(4.25rem, 8vw, 5.25rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: text;
  touch-action: pan-y;
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.about-page .story-block * {
  touch-action: pan-y;
}

.about-page .story-block a,
.about-page .story-block button,
.about-page .story-block summary {
  touch-action: manipulation;
}

.about-page .story-block:hover {
  border-color: rgba(241, 238, 230, 0.22);
  background: rgba(241, 238, 230, 0.045);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.55), 0 0 24px rgba(241, 238, 230, 0.04);
}

.about-page .story-block + .story-block {
  margin-top: 0;
}

.about-page .story-block[data-active="true"] {
  display: block;
}

.about-page .story-block[data-active="true"][data-direction="forward"] {
  animation: aboutSlideInForward 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-page .story-block[data-active="true"][data-direction="backward"] {
  animation: aboutSlideInBackward 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-page .story-block[data-active="true"]:not([data-direction]) {
  animation: aboutBlockFadeIn 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Stepper Navigation: Positioned UNDERNEATH the Content Box (Apple-Style Points) */
.about-stepper {
  order: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) auto 0;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  box-shadow: none;
  user-select: none;
}

.about-stepper__progress {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* x/x count and nav buttons removed - truly ONLY the Apple points under the box */
.about-stepper__count,
.about-stepper__actions {
  display: none !important;
}

/* Apple Style Points Unterhalb der Box */
.about-stepper__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.about-stepper__dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(241, 238, 230, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: width 260ms cubic-bezier(0.16, 1, 0.3, 1),
              background 260ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-stepper__dot::before {
  content: "";
  position: absolute;
  inset: -10px -4px;
}

.about-stepper__dot:hover {
  background: rgba(241, 238, 230, 0.65);
  transform: scale(1.15);
}

.about-stepper__dot.is-active {
  width: 22px;
  background: var(--story);
  box-shadow: 0 0 10px rgba(241, 238, 230, 0.45);
}

.about-stepper__dot:focus-visible {
  outline: 2px solid var(--story);
  outline-offset: 3px;
}

.about-stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9999px;
  background: rgba(241, 238, 230, 0.05);
  border: 1px solid var(--line);
  color: var(--story);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition), transform var(--transition);
}

.about-stepper__btn:hover:not(:disabled) {
  background: rgba(241, 238, 230, 0.16);
  border-color: rgba(241, 238, 230, 0.4);
  transform: translateY(-1px);
}

.about-stepper__btn:active:not(:disabled) {
  transform: translateY(0) scale(0.96);
}

.about-stepper__btn:disabled {
  opacity: 0.15;
  cursor: not-allowed;
}

.about-stepper__btn:focus-visible {
  outline: 2px solid var(--story);
  outline-offset: 3px;
}

/* Interactive forward flow button positioned at bottom-right of the card */
.about-page .story-block__forward {
  position: absolute;
  right: clamp(1.25rem, 3.5vw, 2.25rem);
  bottom: clamp(1.25rem, 3.5vw, 2rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 9999px;
  background: rgba(241, 238, 230, 0.08);
  border: 1px solid rgba(241, 238, 230, 0.28);
  color: var(--story);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.about-page .story-block__forward:hover {
  background: var(--story);
  color: #0b0d0c;
  transform: translateX(3px) scale(1.06);
  box-shadow: 0 0 24px rgba(241, 238, 230, 0.45);
}

.about-page .story-block__forward:active {
  transform: translateX(1px) scale(0.96);
}

.about-page .story-block__forward:focus-visible {
  outline: 2px solid var(--story);
  outline-offset: 3px;
}

/* Tap ripple effect on card click */
.about-tap-ripple {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgb(241 238 230 / 0.16) 0%, rgb(241 238 230 / 0) 70%);
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  animation: aboutTapRippleAnim 480ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes aboutTapRippleAnim {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(15);
  }
}

@keyframes aboutSlideInForward {
  from {
    opacity: 0;
    transform: translateX(36px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes aboutSlideInBackward {
  from {
    opacity: 0;
    transform: translateX(-36px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes aboutBlockFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-page .story-block[data-active="true"],
  .about-page .story-block[data-active="true"][data-direction="forward"],
  .about-page .story-block[data-active="true"][data-direction="backward"] {
    animation: none;
  }

  .about-tap-ripple {
    display: none;
  }
}

/* Adaptive Typography for Single Paragraph Display */
.about-page .story-block__intro {
  max-width: 42ch;
  font-family: Spectral, Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 1.2rem + 1.2cqi, 2.2rem);
  line-height: 1.52;
  letter-spacing: -0.015em;
  color: var(--story);
  outline: none;
}

@supports not (font-size: 1cqi) {
  .about-page .story-block__intro {
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  }
}

/* More About Chevron Disclosure */
.about-page .story-block__details {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}

.about-page .story-block__summary {
  font-size: clamp(0.86rem, 0.9vw, 0.95rem);
  letter-spacing: 0.02em;
}

.about-page .story-block__expanded {
  padding-top: clamp(1.4rem, 2.5vw, 2rem);
  max-width: 56ch;
}

.about-page .story-block__expanded p {
  font-size: clamp(1.1rem, 0.98rem + 0.4cqi, 1.32rem);
  line-height: 1.68;
  color: rgb(241 238 230 / 0.88);
}

@supports not (font-size: 1cqi) {
  .about-page .story-block__expanded p {
    font-size: clamp(1.1rem, 1.35vw, 1.32rem);
  }
}

/* Concluding Startup Status */
.about-page .story-block--status {
  display: none;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.about-page .story-block--status[data-active="true"] {
  display: block;
  animation: aboutBlockFadeIn 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-page .story-block--status p {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  line-height: 1.65;
  max-width: 52ch;
}

/* International Font Bindings */
html[lang="th"] .about-stepper {
  font-family: "Noto Sans Thai", Thonburi, Tahoma, sans-serif;
}

html[lang="zh-Hans"] .about-stepper {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif;
}

html[lang="zh-Hant"] .about-stepper {
  font-family: "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
}

html[lang="th"] .about-page .story-block__intro {
  font-family: "Noto Serif Thai", Thonburi, Tahoma, serif;
}

html[lang="zh-Hans"] .about-page .story-block__intro {
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
}

html[lang="zh-Hant"] .about-page .story-block__intro {
  font-family: "Noto Serif TC", "Songti TC", PMingLiU, serif;
}

/* Responsive Adjustments */
@media (max-width: 719px) {
  .about-page[data-stage="hero"] .bio-hero {
    min-height: clamp(440px, 85vh, 680px);
    padding: 1.5rem 0;
  }

  .about-page[data-stage="hero"] .bio-hero h1 {
    font-size: clamp(2rem, 8.5vw, 3rem);
    max-width: 10ch;
  }

  .about-page[data-stage="hero"] .bio-hero__introduction {
    font-size: clamp(1.08rem, 4.5vw, 1.35rem);
    max-width: 28ch;
  }

  .about-page[data-stage="content"] .bio-hero h1 {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }

  .about-stepper {
    margin: 1.25rem auto 0;
    gap: 0.75rem;
  }

  .about-stepper__dots {
    gap: 6px;
  }

  .about-stepper__dot {
    width: 6px;
    height: 6px;
  }

  .about-stepper__dot.is-active {
    width: 18px;
  }

  .about-stepper__btn {
    width: 2.1rem;
    height: 2.1rem;
  }

  .about-page .story-block__intro {
    font-size: clamp(1.22rem, 4.8vw, 1.55rem);
    line-height: 1.5;
  }

  .about-page .story-block__expanded p {
    font-size: clamp(1.02rem, 3.8vw, 1.18rem);
    line-height: 1.62;
  }
}
