.ap-hero {
  position: relative;
  min-height: 92vh;
  padding: 200px 0 100px;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ap-hero-bg { position: absolute; inset: 0; left: 35%; z-index: 0; }
.ap-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: grayscale(0.05) contrast(0.95);
}
.ap-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(251,251,250,1) 0%, rgba(251,251,250,0.45) 16%, rgba(251,251,250,0.08) 40%, rgba(251,251,250,0) 62%),
    linear-gradient(to bottom, rgba(251,251,250,0.5) 0%, rgba(251,251,250,0) 25%, rgba(251,251,250,0) 55%, rgba(251,251,250,0.85) 92%, rgba(251,251,250,1) 100%);
}

.ap-hero-inner { position: relative; z-index: 2; }
.ap-hero-inner .eyebrow-row { margin-bottom: 32px; }
.ap-hero-inner .eyebrow { color: var(--ink); opacity: 0.6; }
.ap-hero-inner .chevron-mark { border-left-color: var(--accent); }

.ap-hero-title {
  font-size: clamp(36px, 4.6vw, 66px);
  margin: 0 0 36px;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
}

.ap-hero-lead {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  max-width: 60ch;
  opacity: 0.82;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}

.ap-hero-meta {
  display: flex;
  align-items: stretch;
  gap: 22px;
  margin-top: 56px;
}
.ap-hero-meta .meta-cell strong { color: var(--ink); font-size: 18px; }
.ap-hero-meta .meta-cell span { color: var(--ink); opacity: 0.55; }
.ap-hero-meta .meta-divider { background: var(--line); }

.ap-hero-scroll {
  position: absolute;
  bottom: 28px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  z-index: 2;
}
.ap-scroll-arrow {
  display: inline-block;
  animation: scrollBob 2.4s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 1; }
}
@media (max-width: 1280px) {
  .ap-hero {
    min-height: 0;
    padding: calc(min(120vw, 560px) + 36px) 0 72px;
    display: block;
  }
  .ap-hero-bg { left: 0; height: min(120vw, 560px); }
  .ap-hero-bg img { object-position: 50% 45%; }
  .ap-hero-overlay {
    background:
      linear-gradient(to bottom, rgba(251,251,250,0.55) 0%, rgba(251,251,250,0.05) 22%, rgba(251,251,250,0) 55%, rgba(251,251,250,0.55) 82%, rgba(251,251,250,1) 100%);
  }
}
@media (max-width: 700px) {
  .ap-hero { padding: calc(min(120vw, 560px) + 28px) 0 64px; }
  .ap-hero-meta { flex-wrap: wrap; gap: 16px; }
  .ap-hero-scroll { display: none; }
}

.ap-story { background: var(--paper); }
.ap-story-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) {
  .ap-story-grid { grid-template-columns: 1fr; gap: 40px; }
}
.ap-story-aside { position: sticky; top: 120px; }
.ap-story-tag {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  position: relative;
  margin-top: 24px;
}
.ap-story-tag::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 32px;
  height: 3px;
  background: var(--accent);
}
.ap-story-tag-num {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.ap-story-tag-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  line-height: 1.5;
}

.ap-story-body .h-section { margin-bottom: 32px; }

.ap-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
@media (max-width: 800px) {
  .ap-pillars { grid-template-columns: 1fr; }
}
.ap-pillar {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.ap-pillar:last-child { border-right: none; padding-right: 0; }
.ap-pillar:first-child { padding-left: 0; }
.ap-pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--accent);
}
.ap-pillar-mark {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  color: var(--accent);
  line-height: 1;
  margin-top: 24px;
  margin-bottom: 4px;
  margin-left: -4px;
}
.ap-pillar-mark svg {
  display: block;
}
.ap-pillar h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}
.ap-pillar p {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.7;
  margin: 0;
}

.ap-timeline { background: var(--ecru); border-top: 1px solid var(--line); }
.ap-tl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.ap-tl-list::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}
@media (max-width: 700px) {
  .ap-tl-list::before { left: 60px; }
}
.ap-tl-item {
  display: grid;
  grid-template-columns: 110px 24px 1fr;
  gap: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
@media (max-width: 700px) {
  .ap-tl-item { grid-template-columns: 60px 24px 1fr; }
}
.ap-tl-item:last-child { border-bottom: none; }
.ap-tl-year {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding-top: 4px;
}
.ap-tl-mark {
  width: 11px; height: 11px;
  background: var(--accent);
  border: 2px solid var(--ecru);
  outline: 1px solid var(--ink);
  margin-top: 10px;
  margin-left: -5px;
  position: relative;
  z-index: 2;
}
.ap-tl-body h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.ap-tl-body p {
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.7;
  margin: 0;
  max-width: 60ch;
}

.ap-stats {
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--accent);
}
.ap-stats-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 56px 48px;
}
@media (max-width: 980px) {
  .ap-stats-inner { grid-template-columns: repeat(2, 1fr); padding: 32px 24px; }
}
.ap-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.ap-stat:last-child { border-right: none; }
@media (max-width: 980px) {
  .ap-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 16px; }
}
.ap-stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.ap-stat-num sup {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  vertical-align: super;
  background: none;
  color: var(--accent);
  padding: 0;
  margin-left: 4px;
  border-radius: 0;
}
.ap-stat-num .m {
  font-family: var(--font-mono);
  font-size: 18px;
  vertical-align: baseline;
  margin-left: 4px;
  opacity: 0.7;
}
.ap-stat-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  line-height: 1.5;
}

