/* About Us — same Azoogi modules, sequenced as an index + deep-dive */

.about-main {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
}

.about-num {
  display: block;
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* —— Hero (Data Centre) —— */
.about-hero {
  position: relative;
  min-height: var(--hero-min);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111;
  width: 100%;
}

.about-hero-media {
  position: absolute;
  inset: 0;
}

.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  display: block;
  filter: contrast(1.25) brightness(0.68) saturate(1.05);
  animation: aboutSlowZoom 22s ease-out forwards;
}

.about-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  display: block;
  filter: contrast(1.25) brightness(0.68) saturate(1.05);
  animation: aboutSlowZoom 22s ease-out forwards;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .48) 46%, rgba(0, 0, 0, .32) 100%),
    rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

@keyframes aboutSlowZoom {
  0% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1.1);
  }
}

.about-hero-copy {
  position: relative;
  z-index: 1;
  padding: var(--hero-pad-y-top) var(--hero-pad-x) var(--hero-pad-y-bottom);
  width: 100%;
}

.about-hero-copy>* {
  max-width: var(--site-max, 1400px);
}

.about-hero-copy .kicker {
  color: #8cc63f;
  margin-bottom: 10px;
  font-size: var(--fs-kicker);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-hero-copy h1 {
  margin: 0 0 16px;
  max-width: 30ch;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -.025em;
  color: #fff;
}

.about-hero-copy h1 span {
  font-family: var(--font-outline);
}

.about-hero-lead {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-lead);
  line-height: 1.65;
  padding-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .about-hero-media img,
  .about-hero-video {
    animation: none;
  }
}

/* —— Bands —— */
.about-band {
  padding: 50px 0;
}

.about-band--alt {
  background: var(--card-bg);
}

/* —— Intro (Data Centre intro) —— */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  justify-items: end;
}

.about-intro p {
  margin: 0;
  justify-self: start;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink);
}

.about-intro-action {
  justify-self: end;
}

.about-intro-action .btn {
  width: max-content;
  max-width: 100%;
}

/* —— Why heading —— */
.about-why-head {
  margin-bottom: clamp(28px, 4vw, 28px);
}

.about-split-copy .kicker {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  font-size: var(--fs-kicker);
  letter-spacing: 0.1em;
}

.about-split-copy h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-h2-section);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}

.about-split-copy h2 span {
  color: var(--accent);
}

/* —— Why deep-dive (pinned visual + scrolling narrative) —— */
.about-why {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
}

.about-why-sticky {
  position: sticky;
  /* Kept shorter than a step and centred via `top`, so the visual is already
     pinned before the first step reaches the middle and stays pinned until
     after the last one leaves it. The offset also clears the fixed header. */
  top: 16svh;
  height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  box-sizing: border-box;
}

.about-why-visual {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}

.about-why-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .7s ease, transform 1.4s ease;
}

.about-why-visual img.is-active {
  opacity: 1;
  transform: scale(1);
}

.about-why-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
  color: #fff;
}

.about-why-count {
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .7);
}

.about-why-count b {
  font-weight: 600;
  color: var(--accent);
}

.about-why-track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, .26);
}

.about-why-bar {
  display: block;
  height: 100%;
  width: 16.6667%;
  background: var(--accent);
  transition: width .45s ease;
}

.about-why-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}

.about-why-rail li {
  flex: 1;
  margin: 0;
}

.about-why-rail button {
  width: 100%;
  padding: 9px 0 0;
  background: none;
  border: 0;
  border-top: 2px solid var(--line);
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--muted);
  text-align: left;
  transition: color .25s ease, border-color .25s ease;
}

.about-why-rail button:hover {
  color: var(--ink);
  border-top-color: var(--ink);
}

.about-why-rail button.is-active {
  color: var(--accent);
  border-top-color: var(--accent);
}

.about-why-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-why-step {
  position: relative;
  /* Must exceed .about-why-sticky's height, or the pinned visual gets pushed
     off-centre on the first and last steps. */
  min-height: 84svh;
  margin: 0;
  padding: 24px 0 24px clamp(24px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity .5s ease;
}

.about-why-steps.is-live .about-why-step {
  opacity: .34;
}

.about-why-steps.is-live .about-why-step.is-active {
  opacity: 1;
}

.about-why-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .55s ease;
}

.about-why-step.is-active::before {
  transform: scaleY(1);
}

.about-why-ghost {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-outline);
  font-size: clamp(58px, 8vw, 124px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.04em;
  color: var(--line);
  transition: color .45s ease, -webkit-text-stroke-color .45s ease;
}

