/* ========================= */
/* ABOUT PAGE TOKENS */
/* ========================= */
:root {
  --about-panel: rgba(17, 20, 26, 0.9);
  --about-line: rgba(255, 255, 255, 0.15);
}

/* ========================= */
/* ABOUT HERO */
/* ========================= */
.about-hero {
  position: relative;
  min-height: min(760px, 88vh);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
  padding: 136px max(24px, calc((100% - 1180px) / 2)) 64px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(4, 6, 10, 0.9) 0%,
      rgba(5, 7, 11, 0.62) 56%,
      rgba(5, 7, 11, 0.34) 100%
    ),
    url("http://mmacasbahfight.com/wp-content/uploads/2025/11/IMG_4958-scaled.jpg")
      center / cover no-repeat;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, rgba(5, 7, 11, 0.9));
  pointer-events: none;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 /
      84px 84px,
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 84px
      84px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 75%);
  mask-image: linear-gradient(90deg, #000, transparent 75%);
  opacity: 0.45;
  pointer-events: none;
}

.about-hero-content,
.about-stats {
  position: relative;
  z-index: 1;
}

.about-hero-content {
  max-width: 720px;
}

.about-kicker {
  margin: 0 0 14px;
  color: #ff9499;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-hero h1,
.about-section-head h2 {
  margin: 0;
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 0.9;
}

.about-hero h1 {
  font-size: clamp(3.8rem, 8.6vw, 7.4rem);
}

.about-lead {
  max-width: 590px;
  margin: 24px 0 30px;
  color: #e0e5ed;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.about-cta,
.story-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 20px;
  background: linear-gradient(115deg, #d6121c, #ff5159);
  box-shadow: 0 12px 24px rgba(239, 26, 35, 0.25);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.about-cta:hover,
.story-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(239, 26, 35, 0.38);
}

.about-cta:focus-visible,
.story-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.about-stats {
  display: grid;
  width: min(100%, 430px);
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--about-line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 12, 17, 0.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.about-stats div {
  min-height: 136px;
  padding: 24px 26px;
  border-right: 1px solid var(--about-line);
}

.about-stats div:last-child {
  border-right: 0;
}

.about-stats strong,
.about-stats span {
  display: block;
}

.about-stats strong {
  opacity: 0;
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  animation: about-date-fade 700ms var(--motion-ease-out) forwards;
  transition:
    color var(--motion-base) var(--motion-ease),
    text-shadow var(--motion-base) var(--motion-ease);
}

.about-stats div:hover strong {
  color: #ff6b73;
  text-shadow: 0 0 18px rgba(239, 26, 35, 0.28);
}

.about-stats div:first-child strong {
  animation-delay: 160ms;
}

.about-stats div:last-child strong {
  animation-delay: 300ms;
}

@keyframes about-date-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.about-stats span {
  margin-top: 6px;
  color: #c5ccd6;
  font-size: 0.78rem;
  line-height: 1.35;
}

.about-history,
.about-values,
.about-installations {
  padding: clamp(72px, 9vw, 120px) 24px;
}

/* ========================= */
/* ABOUT HISTORY */
/* ========================= */
.about-history {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(239, 26, 35, 0.25), transparent 30%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0
      0 / 58px 58px,
    #0b0e13;
}

/* ========================= */
/* ABOUT VALUES */
/* ========================= */
.about-values {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 15% 92%,
      rgba(239, 26, 35, 0.26),
      transparent 34%
    ),
    linear-gradient(135deg, #171b23 0%, #10141b 58%, #131720 100%);
}

.about-values::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 26px,
    rgba(255, 255, 255, 0.025) 27px 28px
  );
  opacity: 0.75;
  pointer-events: none;
}

.about-installations {
  background:
    radial-gradient(circle at 8% 28%, rgba(239, 26, 35, 0.18), transparent 28%),
    #090b10;
}

.about-section-head,
.story-layout,
.values-grid,
/* ========================= */
/* INSTALLATION GALLERY */
/* ========================= */
.installation-grid {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.about-section-head {
  margin-bottom: 38px;
}

.about-section-head h2 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.about-intro {
  max-width: 660px;
  margin: 18px 0 0;
  color: #c9d0da;
  line-height: 1.72;
}

.values-intro {
  max-width: 600px;
  margin: 18px 0 0;
  color: #c9d1dc;
  font-size: 1.02rem;
  line-height: 1.7;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.story-copy {
  border-left: 2px solid #ef1a23;
  padding: 5px 0 5px 28px;
}

.story-copy p {
  margin: 0 0 20px;
  color: #d2d7df;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.82;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.story-timeline {
  border: 1px solid var(--about-line);
  border-radius: 12px;
  padding: 22px;
  background: var(--about-panel);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.timeline-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--about-line);
  border-radius: 8px;
  transition:
    background-color var(--motion-base) var(--motion-ease),
    border-color var(--motion-base) var(--motion-ease),
    box-shadow var(--motion-base) var(--motion-ease),
    transform var(--motion-base) var(--motion-ease);
}

.timeline-step:hover {
  border-bottom-color: rgba(239, 26, 35, 0.65);
  background: rgba(239, 26, 35, 0.11);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transform: translateX(6px);
}

.timeline-step span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(239, 26, 35, 0.17);
  color: #ff8990;
  font-size: 0.72rem;
  font-weight: 800;
  transition:
    background-color var(--motion-base) var(--motion-ease),
    box-shadow var(--motion-base) var(--motion-ease),
    color var(--motion-base) var(--motion-ease),
    transform var(--motion-base) var(--motion-ease);
}

.timeline-step:hover span {
  background: rgba(239, 26, 35, 0.2);
  box-shadow: 0 8px 18px rgba(239, 26, 35, 0.32);
  color: #ff6b73;
  transform: scale(1.08) rotate(-4deg);
}

.timeline-step strong {
  color: #fff;
  font-size: 0.95rem;
}

.timeline-step p {
  margin: 5px 0 0;
  color: #c4ccd7;
  font-size: 0.88rem;
  line-height: 1.55;
}

.story-toggle {
  width: 100%;
  margin-top: 20px;
  border-color: rgba(239, 26, 35, 0.65);
  background: transparent;
  box-shadow: none;
  color: #ff979d;
}

.story-toggle:hover {
  background: rgba(239, 26, 35, 0.13);
  box-shadow: none;
}

.story-toggle i {
  transition: transform 0.22s ease;
}

.story-toggle[aria-expanded="true"] i {
  transform: rotate(45deg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.value-card {
  position: relative;
  min-height: 275px;
  padding: 32px 30px 28px;
  border: 1px solid var(--about-line);
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(32, 36, 46, 0.96),
    rgba(15, 18, 24, 0.94)
  );
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.value-card:nth-child(2) {
  margin-top: 34px;
}

.value-card:nth-child(3) {
  margin-top: 68px;
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 26, 35, 0.75);
  background: linear-gradient(
    145deg,
    rgba(46, 25, 30, 0.94),
    rgba(18, 19, 25, 0.94)
  );
  box-shadow: 0 26px 36px rgba(0, 0, 0, 0.3);
}

.value-index {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(255, 255, 255, 0.26);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 2rem;
  letter-spacing: 0.07em;
}

.value-card i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(239, 26, 35, 0.15);
  color: #ff727a;
  font-size: 1.15rem;
}

.value-card h3 {
  margin: 30px 0 12px;
  color: #fff;
  font-size: 1.25rem;
}

.value-card p {
  margin: 0;
  color: #c7ced9;
  font-size: 0.94rem;
  line-height: 1.7;
}

.installation-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, 260px);
  gap: 16px;
}

.installation-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--about-line);
  border-radius: 12px;
  background: #12151b;
}

.installation-grid .installation-large {
  grid-row: span 2;
}

.installation-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.installation-grid figure:hover img {
  transform: scale(1.05);
  filter: saturate(1.12);
}

.installation-grid figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 18px 16px;
  background: linear-gradient(transparent, rgba(4, 5, 8, 0.9));
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
}

.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.reveal-on-scroll.is-pending {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal-on-scroll.is-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= */
/* RESPONSIVE OVERRIDES */
/* ========================= */
@media (max-width: 840px) {
  .about-hero {
    min-height: 720px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .about-hero {
    min-height: 680px;
    padding: 116px 16px 36px;
  }

  .about-hero h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .about-stats {
    width: 100%;
  }

  .about-stats div {
    min-height: 122px;
    padding: 20px;
  }

  .about-history,
  .about-values,
  .about-installations {
    padding: 68px 16px;
  }

  .story-copy {
    padding-left: 18px;
  }

  .installation-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .installation-grid .installation-large {
    grid-row: auto;
  }

  .installation-grid figure {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-stats strong {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
