/* ============================================================================
   aboutus.css — styles for aboutus.html ONLY.
   Shared reset, tokens, fonts, navbar/footer live in default.css.
   This file adds only the About-page components. Navy #16469c throughout.

   Sections styled here:
     1  Page shell + intro (heading + two-paragraph copy beside the image)
     2  Timeline — "40+ Years of Journey" (the page's one bold moment)
     3  Our Team — responsive org chart (self-measuring CSS connectors)
     4  Reduced-motion
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. PAGE SHELL + INTRO
   Hero-less page: the site navbar is position:fixed at 80px and default.css has
   `body { padding: 0 !important }`, which cancels the navbar script's body
   padding-top. So — exactly like contactus.css — this page clears the fixed
   header itself with a FIXED pixel offset that never shrinks on narrow screens.
   --------------------------------------------------------------------------- */
.about_page {
  width: 75%;
  max-width: 1024px;
  margin: 0 auto;
  padding-top: calc(80px + clamp(1.5rem, 3vw, 3rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

/* Page heading — left-aligned, quiet. The bold moment is the timeline, not here. */
.about_intro_head {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.about_intro_head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #16469c;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}

/* subtle navy hairline under the H1 — structure, not decoration */
.about_intro_head h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 1rem;
  background: #16469c;
  border-radius: 2px;
}

/* Intro: copy on the left, image on the right. Collapses to one column < 860px. */
.about_intro {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about_intro_copy p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2a2a2a;
  margin: 0 0 1.1rem;
  max-width: 60ch;
}

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

/* the leading brand word in paragraph one (replaces the old inline font-size hack) */
.about_intro_lead {
  font-size: 1.6rem;
  font-weight: 700;
  color: #16469c;
  line-height: 1;
}

.about_intro_media {
  position: relative;
}

.about_intro_media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(10, 40, 90, 0.12);
}

@media (max-width: 860px) {
  .about_intro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  /* image first on mobile reads better than a wall of text up top */
  .about_intro_media {
    order: -1;
  }
  .about_intro_media img {
    aspect-ratio: 16 / 9;
  }
}

/* ---------------------------------------------------------------------------
   2. TIMELINE — "40+ Years of Journey"  (autoplay marquee)
   The page's one moment of motion. A single navy contrast line; milestones
   flow through fixed alternating slots (below / above) like an LED string.
   Autoplays on load: the line fills, a gold pulse rides the leading edge,
   a comet tail fades behind it, and it stops on the final milestone.
   ALL milestones carry equal weight — gold marks only the active/leading one
   (a position cue, not a ranking). Segoe throughout; the one gold accent is
   the moving pulse. prefers-reduced-motion jumps to the completed state.
   --------------------------------------------------------------------------- */
.about_timeline {
  width: 100%;
  background: #f6f8fc;
  border-top: 1px solid #e4ecf7;
  border-bottom: 1px solid #e4ecf7;
  padding: clamp(3rem, 7vw, 5rem) 0;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
}

.about_timeline_head {
  width: 75%;
  max-width: 1024px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.about_timeline_head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 600;
  color: #16469c;
  letter-spacing: -0.01em;
  margin: 0;
}

.about_timeline_head p {
  margin: 0.5rem 0 0;
  color: #5b5b5b;
  font-size: 1rem;
}

/* rail: arrow | viewport | arrow */
.about_tl_rail {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.about_tl_arrow {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #9db4d8;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  z-index: 6;
  padding: 0;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.about_tl_arrow svg { display: block; }

.about_tl_arrow:hover:not(:disabled) {
  color: #16469c;
  background: rgba(22, 70, 156, 0.06);
  transform: scale(1.08);
}

.about_tl_arrow:focus-visible {
  outline: none;
  color: #16469c;
  box-shadow: 0 0 0 3px rgba(22, 70, 156, 0.22);
}

.about_tl_arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

/* viewport clips the flowing string; the contrast line sits dead centre */
.about_tl_vp {
  position: relative;
  height: 300px;
  overflow: hidden;
}
.about_tl_vp::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #cdd9ef;
  transform: translateY(-50%);
  z-index: 1;
}

/* navy fill grows to the leading edge */
.about_tl_fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  width: 0;
  background: #16469c;
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.85s cubic-bezier(0.45, 0, 0.15, 1);
}

/* gold pulse glow riding the leading edge */
.about_tl_pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 70px;
  height: 6px;
  transform: translate(-100%, -50%);
  z-index: 3;
  pointer-events: none;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, rgba(176, 141, 87, 0.15), #b08d57);
  opacity: 0;
  transition: left 0.85s cubic-bezier(0.45, 0, 0.15, 1);
}
.about_tl_pulse.live {
  opacity: 1;
}

/* soft dissolve on the right (incoming) edge */
.about_tl_vp::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 10%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(270deg, #f6f8fc, transparent);
}

/* the moving string of milestone columns */
.about_tl_string {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  z-index: 3;
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.45, 0, 0.15, 1);
}

