/* Homepage-only A narrative treatment. Shared shell and inner pages are untouched. */
.ap-home {
  --home-ink: #0b1e34;
  --home-blue: #00537a;
  --home-deep: #033c58;
  --home-sun: #ffd35c;
  --home-cream: #fff2ce;
  --home-mist: #e4f2fb;
  color: var(--home-ink);
  background: #f6f8fa;
}
.ap-home :focus-visible { outline: 3px solid #f5a303; outline-offset: 4px; }
.ap-skip-link { position: absolute; left: 14px; top: 10px; z-index: 120; padding: 10px 14px; color: #fff; border-radius: 8px; background: #033c58; transform: translateY(-160%); }
.ap-skip-link:focus { transform: translateY(0); }
.ap-home .ap-hero {
  position: relative;
  min-height: max(760px, 100svh);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  color: var(--home-ink);
  background: linear-gradient(180deg, #fbf7ec 0%, #e4f2fb 64%, #b7dce9 100%);
}
.ap-home .ap-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .3;
  background: repeating-linear-gradient(135deg, transparent 0 56px, rgba(255,255,255,.42) 57px, transparent 58px);
  mask-image: linear-gradient(180deg, transparent, #000 42%, transparent 88%);
  pointer-events: none;
}
.ap-home .ap-hero::after {
  position: absolute;
  z-index: 0;
  inset: 58% -15% -35%;
  content: "";
  background: repeating-linear-gradient(174deg, transparent 0 32px, rgba(255,255,255,.33) 33px 35px, transparent 36px 66px);
  opacity: .62;
  transform: perspective(480px) rotateX(48deg);
  transform-origin: top;
  pointer-events: none;
}
.ap-home .ap-hero-sun {
  z-index: -1;
  top: 11%;
  right: 18%;
  width: clamp(220px, 34vw, 470px);
  background: radial-gradient(circle, rgba(255,211,92,.66) 0 19%, rgba(255,187,66,.25) 20% 40%, transparent 69%);
}
.ap-home .ap-hero-scene {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: translate3d(var(--home-pointer-x, 0px), var(--home-scene-y, 0px), 0);
  transition: transform .45s cubic-bezier(.2,.75,.2,1);
  will-change: transform;
}
.ap-home .kv-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ap-home #scene { position: absolute; inset: 0; }
@media (min-width: 1024px) {
  .ap-home .kv-copy {
    isolation: isolate;
    padding: 10px 16px 14px 12px;
    border-radius: 18px;
  }
  .ap-home .kv-copy::before {
    position: absolute;
    inset: -10px -18px;
    z-index: -1;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(228,242,251,.98), rgba(228,242,251,.97) 86%, rgba(228,242,251,.92));
    box-shadow: 0 10px 30px rgba(3,60,88,.08);
    content: "";
    pointer-events: none;
  }
}
.ap-home .ap-hero-inner { display: block; width: 100%; min-height: 100svh; }
.ap-home .ap-hero-copy {
  position: absolute;
  z-index: 2;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.ap-home .ap-hero-copy > *:not(h1) { display: none; }
.ap-home .ap-hero h1 { width: 1px; height: 1px; margin: -1px; overflow: hidden; }
.ap-home .ap-island-art { display: none; }
.ap-home .ap-island-art {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 48%;
  width: min(1060px, 92vw);
  margin: 0;
  transform: translate(calc(-50% + var(--home-pointer-x, 0px)), calc(-42% + var(--home-scene-y, 0px) + var(--home-pointer-y, 0px)));
  transform-origin: center;
  animation: home-scene-in 1.2s cubic-bezier(.2,.8,.2,1) both;
}
.ap-home .ap-island-art svg { width: 100%; filter: drop-shadow(0 30px 26px rgba(7,64,86,.12)); }
.ap-home .ap-island-art figcaption { display: none; }
.ap-home .ap-floating { animation-duration: 4.5s; }
.ap-home .ap-home-hero-copy {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 7vw, 104px);
  bottom: clamp(175px, 20vh, 210px);
  width: min(900px, 78vw);
  max-width: calc(100% - 48px);
  display: grid;
  justify-items: start;
  pointer-events: none;
}
.ap-home-hero-kicker {
  color: #155674;
  font: 700 11px/1.4 'Noto Sans TC', sans-serif;
  letter-spacing: .22em;
}
.ap-home-hero-wordmark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .18em;
  max-width: 100%;
  margin: 12px 0 8px;
  color: var(--home-blue);
  font: 600 clamp(48px, 8vw, 108px)/.92 'Poppins', 'Noto Sans TC', sans-serif;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.ap-home-hero-wordmark span:first-child { animation: home-word-rise .7s .18s both; }
.ap-home-hero-wordmark span:nth-child(2) { animation: home-word-rise .7s .32s both; }
.ap-home-hero-wordmark b { color: var(--home-ink); font-weight: 700; animation: home-word-rise .7s .46s both; }
.ap-home-hero-caption { color: #446b7a; font-size: 13px; font-weight: 700; letter-spacing: .11em; }
.ap-home .ap-hero-scroll {
  z-index: 4;
  bottom: 40px;
  left: clamp(24px, 7vw, 104px);
  color: #446b7a;
}
.ap-home .ap-hero-scroll i { background: #155674; }

@keyframes home-scene-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes home-word-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.ap-home-cover {
  position: relative;
  z-index: 4;
  margin-top: -74px;
  padding: 138px 0 132px;
  background: #fff;
}
.ap-cover-wave {
  position: absolute;
  top: -74px;
  left: 0;
  width: 100%;
  height: 76px;
  background: #fff;
  clip-path: polygon(0 64%, 11% 44%, 25% 32%, 39% 42%, 54% 72%, 68% 81%, 83% 48%, 100% 35%, 100% 100%, 0 100%);
}
.ap-cover-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
}
.ap-section-index, .ap-brand-overline {
  margin: 0 0 20px;
  color: #17627a;
  font: 700 11px/1.5 'Poppins', 'Noto Sans TC', sans-serif;
  letter-spacing: .16em;
}
.ap-cover-copy h1 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1.38;
  letter-spacing: -.055em;
}
.ap-cover-copy h1 em { color: #17627a; font-style: normal; }
.ap-cover-copy > p:not(.ap-section-index) {
  max-width: 700px;
  margin: 22px 0 0;
  color: #536b78;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.95;
}
.ap-cover-copy > p strong { color: #0b5673; }
.ap-cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ap-cover-links { display: grid; gap: 8px; margin-top: 27px; }
.ap-cover-links a {
  width: fit-content;
  color: #496c79;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: rgba(73,108,121,.35);
  text-underline-offset: 4px;
}
.ap-cover-links a:hover { color: #a76b20; }
.ap-cover-mark {
  position: relative;
  display: grid;
  width: min(100%, 360px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(0,83,122,.14);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff9e8 0 24%, transparent 25%), repeating-radial-gradient(circle, transparent 0 52px, rgba(0,83,122,.12) 53px 54px, transparent 55px 78px);
}
.ap-mark-sun { position: absolute; top: 13%; right: 12%; width: 64px; aspect-ratio: 1; border-radius: 50%; background: var(--home-sun); box-shadow: 0 0 0 16px rgba(255,211,92,.18); }
.ap-mark-orbit { position: absolute; inset: 17%; border: 1px dashed rgba(0,83,122,.36); border-radius: 50%; animation: home-orbit 26s linear infinite; }
.ap-mark-core { display: grid; place-items: center; width: 116px; aspect-ratio: 1; color: #fff; border-radius: 30px; background: linear-gradient(145deg, #17627a, #033c58); box-shadow: 0 20px 38px rgba(3,60,88,.2); font: 700 38px 'Poppins', sans-serif; transform: rotate(-8deg); }
.ap-mark-line { position: absolute; width: 66%; height: 1px; background: #71aabb; transform: rotate(-33deg); }
.ap-mark-note { position: absolute; right: -2%; bottom: 6%; padding: 13px 16px; color: #305d70; border: 1px solid rgba(0,83,122,.12); border-radius: 10px; background: rgba(255,255,255,.82); font-size: 11px; font-weight: 700; line-height: 1.8; }
@keyframes home-orbit { to { transform: rotate(360deg); } }

.ap-home-brand {
  position: relative;
  display: grid;
  min-height: 510px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 72% 25%, rgba(255,211,92,.17), transparent 30%), linear-gradient(130deg, #00537a, #033c58 72%);
}
.ap-home-brand::before, .ap-home-brand::after {
  position: absolute;
  width: min(62vw, 700px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  content: "";
}
.ap-home-brand::after { width: min(78vw, 920px); border-color: rgba(255,255,255,.08); }
.ap-brand-sun { position: absolute; top: 12%; right: 19%; width: clamp(110px, 16vw, 220px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffd35c 0 32%, rgba(255,211,92,.23) 33% 61%, transparent 62%); }
.ap-brand-inner { position: relative; z-index: 1; width: min(940px, calc(100% - 48px)); padding: 84px 0; text-align: center; }
.ap-brand-overline { color: #9fd1df; }
.ap-brand-line { margin: 0; font-size: clamp(31px, 4.8vw, 62px); font-weight: 900; line-height: 1.4; letter-spacing: -.04em; }
.ap-brand-line span { color: #ffe59d; }
.ap-brand-note { max-width: 620px; margin: 22px auto 0; color: rgba(236,247,250,.78); font-size: 15px; line-height: 1.9; }
.ap-brand-stats { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 64px); margin-top: 45px; }
.ap-brand-stats div { display: grid; gap: 4px; }
.ap-brand-stats b { color: #ffd35c; font: 600 clamp(26px, 3vw, 39px)/1 'Poppins', sans-serif; }
.ap-brand-stats span { color: rgba(255,255,255,.72); font-size: 12px; }
.ap-brand-stats i { width: 1px; height: 36px; background: rgba(255,255,255,.26); }
.ap-home #triage { z-index: 2; margin-top: 0; border-radius: 0; background: #f6f8fa; }
.ap-home #brand { min-height: 100svh; }
.ap-home #brandPin { width: 100%; }
@media (max-width: 1023px) {
  .ap-home #brandPin [data-k="tri-soft"] { display: none; }
}
/* Preserve normal page scrolling; remove the decorative up/down scroll cues. */
.ap-home .ap-hero-scroll,
.ap-home .scroll-hint,
.ap-home .scroll-up { display: none !important; }
.ap-home #stack { position: relative; isolation: isolate; padding-bottom: 1px; }
.ap-home #stack .ap-service-door {
  transform-origin: center top;
  will-change: transform, opacity;
}
.ap-home #ai-solutions { padding: 112px 0 0; background: #fbf7ec; }
.ap-home #ai-solutions > .container { width: 100%; max-width: none; padding: 0; }
.ap-home #ai-solutions > .container > .text-center { width: min(780px, calc(100% - 48px)); margin: 0 auto 58px; }
.ap-home #stack {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}
.ap-home #stack .grid { display: contents; }
.ap-home #stack > .mt-8.max-w-7xl { display: contents; }
.ap-home #stack .ap-service-door {
  position: sticky;
  top: var(--st, 0px);
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.ap-home #stack .svc-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -24px 48px -28px rgba(0,83,122,.28);
}
.ap-home #stack .svc-txt {
  z-index: 2;
  display: flex;
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-height: 100%;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(42px, 7vh, 82px) clamp(30px, 7vw, 116px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ap-home #stack .svc-txt::-webkit-scrollbar { display: none; width: 0; height: 0; }
.ap-home #stack .svc-art {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100%;
  place-items: center;
  overflow: hidden;
  background: var(--home-cream);
  isolation: isolate;
}
.ap-home #stack .svc-art::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: .55;
  background-image: linear-gradient(rgba(0,83,122,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0,83,122,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(135deg, transparent, #000 55%, transparent);
}
.ap-home .svc-art-orbit {
  position: absolute;
  width: min(54vw, 620px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--art-sky), transparent 58%);
  border-radius: 50%;
  box-shadow: 0 0 0 38px color-mix(in srgb, var(--art-sky), transparent 88%), 0 0 0 78px color-mix(in srgb, var(--art-sky), transparent 92%);
}
.ap-home .svc-art-window {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(28vw, 360px);
  min-width: 250px;
  aspect-ratio: 1.2;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border: 2px solid #17495d;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 20px 24px 0 color-mix(in srgb, var(--art-sky), transparent 48%), 0 34px 65px rgba(3,60,88,.18);
  transform: rotate(-5deg);
}
.ap-home .svc-art-window span { height: 18px; margin: -1px -1px 0; border-radius: 5px; background: var(--art-sky); }
.ap-home .svc-art-window i { display: block; height: 12px; width: 84%; border-radius: 20px; background: #d9e8e8; }
.ap-home .svc-art-window i:nth-of-type(2) { width: 61%; background: var(--art-sun); }
.ap-home .svc-art-window i:nth-of-type(3) { width: 72%; }
.ap-home .svc-art-tile { position: absolute; z-index: 3; width: 86px; aspect-ratio: 1; border: 2px solid #17495d; background: var(--art-sun); transform: rotate(45deg); }
.ap-home .svc-art-tile-a { top: 19%; left: 17%; }
.ap-home .svc-art-tile-b { right: 16%; bottom: 17%; width: 62px; background: var(--art-sky); }
.ap-home .svc-art-path { position: absolute; z-index: 0; width: 72%; height: 56%; border: 2px dashed color-mix(in srgb, var(--art-sky), transparent 12%); border-left: 0; border-bottom: 0; border-radius: 50%; transform: rotate(26deg); }
.ap-home #stack .svc-card .shade { z-index: 5; }
.ap-home #stack.is-door { height: 100svh; }
.ap-home #stack.is-door .svc { position: absolute; inset: 0; top: 0; }
.ap-home #stack.is-door .svc-card { height: 100svh; min-height: 0; background: transparent !important; box-shadow: none; clip-path: none; }
.ap-home #stack.is-door .svc-art { background: transparent; }
.ap-home #base { position: relative; z-index: 2; }
.ap-home #trust { background: #fff9e8; }
.ap-home #triage .grid > div {
  position: relative;
  border: 1px solid rgba(0,83,122,.12);
  border-radius: 6px 22px 6px 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(9,59,79,.055);
  transition: transform .28s ease, box-shadow .28s ease;
}
.ap-home #triage .grid > div:hover { transform: translateY(-5px); box-shadow: 0 22px 42px rgba(9,59,79,.1); }

/* The existing production cards keep their order and copy; visual stages alternate like A. */
.ap-home #ai-solutions { padding-top: 105px; padding-bottom: 108px; background: #eef5f7; }
.ap-home #ai-solutions > .container > .text-center { margin-bottom: 68px; }
.ap-home #ai-solutions > .container > .grid { display: contents; }
.ap-home #aicoding-card, .ap-home #modernize {
  width: min(1160px, calc(100% - 64px));
  min-height: 450px;
  margin: 0 auto 36px;
  padding: clamp(34px, 6vw, 78px);
  border: 1px solid rgba(0,83,122,.12);
  border-radius: 8px 34px 8px 34px;
  box-shadow: 0 24px 60px rgba(5,61,82,.08);
}
.ap-home #aicoding-card::after, .ap-home #modernize::after {
  position: absolute;
  right: -5%;
  bottom: -36%;
  width: 43%;
  aspect-ratio: 1;
  border: 1px solid rgba(0,83,122,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(0,83,122,.035), 0 0 0 68px rgba(0,83,122,.025);
  content: "";
  pointer-events: none;
}
.ap-home #modernize::after { border-color: rgba(255,211,92,.35); box-shadow: 0 0 0 34px rgba(255,211,92,.07), 0 0 0 68px rgba(255,211,92,.04); }
.ap-home #operations-system-card, .ap-home #aidoc-card {
  width: min(1160px, calc(100% - 64px));
  min-height: 300px;
  margin: 36px auto;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 8px 34px 8px 34px;
  box-shadow: 0 24px 60px rgba(5,61,82,.09);
}
.ap-home #aidoc-card { border-color: rgba(0,83,122,.12); background: #fff9e8; }
.ap-home #aidoc-card > div:last-child { padding: 0; }
.ap-home #camp-card {
  width: min(1160px, calc(100vw - 64px));
  min-height: 440px;
  margin: 36px auto 0;
  padding: clamp(34px, 6vw, 78px);
  border-radius: 8px 34px 8px 34px;
  box-shadow: 0 24px 60px rgba(5,61,82,.09);
}
.ap-home #camp-card::after {
  position: absolute;
  right: -8%;
  bottom: -42%;
  width: 43%;
  aspect-ratio: 1;
  border: 1px solid rgba(245,163,3,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(245,163,3,.05), 0 0 0 70px rgba(245,163,3,.035);
  content: "";
  pointer-events: none;
}
.ap-home #ai-solutions .grid > *, .ap-home #ai-solutions #camp-card { transition: transform .6s cubic-bezier(.2,.75,.2,1), opacity .6s ease; }
.ap-home .home-reveal {
  clip-path: inset(0 5%);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.75,.2,1),
    clip-path .8s cubic-bezier(.2,.75,.2,1);
}
.ap-home .home-reveal.is-visible { clip-path: inset(0); opacity: 1; transform: none; }

.ap-home #cases { overflow: hidden; padding-top: 0; padding-bottom: 0; color: #fff; background: #00537a; }
.ap-home #cases .text-ap-orange { color: #ffe59d; }
.ap-home #cases h2 { color: #fff; }
.ap-home #cases .text-gray-500 { color: rgba(255,255,255,.72); }
.ap-home #cases .ap-case-controls { color: #d8edf4; }
.ap-home #cases .ap-case-controls b { color: #ffe59d; }
.ap-home #cases .container { max-width: 1280px; }
.ap-home .ap-case-controls { display: inline-flex; align-items: center; gap: 14px; color: #54717d; font: 12px 'Poppins', sans-serif; }
.ap-case-controls b { color: #00537a; }
.ap-case-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(0,83,122,.2);
  border-radius: 50%;
  color: #00537a;
  background: transparent;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.ap-case-controls button:hover { color: #fff; background: #00537a; transform: translateY(-2px); }
.ap-case-controls button:disabled { cursor: not-allowed; opacity: .35; transform: none; }
.ap-home .ap-case-track {
  display: grid;
  grid-auto-columns: min(760px, calc(100vw - 130px));
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #8eb5bf transparent;
  padding: 3px 3px 24px;
  -webkit-overflow-scrolling: touch;
}
.ap-home .ap-case-track article {
  width: min(760px, calc(100vw - 80px));
  min-height: 440px;
  scroll-snap-align: start;
  border-radius: 8px 28px 8px 28px;
  box-shadow: 0 18px 44px rgba(7,57,77,.07);
}
.ap-home .ap-case-track article:hover { transform: translateY(-4px); }
.ap-home .ap-case-track:focus-visible { outline-offset: 6px; }
.ap-home .ap-case-track article p { line-height: 1.9; }

.ap-home #blog { padding-top: 105px; padding-bottom: 105px; background: #fbf7ec; }
.ap-home #contact { background: #00537a; }
.ap-home #contact form { display: block; margin-top: 0; }
.ap-home .ap-hero-scroll i { animation: ap-scroll 2s ease-in-out infinite; }

/* A prototype shell: editorial header, refractive menu surface and the
   oversized typographic footer are intentionally scoped to the homepage. */
.ap-home #topnav {
  position: relative;
  inset: auto;
  z-index: 20;
  min-height: 84px;
  background: var(--home-cream);
  border-bottom: 1px solid rgba(0,83,122,.1);
}
.ap-home #topnav > div { min-height: 84px; }
.ap-home #topnav .nav-link { color: var(--home-ink); }
.ap-home #topnav .nav-link:hover { color: #a76b20; }
.ap-home #nav-logo { filter: none !important; mix-blend-mode: normal !important; }
.ap-home-logo { display: inline-flex; align-items: center; gap: 9px; }
.ap-home-logo-mark { width: 37px; height: 37px; object-fit: contain; }
.ap-home-logo-word { width: 118px; height: 28px; object-fit: contain; filter: brightness(0) saturate(100%) invert(15%) sepia(37%) saturate(1946%) hue-rotate(164deg) brightness(93%) contrast(102%); }
.ap-home .ap-home-logo img:first-child { width: 40px; height: 40px; object-fit: contain; }
.ap-home .ap-home-logo img:last-child { width: 138px; height: auto; filter: brightness(0) invert(1); }
.ap-home .ap-menu-panel.ovl {
  --glass-rim: rgba(255,255,255,.62);
  z-index: 80;
  color: var(--home-ink);
  background:
    radial-gradient(ellipse at 12% 4%, rgba(255,255,255,.94), transparent 37%),
    linear-gradient(135deg, rgba(250,249,240,.96), rgba(222,240,247,.94) 55%, rgba(255,239,198,.96));
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  backdrop-filter: blur(26px) saturate(1.35);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
  clip-path: inset(0 round 0);
  transition: none;
  isolation: isolate;
}
.ap-home .ap-menu-panel.ovl:not(.open) { visibility: visible; pointer-events: none; }
.ap-home .ap-menu-panel.ovl::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .36;
  background:
    radial-gradient(ellipse at var(--glass-x, 54%) var(--glass-y, 0%), rgba(255,255,255,.88), transparent 46%),
    repeating-linear-gradient(135deg, transparent 0 68px, rgba(255,255,255,.22) 69px, transparent 70px);
}
.ap-home .ap-menu-head,
.ap-home .ap-menu-grid,
.ap-home .ap-menu-footer { position: relative; z-index: 1; }
.ap-home .ap-menu-head { border-bottom: 1px solid rgba(0,83,122,.12); }
.ap-home .ap-menu-label { color: #17627a; }
.ap-home .mobile-nav-link { color: var(--home-ink); }
.ap-home .mobile-nav-link:hover,
.ap-home .mobile-nav-link:focus-visible { background: rgba(255,255,255,.62); }
.ap-home .ap-menu-close {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--home-ink);
  border: 1px solid rgba(0,83,122,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 24px rgba(3,60,88,.08);
}
.ap-home .ap-menu-footer { color: #456b79; }
.ap-home .ap-menu-line { color: var(--home-ink); background: var(--home-sun); }
.ap-home #ap-capsule {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.ap-home #pill {
  position: relative;
  position: relative;
  left: auto;
  bottom: auto;
  z-index: auto;
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: none;
  --glass-tint: rgba(251,247,236,.64);
  --glass-spec: rgba(255,255,255,.86);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at var(--glass-x, 45%) var(--glass-y, 0%), rgba(255,255,255,.9), transparent 52%),
    var(--glass-tint);
  -webkit-backdrop-filter: blur(20px) saturate(1.45);
  backdrop-filter: blur(20px) saturate(1.45);
  box-shadow: inset 0 1px 0 var(--glass-spec), 0 16px 38px rgba(3,60,88,.18);
}
.ap-home #pill::after {
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.38), transparent 43%, rgba(0,83,122,.06));
}
.ap-home #pill.lg-dark {
  --glass-tint: rgba(3,60,88,.7);
  --glass-spec: rgba(255,255,255,.35);
  color: #fff;
}
.ap-home #pill.lg-dark .ap-capsule-menu { color: #fff; }
.ap-home #pill.lg-dark .cta,
.ap-home #pill.lg-dark .ln { color: #fff; }
.ap-home .cases-s { overflow: hidden; }
.ap-home #casesPin { position: relative; }
.ap-home #casesTrack {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-auto-columns: min(760px, calc(100vw - 130px));
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #8eb5bf transparent;
  padding: 3px 3px 24px;
  -webkit-overflow-scrolling: touch;
}
.ap-home #casesTrack article { width: auto; min-width: 0; scroll-snap-align: start; }
.ap-home .ap-home-pause {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 52;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  color: #17495d;
  border: 1px solid rgba(0,83,122,.18);
  border-radius: 999px;
  background: rgba(255,250,237,.82);
  box-shadow: 0 8px 26px rgba(3,60,88,.12);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 700;
}
.ap-home .ap-home-pause i { width: 10px; height: 12px; border-right: 3px solid currentColor; border-left: 3px solid currentColor; }
.ap-home .ap-home-pause[aria-pressed="true"] i { width: 0; height: 0; border: 7px solid transparent; border-right: 0; border-left: 11px solid currentColor; }
.ap-home #trail {
  position: fixed;
  inset: 0;
  z-index: 48;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .55;
}
.ap-home .ap-menu-trigger.mbtn {
  display: none;
  color: var(--home-ink);
  border-color: rgba(0,83,122,.18);
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 28px rgba(3,60,88,.1);
}
@media (max-width: 1023px) {
  .ap-home .ap-menu-trigger.mbtn { display: flex; }
}
.ap-home-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 78px 0 26px;
  color: var(--ap-text);
  background: #fff;
}
.ap-home-footer::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255,211,92,.8), transparent);
}
.ap-home-footer-inner { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.ap-home-footer-grid { display: grid; grid-template-columns: 1.05fr 1.5fr; gap: 44px; align-items: start; }
.ap-home-footer-brand img { width: 188px; height: auto; }
.ap-home-footer-brand img:first-child { width: 42px; }
.ap-home .ap-home-footer-brand .ap-home-logo img:last-child { filter: brightness(0) saturate(100%) invert(15%) sepia(37%) saturate(1946%) hue-rotate(164deg) brightness(93%) contrast(102%); }
.ap-home-footer-brand p { max-width: 290px; margin: 22px 0 10px; color: var(--ap-text-muted); font-size: 15px; line-height: 1.8; }
.ap-home-footer-email { color: var(--ap-navy); font-size: 15px; font-weight: 600; }
.ap-home-footer-social { display: flex; gap: 9px; margin-top: 18px; }
.ap-home-footer-social a { display: grid; width: 40px; height: 40px; place-items: center; border: 1.5px solid var(--ap-navy); border-radius: 50%; color: var(--ap-navy); font-size: 13px; font-weight: 700; }
.ap-home-footer-social a:hover { color: var(--home-ink); background: var(--home-sun); }
.ap-home-footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 24px; color: var(--ap-text); font-size: 15px; }
.ap-home-footer-links a:hover { color: var(--ap-navy); }
.ap-home-footer-wordmark { overflow: hidden; margin: 66px 0 25px; color: var(--ap-navy); font: 700 clamp(48px, 11vw, 148px)/.82 'Poppins', sans-serif; letter-spacing: -.08em; white-space: nowrap; }
.ap-home-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 20px; border-top: 1px solid var(--ap-line); color: var(--ap-text-muted); font-size: 13.5px; }
.ap-home-footer-bottom nav { display: flex; gap: 20px; }
.ap-home-footer-bottom a:hover { color: var(--ap-navy); }
.ap-home .scroll-up.is-footer,
.ap-home .pause.is-footer { opacity: 0; visibility: hidden; pointer-events: none; }

