/* ==========================================================================
   Our Approach to Technology
   A philosophy page: deep navy foundation, restrained cyan / electric-blue
   accents, editorial typography. Everything is namespaced `ap-` so the page
   can never leak into the rest of the site.
   ========================================================================== */

.ap {
  --ap-navy-950: #03172a;
  --ap-navy-900: #041d33;
  --ap-navy-800: #062a45;
  --ap-navy-700: #0a3a5b;
  --ap-cyan: #3ad2df;
  --ap-cyan-soft: #8fe6ee;
  --ap-blue: #2f86ff;
  --ap-ink: #0c2033;
  --ap-muted: #57697b;
  --ap-line: #dbe5ee;
  --ap-wash: #f3f7fa;
  --ap-white: #ffffff;
  color: var(--ap-ink);
  background: var(--ap-white);
}

.ap *,
.ap *::before,
.ap *::after { box-sizing: border-box; }

.ap h1, .ap h2, .ap h3, .ap h4 { font-family: var(--heading); }
.ap :where(h1, h2, h3, h4, p) { margin: 0; }
.ap :where(a) { color: inherit; text-decoration: none; }

.ap-wrap { width: min(1220px, 100%); margin: 0 auto; padding: 0 34px; }

.ap-eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 800; color: var(--ap-navy-700);
}
.ap-eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55;
}
.ap-eyebrow--light { color: var(--ap-cyan); }
.ap .ap-eyebrow + .ap-h2 { margin-top: 16px; }

.ap-h2 {
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.1; font-weight: 800; letter-spacing: -0.015em;
  color: var(--ap-ink);
  text-wrap: balance;
}
.ap-h2 em { font-style: normal; color: var(--ap-navy-700); }

/* ---------------------------------------------------------------- 1. hero */
.ap-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 130% at 78% -10%, rgba(47,134,255,.20) 0%, rgba(4,29,51,0) 55%),
    radial-gradient(90% 110% at 8% 110%, rgba(58,210,223,.14) 0%, rgba(4,29,51,0) 60%),
    linear-gradient(162deg, #07304e 0%, var(--ap-navy-900) 58%, var(--ap-navy-950) 100%);
  color: #bcd4e6;
}
.ap-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(80% 70% at 40% 8%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 40% 8%, #000 0%, transparent 78%);
}
.ap-hero-inner { position: relative; z-index: 2; padding-top: 54px; }

.ap-crumbs {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .04em; color: #7fa3bb; margin-bottom: 44px;
}
.ap-crumbs a { color: #9dbcd0; }
.ap-crumbs a:hover { color: #fff; }
.ap-crumbs span { opacity: .45; }
.ap-crumbs b { color: #dbeaf3; font-weight: 600; }

.ap-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: 54px; align-items: start; margin-top: 40px;
}
.ap-hero-body { padding-bottom: 14px; }
.ap-hero h1 {
  margin-top: 24px;
  color: #fff; font-size: clamp(32px, 5.4vw, 74px);
  line-height: 1.02; font-weight: 800; letter-spacing: -0.03em;
}
.ap-hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #eaf7fb 0%, var(--ap-cyan) 46%, var(--ap-blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ap-hero-lede {
  margin-top: 26px; max-width: 54ch;
  font-size: 17px; line-height: 1.74; color: #b9d2e4;
}
.ap-hero-tagline {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
  padding: 9px 16px 9px 13px; border-radius: 999px;
  border: 1px solid rgba(58,210,223,.34);
  background: rgba(58,210,223,.07);
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ap-cyan-soft);
}
.ap-hero-tagline i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ap-cyan); box-shadow: 0 0 0 4px rgba(58,210,223,.16);
}
.ap-hero-art { position: relative; min-height: 260px; margin-top: -18px; }
.ap-hero-art svg { width: 100%; max-width: 500px; height: auto; display: block; margin-left: auto; overflow: visible; }
.ap-hero-art .ap-ring { transform-origin: 300px 250px; }
.ap-ring--a { animation: ap-spin 78s linear infinite; }
.ap-ring--b { animation: ap-spin 112s linear infinite reverse; }
.ap-node { animation: ap-pulse 5.4s ease-in-out infinite; }
.ap-node:nth-child(2n) { animation-delay: 1.3s; }
.ap-node:nth-child(3n) { animation-delay: 2.6s; }
.ap-flow { stroke-dasharray: 5 9; animation: ap-dash 22s linear infinite; }