.ap-services { background: var(--paper); }
.ap-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .ap-svc-grid { grid-template-columns: 1fr; } }
.ap-svc-col {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.ap-svc-col:last-child { border-right: none; padding-right: 0; }
.ap-svc-col:first-child { padding-left: 0; }
@media (max-width: 900px) {
  .ap-svc-col { border-right: none; padding: 32px 0; }
}
.ap-svc-col::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--accent);
}
.ap-svc-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 24px 0 28px;
}
.ap-svc-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  opacity: 0.5;
}
.ap-svc-t {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.015em;
}
.ap-svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.ap-svc-list li {
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  opacity: 0.85;
}
.ap-svc-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.ap-svc-list li:last-child { border-bottom: none; }

.ap-partners { background: var(--ecru); border-top: 1px solid var(--line); }
.ap-partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .ap-partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .ap-partners-grid { grid-template-columns: repeat(2, 1fr); } }
.ap-partner {
  background: var(--paper);
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 400;
  min-height: 110px;
  font-style: italic;
  transition: background 220ms;
}
.ap-partner:hover { background: var(--accent); }

.ap-certs { background: var(--paper); }
.ap-certs-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 900px) {
  .ap-certs-head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
}
.ap-certs-lead {
  margin: 0;
}

.ap-certs-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 980px) { .ap-certs-gallery { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 600px) { .ap-certs-gallery { grid-template-columns: 1fr; } }

.ap-cert-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.ap-cert-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.ap-cert-card:hover .ap-cert-zoom { opacity: 1; }

.ap-cert-thumb {
  aspect-ratio: 70 / 99;
  background: #f3f3ee;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.ap-cert-meta {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ap-cert-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 8px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 2px;
  align-self: flex-start;
}
.ap-cert-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  margin: 4px 0 0;
  letter-spacing: -0.01em;
}
.ap-cert-card p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.7;
  margin: 0;
}
.ap-cert-reg {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ap-cert-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 10px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.ap-certs-strip {
  margin-top: 48px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: var(--paper-warm, #f5f2ea);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ap-certs-strip-label { opacity: 0.55; }
.ap-certs-strip-issuer { font-weight: 500; }
.ap-certs-strip-sep {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 18, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  animation: certFadeIn 0.18s ease-out;
}
@keyframes certFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cert-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: var(--paper);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}
.cert-lightbox-close:hover {
  background: var(--paper);
  color: var(--ink);
}
.cert-lightbox-figure {
  margin: 0;
  max-width: 700px;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.cert-lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.cert-lightbox-figure figcaption {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0.85;
}
.cert-lightbox-figure figcaption strong {
  font-weight: 500;
  color: var(--accent);
}

.ap-quote {
  position: relative;
  padding: 140px 0;
  color: var(--paper);
  overflow: hidden;
  text-align: center;
}
.ap-quote-bg { position: absolute; inset: 0; z-index: 0; }
.ap-quote-bg img { width: 100%; height: 100%; object-fit: cover; }
.ap-quote-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,20,24,0.85) 0%, rgba(15,20,24,0.92) 100%);
}
.ap-quote-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.ap-quote-mark {
  font-family: var(--font-display);
  font-size: 140px;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: -20px;
  opacity: 0.9;
}
.ap-quote-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
  text-wrap: balance;
  color: var(--paper);
}
.ap-quote-by {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}
.ap-quote-by-meta {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.8;
}

.ap-structure { background: var(--ecru); border-top: 1px solid var(--line); }

.ap-org-diagram {
  margin: 0 auto 64px;
  max-width: 880px;
  padding: 48px 24px 24px;
}
.ap-org-parent-row {
  display: flex;
  justify-content: center;
}
.ap-org-svg {
  display: block;
  width: 100%;
  height: 60px;
  color: var(--line);
  margin: 0;
}
@media (max-width: 700px) {
  .ap-org-svg { display: none; }
}
.ap-org-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) {
  .ap-org-row { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
}
.ap-org-node {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}
.ap-org-node::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 24px; height: 2px;
  background: var(--accent);
}
.ap-org-parent {
  background: var(--ink);
  color: var(--paper);
  min-width: 280px;
}
.ap-org-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}
.ap-org-node strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.ap-org-node small {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.65;
  margin-top: 4px;
}

.ap-team-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
@media (max-width: 900px) { .ap-team-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .ap-team-cols { grid-template-columns: 1fr; } }
.ap-team-col {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ap-team-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  opacity: 0.5;
}
.ap-team-col h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
.ap-team-col p {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.7;
  margin: 0;
}