@media (max-width: 767px) {
  .ap-home #stack .ap-service-door { position: relative; top: auto; min-height: 0; }
  .ap-home #stack .svc-card { display: grid; height: auto; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .ap-home #stack .svc-txt { height: auto; max-height: none; overflow: visible; padding: 36px 24px 48px; }
  .ap-home #stack .svc-art { order: -1; height: max(300px, 40vh); min-height: 0; }
  .ap-home .svc-art-window { width: min(58vw, 300px); min-width: 0; }
  .ap-home .svc-art-tile-a { left: 8%; }
  .ap-home .svc-art-tile-b { right: 8%; }
  .ap-home .ap-hero { min-height: max(740px, 100svh); }
  .ap-home .ap-hero-inner { min-height: max(740px, 100svh); }
  .ap-home .ap-island-art { top: 42%; width: 138vw; }
  .ap-home .ap-hero-scene { height: 76%; top: 7%; }
  .ap-home .ap-home-hero-copy { left: 22px; bottom: 106px; width: calc(100% - 44px); max-width: none; }
  .ap-home-hero-wordmark { gap: .12em; font-size: clamp(48px, 13vw, 72px); }
  .ap-home-hero-caption { max-width: 280px; font-size: 11px; }
  .ap-home .ap-hero-scroll { left: 22px; bottom: 38px; }
  .ap-home-cover { margin-top: -38px; padding: 90px 0 92px; }
  .ap-cover-wave { top: -38px; height: 40px; }
  .ap-cover-inner { grid-template-columns: 1fr; width: calc(100% - 42px); gap: 38px; }
  .ap-cover-copy h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.45; }
  .ap-cover-copy > p:not(.ap-section-index) { margin-top: 17px; font-size: 15px; line-height: 1.85; }
  .ap-cover-actions { display: grid; }
  .ap-cover-actions .ap-button { width: 100%; }
  .ap-cover-mark { width: min(76vw, 300px); }
  .ap-mark-core { width: 92px; font-size: 30px; }
  .ap-home-brand { min-height: 470px; }
  .ap-brand-inner { width: calc(100% - 42px); padding: 78px 0; }
  .ap-brand-line { font-size: clamp(30px, 8vw, 42px); }
  .ap-brand-note { font-size: 13px; }
  .ap-brand-stats { gap: 15px; margin-top: 34px; }
  .ap-brand-stats b { font-size: 25px; }
  .ap-brand-stats span { font-size: 10px; }
  .ap-brand-stats i { height: 30px; }
  .ap-home #triage { padding-top: 72px; padding-bottom: 72px; }
  .ap-home #ai-solutions { padding-top: 75px; padding-bottom: 75px; }
  .ap-home #aicoding-card, .ap-home #modernize,
  .ap-home #operations-system-card, .ap-home #aidoc-card,
  .ap-home #camp-card { width: calc(100% - 36px); margin: 24px auto; padding: 26px 22px; border-radius: 6px 24px 6px 24px; }
  .ap-home #aicoding-card, .ap-home #modernize, .ap-home #camp-card { min-height: 0; }
  .ap-home #operations-system-card, .ap-home #aidoc-card { min-height: 0; }
  .ap-home #cases { padding: 76px 0; }
  .ap-home #cases .flex-col { gap: 18px; }
  .ap-home .ap-case-track { grid-auto-columns: 90%; gap: 14px; margin-right: -16px; padding-right: 20px; }
  .ap-home .ap-case-track article { width: 100%; min-height: 0; padding: 24px; }
  .ap-home .ap-case-track article h3 { font-size: 21px; }
  .ap-home .ap-case-controls { justify-content: flex-start; }
  .ap-home #topnav { min-height: 72px; }
  .ap-home #topnav > div { min-height: 72px; }
  .ap-home #stack .ap-service-door { top: auto; }
  .ap-home-footer { padding-top: 58px; }
  .ap-home-footer-inner { width: calc(100% - 42px); }
  .ap-home-footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .ap-home-footer-links { gap: 11px 18px; }
  .ap-home-footer-wordmark { margin: 45px 0 20px; font-size: 8.4vw; line-height: 1; }
  .ap-home-footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ap-home #stack .svc-card { grid-template-columns: 1fr; grid-template-rows: 40vh 1fr; }
  .ap-home #stack .svc-art { order: -1; height: max(300px, 40vh); min-height: 0; }
  .ap-home #stack .svc-txt { height: 60vh; max-height: 60vh; padding: 36px 40px 46px; }
  .ap-home #stack .ap-service-door { position: sticky; top: 0; min-height: 100svh; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-home .ap-island-art, .ap-home .ap-floating, .ap-home .ap-mark-orbit,
  .ap-home .ap-home-hero-wordmark span, .ap-home .ap-home-hero-wordmark b,
  .ap-home .ap-hero-scroll i { animation: none !important; }
  .ap-home .ap-home-hero-wordmark span, .ap-home .ap-home-hero-wordmark b { opacity: 1; transform: none; }
  .ap-home .ap-home-hero-copy, .ap-home .ap-island-art { transition: none !important; }
  .ap-home .home-reveal { opacity: 1; transform: none; }
  .ap-home #pill,
  .ap-home .ap-menu-panel.ovl { transition: none !important; }
}