.about_tl_col {
  position: relative;
  height: 100%;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.about_tl_col .about_tl_dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cdd9ef;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: background 0.55s ease, transform 0.55s ease, box-shadow 0.55s ease;
}

.about_tl_col .about_tl_tick {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  background: #cdd9ef;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  transition: background 0.55s ease, opacity 0.55s ease;
}

.about_tl_col .about_tl_txt {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 170px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.about_tl_col .about_tl_y {
  font-size: 1.7rem;
  font-weight: 700;
  color: #16469c;
  line-height: 1;
}
.about_tl_col .about_tl_t {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 0.3rem;
  line-height: 1.2;
}
.about_tl_col .about_tl_d {
  font-size: 0.78rem;
  color: #5b5b5b;
  margin-top: 0.25rem;
  line-height: 1.35;
}

/* fixed zigzag: below-columns hang under the line, above-columns over it */
.about_tl_col.below .about_tl_txt { top: calc(50% + 30px); }
.about_tl_col.below .about_tl_tick { top: 50%; bottom: auto; height: 26px; }
.about_tl_col.above .about_tl_txt { bottom: calc(50% + 30px); }
.about_tl_col.above .about_tl_tick { top: auto; bottom: 50%; height: 26px; }

/* revealed milestones — identical treatment for every one */
.about_tl_col.shown .about_tl_txt { transform: translateX(-50%) translateY(0); }
.about_tl_col.shown .about_tl_tick { opacity: 1; }
.about_tl_col.shown .about_tl_dot { background: #16469c; }

/* gold marks ONLY the active/leading milestone — a position cue, not importance */
.about_tl_col.lead .about_tl_dot {
  background: #b08d57;
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 0 5px rgba(176, 141, 87, 0.18);
}
.about_tl_col.lead .about_tl_tick { background: #b08d57; }

/* progress line + replay */
.about_tl_prog {
  width: 92%;
  max-width: 1200px;
  margin: 1.5rem auto 0;
  height: 2px;
  background: #dbe4f3;
  border-radius: 2px;
  overflow: hidden;
}
.about_tl_prog i {
  display: block;
  height: 100%;
  width: 0;
  background: #16469c;
  transition: width 0.85s cubic-bezier(0.45, 0, 0.15, 1);
}

.about_tl_controls {
  width: 92%;
  max-width: 1200px;
  margin: 0.75rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about_tl_replay {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #d6e0f0;
  background: #fff;
  color: #16469c;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(10, 40, 90, 0.05);
  transition: opacity 0.3s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.about_tl_replay svg { display: block; }
.about_tl_replay.show {
  opacity: 1;
  pointer-events: auto;
}
.about_tl_replay:hover {
  background: #16469c;
  border-color: #16469c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 70, 156, 0.2);
}
.about_tl_replay:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 70, 156, 0.28);
}

@media (max-width: 900px) {
  .about_tl_col .about_tl_txt { width: 140px; }
}

@media (max-width: 600px) {
  .about_tl_vp { height: 320px; }
  .about_tl_col .about_tl_txt { width: 118px; }
  .about_tl_col .about_tl_y { font-size: 1.35rem; }
  .about_tl_col .about_tl_d { font-size: 0.72rem; }
  .about_timeline_head { width: 88%; }
}


/* ---------------------------------------------------------------------------
   3. OUR TEAM — responsive org chart
   Three tiers (Founders → Directors → Managers). Hierarchy is shown with a
   centered vertical spine between tiers plus a horizontal rule that spans the
   ROW ITSELF (drawn on the tier wrapper, so it measures itself — no fixed-px
   connector widths like the old markup). Connectors are a desktop cue only;
   at ≤720px they fade out and tiers stack cleanly.
   --------------------------------------------------------------------------- */
.about_team {
  width: 75%;
  max-width: 1024px;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding-bottom: clamp(3.5rem, 7vw, 6rem); /* breathing room before the footer */
  text-align: center;
}

.about_team_title {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 600;
  color: #16469c;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

/* one tier label (Founders / Directors / Managers) */
.about_team_tier_label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #16469c;
  background: #eef2fb;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

/* a tier row of cards */
/* a tier row of cards.
   Founders (2) and Directors (2) always sit comfortably in one row.
   The MANAGERS tier (last tier, 5 cards) is width-capped below so all five
   land on ONE desktop row instead of wrapping 4+1. */
.about_team_tier {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0 auto;
}

/* Managers tier: force all 5 onto one row on desktop.
   The .about_team container is 75% wide (~960px at 1280), so size the manager
   cards to fit five across inside that: 5×176 + 4×16 = 944px. */
.about_team_tier:last-of-type {
  max-width: 1060px;
  gap: 16px;
}
.about_team_tier:last-of-type .about_team_card {
  width: 176px;
}

/* vertical spine BELOW a tier that connects down to the next label.
   Placed on tiers that are followed by another tier (.has-next). */
.about_team_tier.has-next {
  margin-bottom: 2.75rem;
}
.about_team_tier.has-next::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2.75rem;
  width: 2px;
  height: 2.75rem;
  background: #cdd9ef;
  transform: translateX(-50%);
}

/* one person card */
.about_team_card {
  width: 190px;
  background: #fff;
  border: 1px solid #e9eef7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(10, 40, 90, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.about_team_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(10, 40, 90, 0.12);
}

.about_team_card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eef2fb; /* placeholder tint if an image is missing */
}

.about_team_card_foot {
  padding: 0.9rem 0.75rem 1.05rem;
  border-top: 3px solid #16469c; /* navy underline keys each card to the brand */
}

.about_team_card_foot .name {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.about_team_card_foot .role {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #5b5b5b;
  line-height: 1.35;
}

/* Founders sit a touch larger — they're the top of the chart */
.about_team_card--founder {
  width: 210px;
}
.about_team_card--founder .about_team_card_foot {
  border-top-color: #b08d57; /* gold underline marks the founders tier */
}

/* ---- TABLET (≤1024px): managers break to 3 + 2, evenly centered ---- */
@media (max-width: 1024px) {
  /* cap so exactly 3 cards fit per row: 3×190 + 2×16 = 602px */
  .about_team_tier:last-of-type {
    max-width: 610px;
  }
}

/* ---- SMALL TABLET / LARGE PHONE (≤720px): two-up everywhere ---- */
@media (max-width: 720px) {
  .about_team {
    width: 88%;
  }
  /* connectors are a desktop cue; drop them so stacked cards don't get stray lines */
  .about_team_tier.has-next::after {
    display: none;
  }
  .about_team_tier.has-next {
    margin-bottom: 2.25rem;
  }
  .about_team_tier:last-of-type {
    max-width: 100%;
  }
  .about_team_card,
  .about_team_card--founder {
    width: calc(50% - 0.75rem);
    max-width: 220px;
  }
}

/* ---- PHONE (≤440px): one card per row, centered ---- */
@media (max-width: 440px) {
  .about_team_card,
  .about_team_card--founder {
    width: 100%;
    max-width: 260px;
  }
}

/* ---------------------------------------------------------------------------
   4. REDUCED MOTION — honour the design rules
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .about_tl_arrow,
  .about_tl_string,
  .about_tl_fill,
  .about_tl_pulse,
  .about_tl_col .about_tl_dot,
  .about_tl_col .about_tl_tick,
  .about_tl_col .about_tl_txt,
  .about_tl_prog i,
  .about_team_card {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}