@keyframes ap-spin { to { transform: rotate(360deg); } }
@keyframes ap-pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes ap-dash { to { stroke-dashoffset: -280; } }

/* scroll cue */
.ap-scroll {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 46px 0 34px; color: #7fa3bb;
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700;
}
.ap-scroll-rail {
  position: relative; width: 1px; height: 46px;
  background: linear-gradient(180deg, rgba(143,230,238,.55), rgba(143,230,238,0));
  overflow: hidden;
}
.ap-scroll-rail::after {
  content: ""; position: absolute; left: -1.5px; top: -8px;
  width: 4px; height: 8px; border-radius: 3px; background: var(--ap-cyan);
  animation: ap-cue 2.4s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes ap-cue {
  0% { transform: translateY(0); opacity: 0; }
  22% { opacity: 1; }
  100% { transform: translateY(52px); opacity: 0; }
}

/* ----------------------------------------------------------- 2. philosophy */
.ap-philosophy { padding: 108px 0 96px; background: var(--ap-white); }
.ap-philosophy-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 76px; align-items: start; margin-top: 34px;
}
.ap-philosophy-copy p {
  font-size: 16.5px; line-height: 1.82; color: #33475a;
  margin-bottom: 22px; max-width: 64ch;
}
.ap-philosophy-copy p:first-of-type {
  font-size: 18px; line-height: 1.78; color: var(--ap-ink);
}
.ap-pull {
  margin: 34px 0 0; padding: 22px 0 22px 26px;
  border-left: 2px solid var(--ap-cyan);
}
.ap-pull p {
  font-family: var(--heading); font-size: 19px; line-height: 1.5;
  font-weight: 700; color: var(--ap-navy-800); margin: 0;
}