/* Final A-source structure overrides: keep the prototype's actual DOM and layout,
   while neutralizing the first-pass generated-card and fixed-header treatment. */
.ap-home #topnav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  width: 100%;
  height: 84px;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3.4vw, 48px);
  border: 0;
  background: transparent;
}
.ap-home #topnav .brand { display: flex; align-items: center; gap: 10px; color: var(--ap-navy); }
.ap-home #topnav .brand svg { width: 34px; height: 34px; }
.ap-home #topnav .brand svg.wm { width: auto; height: 19px; aspect-ratio: 920.67 / 161.2; margin-top: 2px; }
.ap-home #topnav .gnav { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--ap-ink); }
.ap-home #topnav .gnav > li { position: relative; }
.ap-home #topnav .gnav > li > a,
.ap-home #topnav .gnav summary { display: inline-flex; height: 40px; align-items: center; gap: 5px; padding: 0 10px; border-radius: 999px; color: inherit; font-size: 14px; white-space: nowrap; }
.ap-home #topnav .gnav > li > a:hover,
.ap-home #topnav .gnav summary:hover { background: rgba(0,83,122,.07); color: var(--ap-navy); }
.ap-home #topnav .nav-services .nav-submenu { position: absolute; top: 100%; left: 50%; min-width: 214px; padding-top: 8px; opacity: 0; visibility: hidden; transform: translate(-50%,8px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.ap-home #topnav .nav-services:hover .nav-submenu,
.ap-home #topnav .nav-services:focus-within .nav-submenu { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.ap-home #topnav .nav-submenu > a { display: block; padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--ap-ink); font-size: 14px; }
.ap-home #topnav .nav-submenu > a:hover { background: var(--ap-cream); }
.ap-home #topnav .nav-line { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; margin-left: 6px; padding: 0 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff !important; background: var(--ap-navy); box-shadow: 0 6px 16px rgba(0,83,122,.16); font-size: 15px; font-weight: 700; }
.ap-home #topnav .nav-line span { color: inherit; }
.ap-home #topnav .nav-line:hover { color: #fff !important; background: var(--ap-navy-deep); }
.ap-home #topnav .nav-line:focus-visible { outline: 3px solid var(--ap-sun); outline-offset: 3px; }
.ap-home #topnav .mbtn { display: none; position: relative; z-index: 60; height: 42px; align-items: center; gap: 8px; padding: 0 14px; border: 1.5px solid var(--ap-navy); border-radius: 999px; color: var(--ap-navy); background: rgba(255,255,255,.78); font: 700 11px var(--ap-font-latin); letter-spacing: .12em; }
.ap-home #topnav .mbtn > .menu-bar { width: 17px; height: 1px; background: currentColor; }
.ap-home #topnav .mbtn > .menu-bar:nth-child(2) { margin-left: -25px; transform: translateY(5px); }

