/* ==========================================================================
   Foxwriters — About page
   ========================================================================== */

.page-about .about-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.page-about .page-hero__title {
  max-width: 14ch;
}


/* --------------------------------------------------------------------------
   Story
   -------------------------------------------------------------------------- */
.page-about .about-story {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.page-about .about-story__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.page-about .about-story__visual {
  position: relative;
  justify-self: center;
  /* width: min(100%, 340px); */
}

.page-about .about-story__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow:
    0 24px 48px rgba(15, 35, 65, 0.18),
    0 4px 12px rgba(15, 35, 65, 0.08);
}

.page-about .about-story__float {
  position: absolute;
  left: -0.75rem;
  bottom: 1.5rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  max-width: 11.5rem;
}

.page-about .about-story__float-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.page-about .about-story__float-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}

.page-about .about-story__content h2 {
  margin: 0 0 1.15rem;
  max-width: 16ch;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.page-about .about-story__content p {
  margin: 0 0 1rem;
  max-width: 54ch;
  color: var(--color-secondary);
  line-height: 1.75;
}

.page-about .about-story__emphasis {
  margin-top: 1.35rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary) !important;
  line-height: 1.55 !important;
}

/* --------------------------------------------------------------------------
   Beliefs
   -------------------------------------------------------------------------- */
.page-about .about-beliefs {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.page-about .about-beliefs__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.page-about .about-beliefs__intro {
  position: sticky;
  top: calc(var(--header-height) + 1.25rem);
}

.page-about .about-beliefs__intro h2 {
  margin: 0 0 1rem;
  max-width: 10ch;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.page-about .about-beliefs__intro p {
  margin: 0;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.page-about .about-beliefs__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-about .about-belief {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-about .about-belief:first-child {
  padding-top: 0;
}

.page-about .about-belief:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-about .about-belief__num {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent-light);
  padding-top: 0.2rem;
}

.page-about .about-belief__title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.page-about .about-belief__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   Approach
   -------------------------------------------------------------------------- */
.page-about .about-approach {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.page-about .about-approach__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(15, 35, 65, 0.06);
}

.page-about .about-approach__copy h2 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}

.page-about .about-approach__copy p {
  margin: 0 0 0.9rem;
  color: var(--color-secondary);
  line-height: 1.75;
  max-width: 52ch;
}

.page-about .about-approach__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.page-about .about-approach__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
}

.page-about .about-approach__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(30, 155, 255, 0.12);
  color: var(--color-accent);
}

.page-about .about-approach__icon svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Why + Expect
   -------------------------------------------------------------------------- */
.page-about .section--dark .section-heading__eyebrow {
  color: var(--color-accent-light);
}

/* --------------------------------------------------------------------------
   Why authors choose us (collage + 2x2)
   -------------------------------------------------------------------------- */
.page-about .about-why {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.page-about .about-why__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(ellipse 55% 50% at 12% 40%, rgba(30, 155, 255, 0.35), transparent 60%),
    radial-gradient(ellipse 45% 45% at 88% 20%, rgba(18, 112, 216, 0.28), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Crect x='8' y='8' width='40' height='40' rx='10' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='1.25'/%3E%3C/svg%3E");
  background-size: auto, auto, 72px 72px;
}

.page-about .about-why__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.page-about .about-why__visual {
  position: relative;
  width: min(100%, 380px);
  height: clamp(420px, 52vw, 560px);
  margin-inline: auto;
}

.page-about .about-why__shot {
  position: absolute;
  margin: 0;
  width: min(58%, 210px);
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.2);
  background: #1a2a40;
  will-change: transform;
  animation: about-why-float 6.5s ease-in-out infinite;
}

.page-about .about-why__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.page-about .about-why__shot--1 {
  top: 0;
  right: 4%;
  z-index: 2;
  animation-duration: 7s;
  animation-delay: 0s;
}

.page-about .about-why__shot--2 {
  top: 28%;
  left: 0;
  z-index: 3;
  animation-name: about-why-float-alt;
  animation-duration: 8.2s;
  animation-delay: -1.4s;
}

.page-about .about-why__shot--3 {
  bottom: 0;
  right: 10%;
  z-index: 1;
  width: min(54%, 195px);
  animation-duration: 6.8s;
  animation-delay: -2.6s;
}

@keyframes about-why-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@keyframes about-why-float-alt {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 12px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-about .about-why__shot {
    animation: none;
    will-change: auto;
  }
}

.page-about .about-why__content {
  max-width: 36rem;
}

.page-about .about-why__title {
  margin: 0 0 1rem;
  max-width: 12ch;
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.page-about .about-why__lead {
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  max-width: 42ch;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.page-about .about-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
}

.page-about .about-why__item {
  min-width: 0;
}

.page-about .about-why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  color: var(--color-accent-light);
}

.page-about .about-why__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.page-about .about-why__item-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.page-about .about-why__item-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.66);
}

@media (max-width: 960px) {
  .page-about .about-why__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .page-about .about-why__visual {
    height: 420px;
    width: min(100%, 340px);
  }

  .page-about .about-why__content {
    max-width: none;
  }

  .page-about .about-why__title {
    max-width: 14ch;
  }
}

@media (max-width: 560px) {
  .page-about .about-why__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-about .about-why__visual {
    height: 360px;
  }

  .page-about .about-why__shot {
    border-radius: 22px;
  }
}


