/* ============================================================
   page-about.css — About / company page, v3 blueprint design.
   Sits on top of service.css (shared tokens). Ported from
   public/proposed/nas-v3/assets/css/page-about.css with the
   chromatic palette re-anchored to the NAS navy brand tokens,
   and the banned .val left side-stripe rewritten.
   ============================================================ */

:root {
  --c-navy: #0E2A6B;
  --c-navy-2: #1C4DBD;
  --c-blue: #2158D6;
  --c-blue-2: #4A7EE8;
  --c-accent: #7BDFB1;   /* mint — dark-surface / signal accent only */
  --c-accent-2: #FFA8C6;
}

/* ========== HERO ========== */
/* Give the constellation column extra width so the diorama reads larger */
.ab-hero .hero-grid { grid-template-columns: 0.9fr 1.12fr; gap: clamp(24px, 3.5vw, 56px); }
/* Single row of 4, matching the case-studies hero-stat treatment */
.ab-hero-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

/* aspect-ratio matches the cropped 520×440 viewBox so the towers sit
   near the top of the frame with no dead space above them. The wider
   grid column above gives the constellation its larger footprint. */
.ab-diorama { position: relative; width: 100%; aspect-ratio: 520 / 440; }
.ab-svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* Nudge the constellation up and slightly right against the hero copy */
@media (min-width: 1025px) {
  .ab-diorama { transform: translate(20px, -100px); }
}

/* Ambient ring */
.ab-amb { transform-box: fill-box; transform-origin: center; animation: abAmb 6s ease-out infinite; }
@keyframes abAmb {
  0%   { transform: scale(.85); opacity: .8; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Office towers — placement lives on an outer <g>; this class only
   animates a gentle float, so its transform keyframes don't override
   the positioning transform attribute. */
.ab-pillar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: abPillar 8s ease-in-out infinite;
}
.ab-pillar.p2 { animation-delay: 1s; }
.ab-pillar.p3 { animation-delay: 2s; }
@keyframes abPillar {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.ab-windows rect {
  animation: abWindow 2.4s ease-in-out infinite;
  transform-box: fill-box; transform-origin: center;
}
.ab-windows rect:nth-child(odd)  { animation-delay: 0s; }
.ab-windows rect:nth-child(even) { animation-delay: 1.2s; }
@keyframes abWindow {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

.ab-bridge { animation: abBridge 8s linear infinite; }
@keyframes abBridge { to { stroke-dashoffset: -120; } }

.ab-trav {
  transform-box: fill-box; transform-origin: center;
  animation: abTrav 6s linear infinite;
}
@keyframes abTrav {
  0%   { offset-distance: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.ab-people circle {
  transform-box: fill-box; transform-origin: center;
  animation: abPpl 2.4s ease-in-out infinite;
}
.ab-people circle:nth-child(1) { animation-delay: 0s; }
.ab-people circle:nth-child(2) { animation-delay: .3s; }
.ab-people circle:nth-child(3) { animation-delay: .6s; }
.ab-people circle:nth-child(4) { animation-delay: .9s; }
.ab-people circle:nth-child(5) { animation-delay: 1.2s; }
.ab-people circle:nth-child(6) { animation-delay: 1.5s; }
.ab-people circle:nth-child(7) { animation-delay: 1.8s; }
@keyframes abPpl {
  0%, 100% { transform: translateY(0);    opacity: .35; }
  50%      { transform: translateY(-3px); opacity: 1; }
}


/* ========== MISSION ========== */
.ab-mission {
  max-width: 880px;
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.ab-mission::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 60% at 100% 0%, rgba(123, 223, 177, .12), transparent 60%);
  pointer-events: none;
}
.ab-lead {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  color: var(--c-navy);
  font-weight: 500;
  letter-spacing: -.01em;
  margin-bottom: 22px;
  position: relative;
}
.ab-mission p:not(.ab-lead) {
  color: var(--c-mute);
  font-size: 1.04rem;
  line-height: 1.65;
  position: relative;
}


/* ========== TIMELINE ========== */
.ab-timeline {
  position: relative;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ab-timeline::before {
  content: "";
  position: absolute;
  left: 52px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(33, 88, 214, .55), rgba(123, 223, 177, .35));
}
.ab-tl {
  position: relative;
  padding: 18px 0 18px 92px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}
.ab-tl-dot {
  position: absolute;
  top: 22px;
  left: 42px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c-blue);
  box-shadow: 0 0 0 4px rgba(33, 88, 214, .12);
  z-index: 2;
}
.ab-tl-dot-now { background: var(--c-accent); border-color: var(--c-accent); }
.ab-tl-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(33, 88, 214, .4);
  animation: abTlPulse 2.2s ease-out infinite;
}
.ab-tl-dot-now .ab-tl-pulse { background: rgba(123, 223, 177, .5); }
@keyframes abTlPulse {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(2.4); opacity: 0; }
}
.ab-tl-yr {
  position: absolute;
  top: 22px;
  left: 0;
  width: 32px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-navy);
}
.ab-tl-card {
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: transform var(--t-fast) var(--ease-spring),
              border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.ab-tl:hover .ab-tl-card {
  transform: translateX(4px);
  border-color: var(--c-navy-2);
  box-shadow: 0 20px 40px -22px rgba(14, 42, 107, .25);
}
.ab-tl-card h3 { margin-bottom: 6px; }
.ab-tl-card p { color: var(--c-mute); font-size: .96rem; line-height: 1.5; }
.ab-tl-now .ab-tl-card {
  background: linear-gradient(135deg, #fff, rgba(123, 223, 177, .1));
  border-color: var(--c-accent);
}


/* ========== CONVICTIONS ========== */
.conv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.conv {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 26px 24px 22px;
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-spring),
              border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}
.conv::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(closest-side, rgba(33, 88, 214, .12), transparent);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease-out);
}
.conv:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 88, 214, .35);
  box-shadow: 0 24px 50px -28px rgba(14, 42, 107, .25);
}
.conv:hover::after { opacity: 1; }
.conv-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  color: var(--c-navy-2);
  font-weight: 700;
  letter-spacing: .04em;
  display: block;
  margin-bottom: 12px;
}
.conv h3 { margin-bottom: 8px; }
.conv p { color: var(--c-mute); font-size: .94rem; line-height: 1.5; }


