/* ==========================================================================
   Gugu Globally — About page (about.html)
   THE LIVING NETWORK, told in five sections. Monochrome only.
   Map strokes and fills come from the shared .hero-map rules in style.css;
   this file only places the maps and styles the page's own elements.
   ========================================================================== */

/* ---------- Shared map placement (overrides .hero-map's absolute layer) ---------- */
.ab-map { z-index: auto; will-change: auto; }
.ab-map .ab-mesh { opacity: 0.4; stroke-width: 1; }
.ab-map .ab-route-base { opacity: 0.18; }
.ab-map .ab-runner-halo { fill: var(--pure); opacity: 0.22; }
.ab-map .ab-runner-dot { fill: var(--pure); }
.ab-map .ab-hub { fill: none; stroke: var(--pure); stroke-width: 1; opacity: 0; }
.ab-map svg { overflow: visible; }

.ab-h2 {
  font-size: clamp(2.1rem, 5vw, 5.75rem);
  text-wrap: balance;
}

/* ==========================================================================
   Opening: hero + network (one sticky map behind both)
   ========================================================================== */

.ab-open { position: relative; background: var(--obsidian); isolation: isolate; }
.ab-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ab-stage .ab-map { position: absolute; inset: 0; }
.ab-stage-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.62) 42%, rgba(10, 10, 10, 0.12) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0) 26%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0) 18%);
}

.ab-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: clamp(40px, 8vh, 96px);
}
.ab-hero-title {
  font-size: clamp(2rem, 8vw, 9rem);
  line-height: 0.92;
  color: rgba(245, 245, 243, 0.62);
}
.ab-hero-line { display: block; overflow: hidden; padding-bottom: 0.07em; margin-bottom: -0.07em; }
.ab-hero-line > span { display: block; will-change: transform; }
.ab-hero-line--lit { color: var(--pure); }
/* Hidden until about.js starts the intro (or the 2.5s fail-safe) */
.ui-motion:not(.intro-ready) .ab-hero-title { visibility: hidden; }

.ab-intro { padding-block: clamp(40px, 10vh, 140px) clamp(120px, 26vh, 300px); }
.ab-intro-copy { max-width: 36rem; display: grid; gap: 1.4em; }
.ab-intro-copy p { color: rgba(245, 245, 243, 0.74); font-size: var(--fs-lead); line-height: 1.5; }
.ab-intro-copy .ab-lead { color: var(--paper); }
.ab-intro-copy .ab-statement {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-size: clamp(1.9rem, 3.4vw, 3.6rem);
  color: rgba(245, 245, 243, 0.62);
}
.ab-intro-copy .ab-statement:not(.ab-statement--lit) { margin-top: 1.2em; }
.ab-intro-copy .ab-statement--lit { color: var(--pure); }

/* ==========================================================================
   2. Shipper and carrier, joined by a load
   ========================================================================== */

.ab-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 120px);
}
.ab-head .ab-h2 { grid-column: 1 / span 8; }
.ab-head-text {
  grid-column: 9 / -1;
  justify-self: end;
  max-width: 26rem;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-2);
}

.ab-link { border-top: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light); padding-block: clamp(36px, 5vw, 72px); }
.ab-link-svg { width: 100%; height: auto; overflow: visible; }
.ab-link-base { fill: none; stroke: var(--rule-light); stroke-width: 1.5; stroke-dasharray: 4 7; }
.ab-link-live { fill: none; stroke: var(--obsidian); stroke-width: 1.6; stroke-linecap: round; }
.ab-node-frame { fill: var(--paper); stroke: var(--obsidian); stroke-width: 1.4; }
.ab-node-glyph { fill: none; stroke: var(--obsidian); stroke-width: 1.4; stroke-linejoin: round; }
.ab-load { fill: var(--obsidian); }
.ab-offer { fill: none; stroke: var(--obsidian); stroke-width: 1.4; opacity: 0; }

.ab-link-text {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "a a a a . . . . b b b b"
    ". . c c c c c c c c . .";
  column-gap: 24px;
  row-gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-size: clamp(1.35rem, 2.2vw, 2.25rem);
}
.ab-link-a { grid-area: a; }
.ab-link-b { grid-area: b; text-align: right; }
.ab-link-c { grid-area: c; text-align: center; text-wrap: balance; }

.ab-after {
  margin-top: clamp(48px, 6vw, 96px);
  margin-left: auto;
  max-width: 32rem;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-2);
}