/* the "foundation" diagram: proven base, our layer on top */
.ap-stack {
  position: sticky; top: 110px;
  border: 1px solid var(--ap-line); border-radius: 4px;
  background: linear-gradient(180deg, #fbfdff, #f4f8fb);
  padding: 30px 28px 26px;
}
.ap-stack-label {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 800; color: var(--ap-muted); margin-bottom: 22px;
}
.ap-stack-row {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--ap-line);
}
.ap-stack-row:first-of-type { border-top: 0; }
.ap-stack-row b {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  color: var(--ap-navy-800); background: #eaf3f8;
}
.ap-stack-row.is-ours b { color: #04202f; background: var(--ap-cyan); }
.ap-stack-row span { font-size: 13.5px; line-height: 1.45; color: #3b4f61; }
.ap-stack-row.is-ours span { color: var(--ap-ink); font-weight: 600; }
.ap-stack-foot {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ap-line);
  font-size: 12.5px; line-height: 1.6; color: var(--ap-muted);
}

/* ------------------------------------------------------- 3. foundations */
.ap-foundations {
  padding: 96px 0 104px;
  background: linear-gradient(180deg, #f6f9fc 0%, #eef4f8 100%);
  border-top: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line);
}
.ap-foundations-head {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px; align-items: end;
}
.ap-foundations-head p {
  font-size: 16px; line-height: 1.78; color: #3a4e60; max-width: 58ch;
}
.ap-pillars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 62px;
  border-top: 1px solid #cddbe6;
}
.ap-pillar {
  position: relative; padding: 30px 26px 0 0;
  border-right: 1px solid #cddbe6;
}
.ap-pillar:last-child { border-right: 0; padding-right: 0; }
.ap-pillar:nth-child(1) { transform: translateY(0); }
.ap-pillar:nth-child(2) { transform: translateY(22px); }
.ap-pillar:nth-child(3) { transform: translateY(44px); }
.ap-pillar:nth-child(4) { transform: translateY(66px); }
.ap-pillar-step {
  position: absolute; top: -1px; left: 0; height: 2px;
  width: 100%; background: linear-gradient(90deg, var(--ap-navy-700), transparent 78%);
  opacity: .55;
}
.ap-pillar-num {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #1c6fd8;
  margin-bottom: 16px;
}
.ap-pillar h3 {
  font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--ap-ink);
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.ap-pillar p { font-size: 14.2px; line-height: 1.72; color: #4a5e70; }
.ap-pillar svg { color: var(--ap-navy-700); margin-bottom: 18px; }
.ap-foundations-foot {
  margin-top: 120px; max-width: 76ch;
  padding-left: 26px; border-left: 2px solid var(--ap-navy-700);
  font-size: 16px; line-height: 1.78; color: #33475a;
}

/* ------------------------------------------------------------- 4. value */
.ap-value {
  position: relative; overflow: hidden;
  padding: 108px 0 96px;
  background:
    radial-gradient(90% 120% at 92% 10%, rgba(47,134,255,.16), rgba(4,29,51,0) 58%),
    linear-gradient(160deg, #062a45 0%, #04203a 60%, #031a30 100%);
  color: #b9d2e4;
}
.ap-value .ap-h2 { color: #fff; }
.ap-value-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 68px; align-items: center; margin-top: 30px;
}
.ap-value-intro { font-size: 16.5px; line-height: 1.8; color: #aecbdf; max-width: 56ch; margin-bottom: 6px; }
.ap-outcomes { margin-top: 40px; border-top: 1px solid rgba(255,255,255,.13); }
.ap-outcome {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.13);
  align-items: baseline;
}
.ap-outcome b {
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--ap-cyan);
}
.ap-outcome h3 {
  font-size: 16.5px; font-weight: 700; color: #eaf4fb; margin-bottom: 4px;
}
.ap-outcome p { font-size: 13.6px; line-height: 1.65; color: #9dbbd0; }

.ap-orbit { position: relative; display: grid; place-items: center; }
.ap-orbit svg { width: 100%; max-width: 520px; height: auto; }
.ap-orbit-label {
  position: absolute; text-align: center; max-width: 190px;
  font-size: 12.5px; line-height: 1.5; color: #9dbbd0;
}
.ap-orbit-label b {
  display: block; font-family: var(--heading); font-size: 15px; font-weight: 800;
  color: #fff; margin-bottom: 2px;
}
.ap-value-foot {
  margin-top: 62px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.13);
  font-size: 15.5px; line-height: 1.75; color: #a8c6da; max-width: 82ch;
}
.ap-value-foot strong { color: #eaf4fb; font-weight: 650; }

/* --------------------------------------------------------- 5. principles */
.ap-principles { padding: 110px 0 104px; background: var(--ap-white); }
.ap-principles-head { max-width: 66ch; }
.ap-principles-head p { margin-top: 20px; font-size: 16px; line-height: 1.78; color: #3a4e60; }
.ap-principles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0 54px; margin-top: 66px;
}
.ap-principle {
  position: relative; padding: 30px 0 34px;
  border-top: 1px solid var(--ap-line);
}
.ap-principle-num {
  position: absolute; right: 0; top: 20px;
  font-family: var(--heading); font-size: 46px; line-height: 1;
  font-weight: 800; color: #eaf1f7; letter-spacing: -0.04em; user-select: none;
}
.ap-principle h3 {
  position: relative; font-size: 17.5px; font-weight: 800; color: var(--ap-ink);
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.ap-principle h3::before {
  content: ""; display: block; width: 18px; height: 2px;
  background: var(--ap-cyan); margin-bottom: 16px;
}
.ap-principle p { position: relative; font-size: 14.4px; line-height: 1.72; color: #4a5e70; }

/* ------------------------------------------------------------ 6. closing */
.ap-close {
  position: relative; overflow: hidden;
  padding: 118px 0 104px;
  background:
    radial-gradient(80% 120% at 50% -20%, rgba(58,210,223,.15), rgba(3,23,42,0) 60%),
    linear-gradient(180deg, #041d33 0%, #03172a 100%);
  color: #b4cee2; text-align: center;
}
.ap-close::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 75%);
}
.ap-close-inner { position: relative; z-index: 2; }
.ap-close-statement {
  font-family: var(--heading); font-weight: 800;
  font-size: clamp(28px, 3.6vw, 50px); line-height: 1.16;
  letter-spacing: -0.02em; color: #fff; margin: 0 auto;
  max-width: 34ch;
}
.ap-close-statement em {
  font-style: normal; color: var(--ap-cyan-soft);
}
.ap-close p.ap-close-lede {
  margin: 28px auto 0; max-width: 62ch;
  font-size: 16px; line-height: 1.78; color: #a6c4da;
}
.ap-close-sign {
  margin-top: 46px; padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ap-close-sign b {
  font-family: var(--heading); font-size: 15px; font-weight: 800;
  letter-spacing: .01em; color: #eaf4fb;
}
.ap-close-sign span {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ap-cyan); font-weight: 700;
}
.ap-close-actions {
  margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.ap-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.ap-btn--primary {
  background: linear-gradient(180deg, #45dbe7, var(--ap-cyan));
  color: #04202f;
  box-shadow: 0 18px 34px -18px rgba(58,210,223,.75);
}
.ap-btn--primary:hover { transform: translateY(-2px); }
.ap-btn--ghost {
  border: 1px solid rgba(255,255,255,.26); color: #eaf4fb;
}
.ap-btn--ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.44); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .ap-hero-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 34px; }
  .ap-hero-art { min-height: 0; max-width: 520px; order: 2; margin: 0 auto; }
  .ap-philosophy-grid { grid-template-columns: 1fr; gap: 44px; }
  .ap-stack { position: static; max-width: 500px; }
  .ap-foundations-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .ap-pillars { grid-template-columns: repeat(2, 1fr); }
  .ap-pillar:nth-child(n) { transform: none; padding: 26px 22px 22px 0; }
  .ap-pillar:nth-child(odd) { border-right: 1px solid #cddbe6; }
  .ap-pillar:nth-child(even) { border-right: 0; padding-left: 24px; }
  .ap-value-grid { grid-template-columns: 1fr; gap: 40px; }
  .ap-orbit { order: -1; }
  .ap-principles-grid { grid-template-columns: repeat(2, 1fr); gap: 0 42px; }
  .ap-foundations-foot { margin-top: 64px; }
}

@media (max-width: 720px) {
  .ap-wrap { padding: 0 22px; }
  .ap-hero-inner { padding-top: 38px; }
  .ap-crumbs { margin-bottom: 30px; }
  .ap-hero h1 { margin-top: 18px; }
  .ap-hero-art { max-width: 380px; margin: 0 auto; }
  .ap-philosophy, .ap-foundations, .ap-principles { padding: 70px 0 64px; }
  .ap-value, .ap-close { padding: 74px 0 66px; }
  .ap-pillars { grid-template-columns: 1fr; }
  .ap-pillar:nth-child(n) {
    border-right: 0; padding: 24px 0; border-bottom: 1px solid #cddbe6;
  }
  .ap-pillar:last-child { border-bottom: 0; }
  .ap-h2 { font-size: clamp(24px, 6.4vw, 30px); }
  .ap-close-statement { font-size: clamp(23px, 6vw, 32px); }
  .ap-principles-grid { grid-template-columns: 1fr; gap: 0; margin-top: 44px; }
  .ap-foundations-foot { margin-top: 44px; }
  .ap-outcome { grid-template-columns: 28px 1fr; gap: 12px; }
  .ap-close-actions { flex-direction: column; }
  .ap-btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-ring, .ap-node, .ap-flow, .ap-scroll-rail::after { animation: none !important; }
}