.ap-home #stack { position: relative; width: 100vw; max-width: none; margin-left: calc(50% - 50vw); padding: 0; }
.ap-home #stack > .svc { position: sticky; top: var(--st, 0px); width: 100%; min-height: 100svh; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.ap-home #stack > #ai-solutions { padding: 0; background: transparent; }
.ap-home #stack .svc-card { grid-template-columns: 1fr 1fr; width: 100%; height: 100svh; min-height: 100svh; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: var(--ap-bg); box-shadow: 0 -24px 48px -28px rgba(0,83,122,.28); }
.ap-home #stack .svc.navy .svc-card { background: var(--ap-navy); }
.ap-home #stack .svc-txt { height: 100%; min-height: 0; max-height: 100%; padding: clamp(64px,9vh,104px) clamp(32px,4vw,72px) clamp(64px,9vh,104px) max(24px,calc((100vw - 1160px)/2)); overflow-y: auto; }
.ap-home #stack .svc.flip .svc-txt { padding-right: max(24px,calc((100vw - 1160px)/2)); padding-left: clamp(32px,4vw,72px); }
.ap-home #stack .svc-art { position: relative; display: block; min-height: 420px; overflow: hidden; background: transparent; isolation: isolate; }
.ap-home #stack .svc-art::before { display: none; }
.ap-home #stack .svc-art .blk { position: absolute; border-radius: 8px; }
.ap-home #stack .svc-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ap-home #stack .svc-card .shade { z-index: 5; }
.ap-home #stack .svc-intro .svc-art { background: var(--ap-warm); }
.ap-home #stack .svc-intro .svc-art .blk { border-radius: 0; }
.ap-home #stack .svc-intro .svc-art .dc { position: absolute; }
.ap-home #stack #aicoding-card,
.ap-home #stack #modernize,
.ap-home #stack #operations-system-card,
.ap-home #stack #aidoc-card,
.ap-home #stack #camp-card { width: 100%; min-height: 100svh; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.ap-home #stack #aicoding-card::after,
.ap-home #stack #modernize::after,
.ap-home #stack #camp-card::after { content: none; }