@supports (-webkit-text-stroke: 1px black) {
  .about-why-ghost {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--line);
  }

  .about-why-step.is-active .about-why-ghost {
    -webkit-text-stroke-color: var(--accent);
    filter: drop-shadow(0 0 0.1em color-mix(in srgb, var(--accent) 42%, transparent));
  }
}

.about-why-step h3 {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--ink);
}

.about-why-step p {
  margin: 0;
  padding: 0;
  max-width: 48ch;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .about-why-visual img {
    transition: opacity .01s linear;
    transform: none;
  }

  .about-why-visual img.is-active {
    transform: none;
  }

  .about-why-steps.is-live .about-why-step {
    opacity: 1;
  }
}

/* —— International (AI CCT) —— */
.about-reach {
  position: relative;
  min-height: min(48vh, 440px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.about-reach-media {
  position: absolute;
  inset: 0;
}

.about-reach-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.12) brightness(0.72);
}

.about-reach::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .4) 55%, rgba(0, 0, 0, .25) 100%);
}

.about-reach-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(24px, 3vw, 36px);
}

.about-reach-inner .kicker,
.about-reach-inner h2,
.about-reach-inner p {
  max-width: 640px;
}

.about-reach-inner .kicker {
  color: #8cc63f;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--fs-kicker);
  letter-spacing: 0.1em;
}

.about-reach-inner h2 {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-h2-section);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
}

.about-reach-inner h2 span {
  color: var(--accent)
}

.about-reach-inner p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

/* —— Paths —— */
.about-path-section {
  display: grid;
  gap: clamp(18px, 3vw, 18px);
}

.about-path-head {
  text-align: left;
}

.about-path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-path-row {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.about-path-row:hover,
.about-path-row:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.16);
}

.about-path-row .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 16px 18px 18px;
  background: var(--bg);
}

.about-path-row .body h3 {
  padding-bottom: 5px;
}

.about-path-row h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-meta);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}

.about-path-row p {
  color: var(--muted);
  font-size: var(--fs-meta);
  line-height: 1.45;
  margin: 0 0 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about-path-row .more {
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: gap 0.3s ease;
  margin-top: auto;
}

.about-path-row:hover .more,
.about-path-row:focus-visible .more {
  gap: 12px;
}

/* —— Modal —— */
.about-modal[hidden] {
  display: none;
}

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
}

.about-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.about-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 36px));
  margin: 18vh auto 0;
  padding: 32px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
}

.about-modal-panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-h2-section);
  letter-spacing: -.02em;
}

.about-modal-panel p {
  margin: 0 0 22px;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--muted);
}

.about-modal-panel a:not(.btn) {
  color: var(--accent);
}

.about-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1024px) {
  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-intro-action {
    justify-self: start;
  }

  /* Single column: the visual pins under the header and the narrative
     scrolls beneath it, so the pairing survives on small screens. */
  .about-why {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-why-sticky {
    top: 60px;
    z-index: 2;
    height: auto;
    padding: 10px 0 16px;
    /* --card-bg is translucent, so it is composited over the page background
       to stay opaque while still matching the band colour. */
    background-color: var(--bg);
    background-image: linear-gradient(var(--card-bg), var(--card-bg));
  }

  .about-why-visual {
    flex: none;
    height: 34svh;
    min-height: 190px;
  }

  .about-why-step {
    min-height: 0;
    padding: 22px 0 22px 20px;
  }

  .about-why-step::before {
    top: 10%;
    bottom: 10%;
  }

  .about-why-steps.is-live .about-why-step {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .about-hero-copy h1 {
    max-width: none;
    font-size: var(--fs-h2);
  }

  .about-why-visual {
    height: 30svh;
  }

  .about-why-rail button {
    font-size: var(--fs-caption);
    letter-spacing: .08em;
  }

  .about-why-ghost {
    font-size: clamp(46px, 14vw, 64px);
  }

  .about-path-list {
    grid-template-columns: 1fr;
  }

  .about-modal-panel {
    margin-top: 16vh;
    padding: 24px 20px;
  }
}

/* Short phones: the header, pinned visual and rail leave too little room to
   read a point, so the visual gives some height back. Kept to narrow widths so
   wide-but-short screens don't get a letterboxed strip. */
@media (max-width: 640px) and (max-height: 720px) {
  .about-why-visual {
    height: 24svh;
    min-height: 128px;
  }

  .about-why-sticky {
    padding: 8px 0 12px;
  }
}