/* ==========================================================================
   3. One route, one moving point
   ========================================================================== */

.ab-move { background: var(--obsidian); overflow: hidden; }
.ab-move-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
}
.ab-move-copy { grid-column: 1 / span 5; display: grid; gap: 1.3em; position: relative; z-index: 1; }
.ab-move-copy .ab-h2 { margin-bottom: 0.4em; font-size: clamp(2.1rem, 4.2vw, 4.75rem); }
.ab-move-copy p { font-size: var(--fs-lead); line-height: 1.5; color: rgba(245, 245, 243, 0.74); max-width: 30rem; }
.ab-move-map {
  grid-column: 6 / -1;
  position: relative;
  height: min(76vh, 720px);
  /* soft edge on every side: the ellipse reaches full transparency at the box edges */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);
}
.ab-move-map .ab-map { position: absolute; inset: 0; }

/* ==========================================================================
   4. Editorial, no cards
   ========================================================================== */

.ab-people-title { max-width: 14ch; margin-bottom: clamp(56px, 7vw, 120px); }
.ab-people-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: clamp(48px, 6vw, 96px);
}
.ab-people-lead {
  grid-column: 1 / span 5;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  text-wrap: balance;
}
.ab-people-list {
  grid-column: 7 / -1;
  position: relative;
  display: grid;
  padding-left: 34px;
}
/* a discrete route line linking the four lines */
.ab-people-list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.55em;
  bottom: 1.55em;
  width: 1px;
  background: var(--rule-light);
}
.ab-people-list > span {
  position: relative;
  display: block;
  padding-block: 0.95em;
  border-top: 1px solid var(--rule-light);
  font-size: var(--fs-lead);
  line-height: 1.4;
}
.ab-people-list > span:last-child { border-bottom: 1px solid var(--rule-light); }
.ab-people-list > span::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border: 1px solid var(--obsidian);
  border-radius: 50%;
  background: var(--paper);
}
.ab-people-close {
  grid-column: 7 / -1;
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-2);
}

/* ==========================================================================
   5. One network + Final
   ========================================================================== */

.ab-close { position: relative; background: var(--obsidian); isolation: isolate; overflow: hidden; }
.ab-close-map { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ab-close-map .ab-map { position: absolute; inset: 0; }
.ab-close-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 46% at 50% 34%, rgba(10, 10, 10, 0.86) 0%, rgba(10, 10, 10, 0.5) 60%, rgba(10, 10, 10, 0.1) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0) 16%),
    linear-gradient(0deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.75) 30%, rgba(10, 10, 10, 0) 60%);
}

.ab-one {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-block: var(--section-y);
}
.ab-one .wrap { display: grid; justify-items: center; gap: 1.1em; }
.ab-one .ab-h2 { max-width: 18ch; margin-bottom: 0.35em; }
.ab-one p { font-size: var(--fs-lead); line-height: 1.45; color: rgba(245, 245, 243, 0.8); max-width: 32rem; }

.ab-final { padding-block: clamp(80px, 14vw, 220px) clamp(120px, 18vw, 280px); text-align: center; }
.ab-final .wrap { display: grid; justify-items: center; gap: clamp(18px, 2.4vw, 32px); }
.ab-final-brand { font-size: clamp(3rem, 10vw, 11rem); color: var(--pure); }
.ab-final-line { font-size: clamp(1.25rem, 2vw, 2rem); color: rgba(245, 245, 243, 0.8); letter-spacing: -0.01em; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 899px) {
  .ab-head .ab-h2, .ab-head-text { grid-column: 1 / -1; justify-self: start; }
  .ab-link-text {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b" "c";
    font-size: clamp(1.25rem, 5vw, 1.6rem);
  }
  .ab-link-b, .ab-link-c { text-align: left; }
  .ab-move-copy, .ab-move-map { grid-column: 1 / -1; }
  .ab-move-map { height: 72vw; margin-top: 48px; }
  .ab-people-lead, .ab-people-list, .ab-people-close { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .ab-stage-fade {
    background:
      linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.55) 60%, rgba(10, 10, 10, 0.7) 100%);
  }
  .ab-intro-copy { max-width: none; }
  /* the static map stays behind the title, quieter */
  .ab-stage .ab-map { opacity: 0.45; }
  .ab-link { padding-block: 28px; }
  /* the diagram scales down; its strokes keep their weight */
  .ab-link-svg path, .ab-link-svg rect, .ab-link-svg circle { vector-effect: non-scaling-stroke; }
}