.ap-home #cases .cases-head { width: min(1160px, calc(100% - 48px)); margin: 0 auto 30px; }
.ap-home #cases .cases-controls { margin-top: 20px; }
.ap-home #cases .cases-controls button { border-color: rgba(255,255,255,.36); color: #fff; }
.ap-home #cases .cases-controls button:hover { background: var(--ap-sun); color: var(--ap-navy); }
.ap-home #cases .cases-track { display: flex; width: max-content; gap: 32px; margin-top: 52px; overflow: visible; padding: 0 max(24px, calc((100vw - 1160px)/2)) 0 max(24px, calc((100vw - 1160px)/2)); }
.ap-home #cases .case-c { display: grid; width: min(940px,82vw); height: min(540px,62vh); min-height: 460px; grid-template-columns: 40% 1fr; flex: 0 0 auto; overflow: hidden; border-radius: 28px; color: var(--ap-ink); background: #fff; }
.ap-home #cases .case-c .art { position: relative; min-width: 0; overflow: hidden; background: var(--ap-cream); }
.ap-home #cases .case-c .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ap-home #cases .case-c .bd2 { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(24px,4vw,52px); }
.ap-home #cases .case-c .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12px; color: var(--ap-text-muted); }
.ap-home #cases .case-c .meta b { color: var(--ap-navy); }
.ap-home #cases .case-c .nda { margin-left: auto; padding: 4px 8px; border: 1px solid var(--ap-line); border-radius: 99px; }
.ap-home #cases .case-c h3 { margin: 16px 0; color: var(--ap-navy); font-size: clamp(22px,2.3vw,32px); }
.ap-home #cases .case-c dl { display: grid; grid-template-columns: 42px 1fr; gap: 8px 12px; font-size: 14px; line-height: 1.7; }
.ap-home #cases .case-c dt { color: var(--ap-navy); font-weight: 800; }
.ap-home #cases .case-c dd { margin: 0; color: var(--ap-text-muted); }
.ap-home #cases .case-c .tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.ap-home #cases .case-c .tags span { padding: 5px 8px; border-radius: 999px; color: var(--ap-navy); background: var(--ap-bg-soft); font-size: 11px; }
.ap-home #cases .case-c .nums { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 8px; }
.ap-home #cases .case-c .nums > div { padding-top: 10px; border-top: 1px solid var(--ap-line); }
.ap-home #cases .case-c .n { color: var(--ap-navy); font: 700 clamp(19px,2vw,27px)/1.1 var(--ap-font-latin); }
.ap-home #cases .case-c .l { margin-top: 5px; color: var(--ap-text-muted); font-size: 11px; }
.ap-home #cases .cases-nav { display: flex; width: min(1060px,calc(100vw - 96px)); align-items: center; gap: 14px; margin: 28px auto 0; color: rgba(255,255,255,.8); font: 600 11px var(--ap-font-latin); }
.ap-home #cases .cases-nav .bar { height: 2px; flex: 1; background: rgba(255,255,255,.22); }
.ap-home #cases .cases-nav i { display: block; width: 0; height: 100%; background: var(--ap-sun); }