/* ========== VALUES ==========
   Rewritten without the banned left side-stripe: a leading mono index
   label + a corner-anchored gradient badge carry the accent instead. */
.val-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.val {
  position: relative;
  padding: 30px 28px 26px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-spring),
              border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}
.val::after {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(33, 88, 214, .1), transparent);
  pointer-events: none;
}
.val:hover {
  transform: translateY(-4px);
  border-color: var(--c-navy-2);
  box-shadow: 0 24px 50px -28px rgba(14, 42, 107, .22);
}
.val-k {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .74rem;
  color: var(--c-navy-2);
  letter-spacing: .04em;
  padding: 5px 12px;
  background: rgba(14, 42, 107, .07);
  border-radius: 999px;
  margin-bottom: 16px;
  position: relative;
}
.val h3 { margin-bottom: 10px; font-size: 1.2rem; position: relative; }
.val p { color: var(--c-mute); font-size: .96rem; line-height: 1.55; position: relative; }


/* ========== LEADERSHIP TEAM ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.team-card {
  padding: 28px 24px 26px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  text-align: center;
  transition: transform var(--t-mid) var(--ease-spring),
              border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-navy-2);
  box-shadow: 0 24px 50px -28px rgba(14, 42, 107, .22);
}
.team-card__photo {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-blue), var(--c-navy));
  display: flex; align-items: center; justify-content: center;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__initials {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card__position { color: var(--c-navy-2); font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.team-card__dept {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--c-mute);
  letter-spacing: .04em;
  padding: 4px 10px;
  background: rgba(14, 42, 107, .06);
  border-radius: 999px;
  margin-bottom: 12px;
}
.team-card__bio { color: var(--c-mute); font-size: .88rem; line-height: 1.5; margin-bottom: 12px; }
.team-card__linkedin {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--c-blue);
  text-decoration: none;
}
.team-card__linkedin:hover { color: var(--c-navy-2); }


/* ========== OFFICES ========== */
.ab-offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.ab-off {
  padding: 28px 26px 26px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: transform var(--t-mid) var(--ease-spring),
              border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out);
}
.ab-off:hover {
  transform: translateY(-4px);
  border-color: var(--c-navy-2);
  box-shadow: 0 24px 50px -28px rgba(14, 42, 107, .22);
}
.ab-off-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .76rem;
  color: var(--c-mute);
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  margin-bottom: 14px;
}
.of-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(33, 88, 214, .22);
  animation: ofPulse 1.6s ease-in-out infinite;
}
@keyframes ofPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.3); opacity: .65; }
}
.ab-off h3 { font-size: 1.5rem; margin-bottom: 10px; }
.ab-off p { color: var(--c-mute); font-size: .94rem; margin-bottom: 14px; }
.ab-off-addr {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--c-mute);
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
}


/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .ab-hero .hero-grid { grid-template-columns: 1fr; }
  .ab-diorama { max-width: 480px; margin: 0 auto; }
  .ab-hero-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ab-hero-meta { grid-template-columns: 1fr; }
  .ab-tl { padding-left: 72px; }
  .ab-timeline::before { left: 38px; }
  .ab-tl-dot { left: 28px; }
  .ab-tl-yr { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-amb, .ab-pillar, .ab-windows rect, .ab-bridge, .ab-trav, .ab-people circle,
  .ab-tl-pulse, .of-pulse { animation: none !important; }
}