.page-about .about-expect__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.page-about .about-expect__card {
  padding: 1.75rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.page-about .about-expect__card:hover {
  border-color: #b8d4ea;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.page-about .about-expect__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.15rem;
  color: var(--color-accent);
  background: #eef6fc;
  border-radius: var(--radius-sm);
}

.page-about .about-expect__title {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.page-about .about-expect__text {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Process rail (dark section) — homepage-style line grow + glow
   -------------------------------------------------------------------------- */
.page-about .about-process__timeline {
  --about-process-node: 2.35rem;
  position: relative;
  margin-top: 2rem;
}

.page-about .about-process__line {
  position: absolute;
  top: calc(var(--about-process-node) / 2);
  left: 4%;
  right: 4%;
  height: 1px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.page-about .about-process__progress {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--color-accent-light), var(--color-accent));
  box-shadow: 0 0 10px rgba(58, 150, 239, 0.45);
}

.page-about .about-process__glow {
  position: absolute;
  top: 50%;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(50%, -50%);
  background: radial-gradient(circle, #ffffff 0%, var(--color-accent-light) 35%, transparent 70%);
  box-shadow:
    0 0 10px 3px rgba(58, 150, 239, 0.85),
    0 0 22px 8px rgba(18, 112, 216, 0.45);
  opacity: 0;
  pointer-events: none;
}

.page-about .about-process__rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.page-about .about-process__step {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.page-about .about-process__node {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--about-process-node);
  height: var(--about-process-node);
  border-radius: 50%;
  background: #0b1726;
  border: 1.5px solid rgba(159, 212, 255, 0.7);
  box-shadow: 0 0 0 6px rgba(18, 112, 216, 0.18);
  transform: scale(0);
  opacity: 0;
}

.page-about .about-process__index {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent-light);
  line-height: 1;
}

.page-about .about-process__label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  opacity: 0;
  transform: translateY(14px);
}

.page-about .about-process__cta {
  margin-top: 2.5rem;
  text-align: center;
}

.page-about .about-process.is-active .about-process__progress {
  animation: about-process-line-loop 7.5s var(--ease) infinite;
}

.page-about .about-process.is-active .about-process__glow {
  animation: about-process-glow-loop 7.5s var(--ease) infinite;
}

.page-about .about-process.is-active .about-process__node {
  animation: about-process-node-loop 7.5s cubic-bezier(0.22, 1.4, 0.36, 1) infinite;
  animation-delay: calc(0.18s + (var(--step-index) * 0.28s));
}

.page-about .about-process.is-active .about-process__label {
  animation: about-process-label-loop 7.5s var(--ease) infinite;
  animation-delay: calc(0.3s + (var(--step-index) * 0.28s));
}

@keyframes about-process-line-loop {
  0% { transform: scaleX(0); opacity: 1; }
  20% { transform: scaleX(1); opacity: 1; }
  68% { transform: scaleX(1); opacity: 1; }
  80% { transform: scaleX(1); opacity: 0.45; }
  90%, 100% { transform: scaleX(0); opacity: 0; }
}

@keyframes about-process-glow-loop {
  0% { opacity: 0; }
  4% { opacity: 1; }
  20% { opacity: 1; }
  68% { opacity: 1; }
  80% { opacity: 0.35; }
  90%, 100% { opacity: 0; }
}

@keyframes about-process-node-loop {
  0%, 4% { transform: scale(0); opacity: 0; }
  12% { transform: scale(1.16); opacity: 1; }
  16%, 68% { transform: scale(1); opacity: 1; }
  80% { transform: scale(0.9); opacity: 0.4; }
  90%, 100% { transform: scale(0); opacity: 0; }
}

@keyframes about-process-label-loop {
  0%, 6% { opacity: 0; transform: translateY(14px); }
  16%, 68% { opacity: 1; transform: translateY(0); }
  80% { opacity: 0.35; transform: translateY(6px); }
  90%, 100% { opacity: 0; transform: translateY(14px); }
}

/* --------------------------------------------------------------------------
   Stats (inside dark process section)
   -------------------------------------------------------------------------- */
.page-about .about-stats__board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  text-align: center;
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-about .about-stats__value {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
}

.page-about .about-stats__label {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .page-about .about-story__grid,
  .page-about .about-beliefs__layout,
  .page-about .about-approach__panel {
    grid-template-columns: 1fr;
  }

  .page-about .about-beliefs__intro {
    position: static;
  }

  .page-about .about-beliefs__intro h2,
  .page-about .about-story__content h2 {
    max-width: 16ch;
  }

  .page-about .about-story__visual {
    width: min(100%, 280px);
  }

  .page-about .about-story__float {
    left: 0;
    bottom: 1rem;
  }

  .page-about .about-expect__grid {
    grid-template-columns: 1fr;
  }

  .page-about .about-process__rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.5rem;
  }

  .page-about .about-process__line {
    display: none;
  }

  .page-about .about-process__node,
  .page-about .about-process__label {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .page-about .about-stats__board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1rem;
  }
}

@media (max-width: 560px) {
  .page-about .about-story__float {
    position: static;
    margin-top: 1rem;
    max-width: none;
  }

  .page-about .about-process__rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-about .about-approach__panel {
    padding: 1.35rem 1.15rem;
  }

  .page-about .about-belief {
    gap: 0.85rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-about .about-expect__card:hover {
    transform: none;
  }

  .page-about .about-process__progress,
  .page-about .about-process__glow,
  .page-about .about-process__node,
  .page-about .about-process__label {
    animation: none !important;
  }

  .page-about .about-process__progress {
    transform: scaleX(1) !important;
    opacity: 1 !important;
  }

  .page-about .about-process__glow {
    opacity: 0.85 !important;
  }

  .page-about .about-process__node,
  .page-about .about-process__label {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Space between Process section and the Genres band (this page only) */
.page-about .genre-grid {
  margin-top: 50px;
}