@media (min-width: 1024px) and (max-height: 900px) {
  .ap-home #cases .cases-head { transform: translateY(clamp(68px, 8vh, 76px)); }
}
@media (min-width: 1024px) and (max-height: 700px) {
  .ap-home #cases .cases-head { transform: translateY(88px); }
}

.ap-home #contact { background: var(--ap-navy); }
.ap-home #contact .contact-frame { width: 100%; }
.ap-home #contact form { display: block; margin-top: 34px; }
.ap-home #contact label { color: var(--ap-sky-soft); }
.ap-home #contact input,
.ap-home #contact select,
.ap-home #contact textarea { border-color: transparent; background: #fff; color: var(--ap-ink); }
.ap-home #contact .card-info { border-radius: var(--ap-radius-panel); background: var(--ap-navy-deep); }
.ap-home #blog { padding: 110px 0; background: var(--ap-warm); }
.ap-home .blog-empty { padding: 42px; border: 1px dashed var(--ap-line); border-radius: 18px; background: rgba(255,255,255,.55); }
.ap-home #pause[hidden] { display: none !important; }

@media (max-width: 1023px) {
  .ap-home #casesPin { height: auto; min-height: 0; padding: 90px 0 70px; overflow: visible; }
  .ap-home #casesPin [data-k="dots"] { display: none; }
  .ap-home #topnav { height: 72px; min-height: 0; }
  .ap-home #topnav .gnav { display: none; }
  .ap-home #topnav .mbtn { display: inline-flex; }
  .ap-home #stack .svc-card { height: auto; min-height: 100svh; grid-template-columns: 1fr; grid-template-rows: minmax(300px,40vh) 1fr; }
  .ap-home #stack .svc-art { order: -1; height: max(300px,40vh); min-height: 0; }
  .ap-home #stack .svc-txt,
  .ap-home #stack .svc.flip .svc-txt { height: auto; max-height: none; padding: 38px 24px 54px; overflow: visible; }
  .ap-home #cases .cases-head { width: auto; margin: 0 24px 28px; }
  .ap-home #cases .cases-track { width: auto; flex-direction: column; gap: 18px; overflow: visible; padding: 0 24px; margin-top: 28px; }
  .ap-home #cases .case-c { width: 100%; height: auto; min-height: 0; grid-template-columns: 1fr; }
  .ap-home #cases .case-c .art { height: 240px; }
  .ap-home #cases .case-c .bd2 { padding: 24px; }
  .ap-home #cases .cases-nav { display: none; }
  .ap-home #cases .cases-controls { display: none; }
  .ap-home #contact .contact-g { grid-template-columns: 1fr; gap: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-home #topnav .nav-services .nav-submenu { transition: none; }
}

