/* Ava Live Projects 1.1.2: compact, collision-safe showcase. */
.alp-section{--alp-bg:#101c37;--alp-surface:#1a294b;--alp-ink:#f7fbff;--alp-sub:#abbedb;--alp-line:rgba(212,230,255,.13);--alp-accent:#8cc8ff;--alp-progress-color:#3ae4b2;--alp-cta-bg:#1c3151;position:relative;isolation:isolate;padding:clamp(34px,4vw,52px) 0 36px;overflow:hidden;background:radial-gradient(ellipse 48% 145% at 105% -30%,rgba(63,113,210,.22),transparent 78%),radial-gradient(ellipse 50% 90% at -5% 115%,rgba(23,163,157,.12),transparent 75%),var(--alp-bg);color:var(--alp-ink);font-family:inherit;text-align:right;direction:rtl;line-height:1.65;box-sizing:border-box}
.alp-section *{box-sizing:border-box}
.alp-section--light{--alp-bg:#f2f6fd;--alp-surface:#fff;--alp-ink:#192a4b;--alp-sub:#5d6f89;--alp-line:rgba(31,70,125,.14);--alp-accent:#2165bd;--alp-progress-color:#17a68c;--alp-cta-bg:#e6effc;background:radial-gradient(ellipse 50% 120% at 95% -40%,rgba(66,135,239,.12),transparent 78%),var(--alp-bg)}
.alp-container{position:relative;width:min(1240px,calc(100% - 48px));margin-inline:auto}
.alp-section h2,.alp-section h3,.alp-section p{color:inherit;margin:0}
.alp-section-header{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:20px}
.alp-section-header__copy{min-width:0;max-width:860px}
.alp-kicker{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--alp-line);border-radius:100px;padding:5px 11px;background:rgba(127,172,247,.09);color:var(--alp-accent);font-size:11px;font-weight:750;margin-bottom:10px}
.alp-kicker-divider{width:1px;height:12px;background:var(--alp-line)}
.alp-pulse,.alp-live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#39dfae;box-shadow:0 0 0 4px rgba(61,224,172,.10);flex:none;animation:alp-pulse 2.4s ease-in-out infinite}
@keyframes alp-pulse{0%,100%{box-shadow:0 0 0 4px rgba(61,224,172,.10)}50%{box-shadow:0 0 0 8px rgba(61,224,172,0)}}
.alp-section-header h2{font-size:clamp(21px,2.5vw,31px);font-weight:850;line-height:1.5;letter-spacing:-.015em;margin:0 0 3px}
.alp-section-header p{max-width:690px;font-size:12px;line-height:1.8;color:var(--alp-sub)}
.alp-navigation{display:flex;gap:7px;flex:none;padding-bottom:4px}
.alp-section [hidden]{display:none!important}
.alp-nav-btn{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--alp-line);border-radius:11px;background:rgba(125,164,225,.11);color:var(--alp-ink);font-size:19px;cursor:pointer;transition:background .2s,border-color .2s}
.alp-nav-btn:hover:not(:disabled){background:rgba(125,164,225,.24);border-color:var(--alp-accent)}
.alp-nav-btn:disabled{opacity:.27;cursor:not-allowed}
.alp-section :is(button,a):focus-visible,.alp-track:focus-visible{outline:3px solid var(--alp-accent);outline-offset:3px}
.alp-track{display:flex;align-items:stretch;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;width:100%;padding:2px 1px 11px;scroll-padding-inline:1px}
.alp-track::-webkit-scrollbar{display:none}
.alp-card{position:relative;flex:0 0 calc((100% - 28px)/3);min-width:0;min-height:186px;display:flex;flex-direction:row;align-items:stretch;overflow:hidden;scroll-snap-align:start;border:1px solid var(--alp-line);border-radius:18px;background:var(--alp-surface);box-shadow:0 11px 28px rgba(0,9,30,.1);transition:transform .22s,border-color .22s,box-shadow .22s}
.alp-card:hover{transform:translateY(-2px);border-color:rgba(129,183,252,.48);box-shadow:0 14px 32px rgba(0,9,30,.16)}
.alp-card-media{position:relative;flex:0 0 36%;min-width:0;display:grid;place-items:center;overflow:hidden;padding:13px;background:#edf3fb;border-inline-end:1px solid rgba(34,65,115,.10)}
.alp-section--light .alp-card-media{background:#ecf1f9}
.alp-card-media:after{content:'';position:absolute;inset:7px;border:1px solid rgba(27,63,109,.07);border-radius:10px;pointer-events:none}
.alp-project-image{display:block;max-width:100%;width:100%;height:100%;max-height:142px;object-fit:contain;filter:none;mix-blend-mode:multiply}
.alp-card--cover .alp-card-media{padding:0;background:#20344e}
.alp-card--cover .alp-card-media:after{display:none}
.alp-card--cover .alp-project-image{max-height:none;position:absolute;inset:0;object-fit:cover;mix-blend-mode:normal}
.alp-card--cover .alp-card-media:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,18,36,.39),transparent 55%);z-index:1;pointer-events:none}
.alp-live-tag{position:absolute;z-index:2;top:10px;right:9px;display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid rgba(45,161,134,.19);background:#e3fff5;color:#116953;border-radius:100px;font-size:10px;font-weight:800;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.alp-card--cover .alp-live-tag{background:#102e31;color:#d1fff2}
.alp-live-dot{width:5px;height:5px;box-shadow:none}
.alp-card-body{display:flex;flex:1;flex-direction:column;min-width:0;padding:17px 15px 16px}
.alp-client{display:flex;align-items:center;gap:5px;font-size:10px;line-height:1.6;color:var(--alp-sub);margin-bottom:6px;min-width:0}
.alp-client>span{opacity:.8}
.alp-client strong{color:var(--alp-accent);font-size:11px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.alp-card h3{font-size:clamp(13px,1.1vw,16px);font-weight:820;line-height:1.65;min-height:42px;margin:0 0 6px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.alp-summary{font-size:11px;line-height:1.7;color:var(--alp-sub)!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;margin:0 0 8px!important}
.alp-progress-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;margin-bottom:8px;color:var(--alp-sub);font-size:10px}
.alp-progress-value{color:var(--alp-progress-color);font-size:19px;font-weight:900;font-variant-numeric:tabular-nums;line-height:1.1;white-space:nowrap}
.alp-progress-bar{position:relative;direction:rtl;height:7px;overflow:hidden;border-radius:50px;background:rgba(143,168,207,.23)}
.alp-progress-bar>span{display:block;height:100%;max-width:100%;border-radius:inherit;background:linear-gradient(270deg,var(--alp-progress-color),#63b4f7);box-shadow:0 0 13px rgba(48,217,182,.23);transition:width .6s ease}
.alp-end-date{margin:7px 0 0!important;color:var(--alp-sub)!important;font-size:10px}
/* Footer shares one row with navigation on desktop; removes the old large CTA panel. */
.alp-footer{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:48px;margin-top:8px}
.alp-slider-bottom{display:flex;align-items:center;gap:12px;min-width:0;flex:0 1 auto}
.alp-dots{display:flex;align-items:center;gap:7px;flex:none}
.alp-dot{width:7px;height:7px;border:0;padding:0;border-radius:99px;cursor:pointer;background:rgba(148,179,215,.38);transition:width .2s,background .2s}
.alp-dot[aria-current=true]{width:22px;background:var(--alp-accent)}
.alp-drag-hint{font-size:10px;color:var(--alp-sub);white-space:nowrap}
.alp-cta{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex:0 1 auto;min-width:0;margin-inline-start:auto;padding:0;border:0;background:transparent;box-shadow:none}
.alp-section--light .alp-cta{background:transparent}
.alp-cta-copy{min-width:0;text-align:right;max-width:280px}
.alp-cta h3{font-size:12px;font-weight:800;line-height:1.5;margin:0}
.alp-cta p{font-size:10px;color:var(--alp-sub)!important;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}
.alp-cta-button{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:9px 14px;border:1px solid rgba(209,231,252,.55);border-radius:11px;background:#eaf5ff;color:#15395f!important;box-shadow:none;font-size:11px;font-weight:850;text-decoration:none!important;white-space:nowrap;transition:transform .2s,background .2s}
.alp-section--light .alp-cta-button{background:#215fb8;border-color:#215fb8;color:#fff!important}
.alp-cta-button:hover{transform:translateY(-1px);background:#fff}
.alp-section--light .alp-cta-button:hover{background:#154d9e}
.alp-cta-button span{font-size:16px;line-height:1}
/* Home's portfolio search bar floats over the preceding dark section (~70px).
   Keep that visual overlap in empty breathing room, never over the CTA/cards. */
.alp-section--home{padding-bottom:clamp(106px,8vw,125px)}
.alp-section--portfolio,.alp-section--manual{padding-bottom:clamp(34px,4vw,50px)}
@media(max-width:1110px){.alp-card{flex-basis:calc((100% - 14px)/2)}.alp-card h3{font-size:15px}}
@media(max-width:900px){.alp-cta-copy p{display:none}.alp-footer{gap:12px}.alp-cta{gap:10px}.alp-cta-copy{max-width:190px}}
@media(max-width:730px){
.alp-section{padding-top:32px}.alp-container{width:calc(100% - 28px)}
.alp-section-header{align-items:flex-end;gap:8px;margin-bottom:16px}.alp-section-header h2{font-size:clamp(21px,5.5vw,27px);line-height:1.45}.alp-section-header p{font-size:11px}
.alp-nav-btn{width:34px;height:34px;font-size:17px}.alp-navigation{gap:5px}
.alp-card{flex-basis:90%;min-height:168px;border-radius:15px}.alp-card-media{flex-basis:34%;padding:11px}.alp-card-body{padding:14px 12px}.alp-card h3{font-size:14px;min-height:39px}.alp-progress-value{font-size:17px}
.alp-footer{flex-wrap:wrap;gap:10px;align-items:center;margin-top:8px}
.alp-slider-bottom{width:100%;min-height:16px;justify-content:space-between}
.alp-cta{width:100%;flex:1 1 100%;margin-inline-start:0;justify-content:space-between;gap:10px}
.alp-cta-copy{max-width:none}.alp-cta h3{font-size:12px}.alp-cta p{display:none}
.alp-cta-button{min-height:40px;padding:9px 12px;font-size:11px}.alp-drag-hint{display:none}
.alp-section--home{padding-bottom:108px}
}
@media(max-width:430px){.alp-section-header{flex-wrap:wrap}.alp-navigation{margin-right:auto}.alp-card{flex-basis:94%}.alp-card-media{flex-basis:33%}.alp-card-body{padding:13px 10px}.alp-summary{display:none}.alp-cta{flex-direction:row;align-items:center}.alp-cta-copy{max-width:38%}.alp-cta h3{font-size:11px}.alp-cta-button{white-space:normal;text-align:center;max-width:62%}.alp-section--home{padding-bottom:105px}}
@media(prefers-reduced-motion:reduce){.alp-section *,.alp-section *:before,.alp-section *:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* 1.1.2 - APS archive bridge: half-overlap the search toolbar with the dark showcase.
 * The theme normally raises the toolbar by 58px. When the live-project section is
 * immediately before the archive body, reduce that lift to give its CTA breathing
 * room while keeping roughly half the toolbar on the dark section.
 * Adjacent-sibling scoping ensures no change to standalone archives, the home page,
 * or archives with no currently active live projects. */
@media (min-width: 1101px) {
  .aps-archive-v13 > .alp-section--portfolio + .aps-archive-body .aps-toolbar {
    margin-top: -30px;
  }
}
/* At tablet widths the APS toolbar wraps onto a taller row. Give it its
 * own resting space instead of letting the negative margin hit the CTA. */
@media (min-width: 768px) and (max-width: 1100px) {
  .aps-archive-v13 > .alp-section--portfolio { padding-bottom: 60px; }
  .aps-archive-v13 > .alp-section--portfolio + .aps-archive-body .aps-toolbar {
    margin-top: -34px;
  }
}
/* The compact mobile toolbar is ~68px tall; 34px of its top rests on navy.
 * 56px of section breathing room leaves ~22px between CTA and toolbar. */
@media (max-width: 767px) {
  .aps-archive-v13 > .alp-section--portfolio { padding-bottom: 56px; }
  .aps-archive-v13 > .alp-section--portfolio + .aps-archive-body .aps-toolbar {
    margin-top: -34px;
  }
}