/* The A homepage uses a light glass menu, so its content stays dark and high-contrast. */
.ap-home .ap-menu-head img { filter: none; }
.ap-home .ap-menu-head img:last-child {
  filter: brightness(0) saturate(100%) invert(15%) sepia(37%) saturate(1946%) hue-rotate(164deg) brightness(93%) contrast(102%);
}
.ap-home .ap-menu-panel .ap-menu-label {
  color: #17627a;
  border-color: rgba(0,83,122,.18);
}
.ap-home .ap-menu-panel .mobile-nav-link { color: var(--home-ink) !important; }
.ap-home .ap-menu-panel .mobile-nav-link:hover,
.ap-home .ap-menu-panel .mobile-nav-link:focus-visible {
  color: var(--home-ink) !important;
  background: rgba(0,83,122,.08);
}
.ap-home .ap-menu-footer p { color: #456b79; }
.ap-home .ap-menu-panel .ap-menu-close {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  display: inline-flex;
  width: auto;
  min-width: 112px;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  overflow: visible;
  color: var(--home-ink) !important;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  white-space: nowrap;
}
.ap-home .ap-menu-panel .ap-menu-close svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.ap-home .ap-menu-panel .ap-menu-close .lg-tx {
  font-size: 11px;
  letter-spacing: .12em;
}

/* Keep text and button hover feedback calm: color changes, no character flips or jumps. */
.ap-home .btn,
.ap-home .tlink,
.ap-home .ap-home-footer a {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ap-home .btn:hover { transform: none; }
.ap-home .bfx::before { opacity: 0; scale: 1; transition: opacity .18s ease; }
.ap-home .bfx .b-bg { clip-path: none; transition: background-color .18s ease, box-shadow .18s ease; }
.ap-home .bfx .b-hov { display: none; }
.ap-home .bfx .b-txt .b { display: none; }
.ap-home .bfx .b-txt .f .ch { transform: none; opacity: 1; transition: none; }
.ap-home .bfx:hover .b-bg { clip-path: none; background-color: var(--b-hov); }
.ap-home .bfx:hover::before { opacity: .3; }
.ap-home .bfx:hover .b-txt .f .ch { transform: none; opacity: 1; }
.ap-home .tlink:hover {
  color: #9a621d;
  background-size: 100% 1.5px;
  background-position: left bottom;
}
.ap-home .tri-col .h3 { transition: color .18s ease; }
.ap-home .tri-col:hover .h3,
.ap-home .tri-col.is-hov .h3 { color: #9a621d; transform: none; }
.ap-home .tri-col .ar { transition: transform .18s ease; }
.ap-home .tri-col .tlink:hover .ar,
.ap-home .tri-col:hover .acts .tlink:first-child .ar,
.ap-home .tri-col.is-hov .acts .tlink:first-child .ar { transform: translateX(2px); }
.ap-home .ap-home-footer-links a:hover,
.ap-home .ap-home-footer-bottom a:hover { color: #9a621d; }
.ap-home .ap-home-footer-social a { transition: color .18s ease, background-color .18s ease; }

@media (prefers-reduced-motion: reduce) {
  .ap-home .btn,
  .ap-home .tlink,
  .ap-home .ap-home-footer a { transition: none; }
}

/* Keep small labels and section accents readable without changing the A palette. */
.ap-home main > section:not([class*="bg-ap-navy"]):not([class*="bg-ap-deep"]) .text-gray-400 {
  color: #536b78 !important;
}
.ap-home main > section:not([class*="bg-ap-navy"]):not([class*="bg-ap-deep"]) .text-ap-orange {
  color: #925710 !important;
}
.ap-home main > section:not([class*="bg-ap-navy"]):not([class*="bg-ap-deep"]) [class~="text-ap-gold/30"],
.ap-home main > section:not([class*="bg-ap-navy"]):not([class*="bg-ap-deep"]) [class~="text-ap-gold/40"] {
  color: #9b6818 !important;
}
