/* AI Teams page (redesign). Scoped under .ap; the shared motion contract is css/scroll-motion.css
   and the engine is js/scroll-engine.js. Nothing here styles the site navigation or footer. */
.pd-page .ap{font-family:Inter,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;color:#f4f2ee;background:#0b0b0c;-webkit-font-smoothing:antialiased;overflow-x:clip;font-size:16px;line-height:1.55}
.ap *,.ap *::before,.ap *::after{box-sizing:border-box}
.ap [hidden]{display:none!important}
.ap h1,.ap h2,.ap h3{font-family:"Inter Tight",Inter,sans-serif;font-weight:600;letter-spacing:-.028em;line-height:1.02;margin:0;text-wrap:balance}
.ap p,.ap ol,.ap ul,.ap figure{margin:0}
.ap p{text-wrap:pretty}
.ap ol,.ap ul{padding:0;list-style:none}
.ap a{color:inherit;text-decoration:none}
.ap a:hover{color:#fff}
.ap .light a:hover{color:#121214}
.ap :focus-visible{outline:2px solid #5a63ff;outline-offset:3px}
.ap .cap{font-size:13px;line-height:1.5;color:#8d8a83}
.ap .tag{font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;line-height:1.4}
.ap .wrap{width:100%;max-width:1280px;margin:0 auto;padding:0 clamp(20px,5vw,72px)}
.ap .light{background:#f7f5f2;color:#121214}
.ap .light .cap{color:#68686f}

/* Buttons */
.ap .btn{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 22px;border-radius:2px;font-size:14px;font-weight:500;border:1px solid transparent;transition:background .35s var(--ease),color .35s var(--ease),border-color .35s var(--ease)}
.ap .btn-solid{background:#f4f2ee;color:#121214}
.ap .btn-solid:hover{background:#e4e3ff;color:#121214}
.ap .btn-ghost{color:#d3d0ca;border-color:rgba(255,255,255,.22)}
.ap .btn-ghost:hover{border-color:rgba(255,255,255,.6)}
.ap .btn-ink{background:#121214;color:#f7f5f2}
.ap .btn-ink:hover,.ap .light .btn-ink:hover{background:#2a2c8f;color:#fff}

/* Hero */
@keyframes at-drawx{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.ap .d5{animation-delay:.66s}.ap .d6{animation-delay:.82s}.ap .d7{animation-delay:1s}
.ap .drawin{transform-origin:0 50%;animation:at-drawx 1.8s var(--ease) .7s both}
@media (prefers-reduced-motion:reduce){.ap .drawin{animation:none}}
.ap .at-hero{position:relative;padding:200px 0 128px;overflow:hidden;text-align:center}
.ap .at-hero-wrap{position:relative;display:flex;flex-direction:column;align-items:center}
.ap .at-crumb{color:#a09d98}
.ap .at-crumb a:hover{color:#f4f2ee}
.ap .at-h1{font-size:clamp(46px,7vw,110px);line-height:.96;letter-spacing:-.042em;margin-top:36px;max-width:16ch}
.ap .at-lead{font-size:19px;line-height:1.55;color:#d3d0ca;margin-top:36px;max-width:36em}
.ap .at-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:36px}
.ap .at-flow{position:relative;width:100%;max-width:1000px;margin-top:104px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:18px;text-align:left}
.ap .rline{position:absolute;left:12.5%;right:12.5%;top:50%;height:1px;background:linear-gradient(90deg,rgba(139,124,246,.7),rgba(244,242,238,.7))}
.ap .at-flow-card{position:relative;padding:20px 22px;border:1px solid rgba(255,255,255,.14);background:#0e0e11}
.ap .at-flow-card--decides{border:0;background:#f4f2ee;color:#121214}
.ap .at-flow-card--decides .cap{color:#43434a}
.ap .at-flow-name{font-family:"Inter Tight",Inter,sans-serif;font-size:20px;font-weight:600;margin-top:8px}
.ap .at-flow-caption{margin-top:24px}

/* Shared headings and layout helpers */
.ap .at-h2--md{font-size:clamp(34px,4vw,54px)}
.ap .at-h2--lg{font-size:clamp(40px,5vw,72px);letter-spacing:-.038em;max-width:9ch}
.ap .at-h2--sm{font-size:clamp(32px,3.8vw,52px)}
.ap .at-h2--xl{font-size:clamp(42px,5.6vw,84px);letter-spacing:-.04em;max-width:14ch}
.ap .at-h2--scope,.ap .at-teams-h{font-size:clamp(38px,4.6vw,64px)}
.ap .at-h2--scope{max-width:10ch}
.ap .at-teams-h{max-width:12ch}
.ap .at-h3{font-size:28px;letter-spacing:-.022em;max-width:14ch}
.ap .at-split{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px}
.ap .at-split--wide{gap:32px}
.ap .stage{padding:140px 0 120px}
.ap[data-motion] [data-scene]:not([data-static])>.stage{padding:84px 0 28px}

/* Assignment scene */
.ap .at-assignment{--len:3.2;background:#0b0b0c;border-top:1px solid rgba(255,255,255,.08)}
.ap .at-assign-note{max-width:420px}
.ap .at-assign-card{margin:28px auto 0;max-width:calc((100% - 32px) * 2 / 3 + 34px);text-align:center;border:1px solid rgba(255,255,255,.16);background:#101013;padding:22px 28px}
.ap .at-assign-label{color:#a09d98}
.ap .at-assign-q{font-family:"Inter Tight",Inter,sans-serif;font-size:26px;font-weight:600;letter-spacing:-.02em;margin-top:8px}
.ap .conn{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;height:36px}
.ap .at-conn-bar{position:absolute;top:-1px;left:calc((100% - 32px) / 6 - 1px);right:calc((100% - 32px) / 6 - 1px);height:1px;background:#574e98;transform-origin:50% 50%}
.ap .at-conn-cell{display:flex;justify-content:center}
.ap .at-conn-line{width:1px;height:36px;background:#574e98;transform-origin:50% 0}
/* The three roles sit in one row from 900px wide, else one column: never two plus one. Below
   1000px the connectors are hidden, so the roles keep a clear gap below the assignment. */
.ap .at-steps{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:900px){.ap .at-steps{grid-template-columns:repeat(3,1fr)}}
@media (max-width:999px){.ap .at-steps{margin-top:16px}}
@media (max-width:899px){.ap .at-assign-card{max-width:none}}
.ap .at-step{border:1px solid rgba(255,255,255,.12);padding:24px;background:#0e0e11}
.ap .at-step-head{display:flex;align-items:baseline;gap:12px}
.ap .at-step-n{font-family:"Inter Tight",Inter,sans-serif;font-size:15px;color:#8b7cf6}
.ap .at-step-t{font-family:"Inter Tight",Inter,sans-serif;font-size:20px;font-weight:600}
.ap .at-step-body{font-size:15px;line-height:1.6;color:#d3d0ca;margin-top:14px}
.ap .at-rule{height:1px;background:rgba(255,255,255,.08);margin-top:20px}
.ap .at-rule-fill{height:1px;background:#4a52ff;transform-origin:0 50%}
.ap .at-result{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 24px;margin-top:20px;padding:20px 24px;background:#f4f2ee;color:#121214}
.ap .at-result-t{font-family:"Inter Tight",Inter,sans-serif;font-size:20px;font-weight:600;letter-spacing:-.02em}
.ap .at-result-n{font-size:14px;color:#43434a}

/* Review scene */
.ap .at-review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(440px,100%),1fr));gap:64px 80px;align-items:center}
.ap .at-review-lead{font-size:18px;line-height:1.6;color:#43434a;margin-top:32px;max-width:28em}
.ap .at-draft{background:#fff;border:1px solid rgba(18,18,20,.10);box-shadow:0 30px 80px rgba(18,18,20,.08);padding:36px 40px}
.ap .at-draft-top{display:flex;justify-content:space-between;gap:12px;padding-bottom:18px;border-bottom:1px solid rgba(18,18,20,.12)}
.ap .light .at-draft-badge{color:#3b42e6}
.ap .at-draft-title{font-family:"Inter Tight",Inter,sans-serif;font-size:24px;font-weight:600;letter-spacing:-.02em;margin-top:24px}
.ap .at-draft-lines{margin-top:20px;display:flex;flex-direction:column;gap:10px}
.ap .at-draft-lines div{height:8px;width:100%;background:rgba(18,18,20,.07)}
.ap .at-draft-lines div:nth-child(2){width:92%}
.ap .at-draft-lines div:nth-child(3){width:64%}
.ap .at-draft-list{margin-top:28px;display:flex;flex-direction:column;gap:12px}
.ap .at-draft-item{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border:1px solid rgba(18,18,20,.16)}
.ap .at-draft-item .tag{min-width:96px;padding-top:3px;color:#43434a}
.ap .at-draft-text{font-size:15px;line-height:1.5}
.ap .at-draft-item--source{border-color:rgba(74,82,255,.35);background:rgba(74,82,255,.05)}
.ap .at-draft-item--source .tag{color:#3b42e6}
.ap .at-draft-item--open{border:1px dashed rgba(224,114,47,.6);background:#fdf6f1}
.ap .at-draft-item--open .tag{color:#a8471a}
.ap .at-draft-caption{margin-top:20px}
/* Once the draft has assembled, the item a reviewer must resolve is marked: its border and ground
   deepen (the border stays dashed). The empty marker only carries the lit state. */
.ap .opn{display:none}
.ap .at-draft-item--open{transition:border-color .5s var(--ease),background-color .5s var(--ease)}
.ap .at-draft-item--open:has(>.opn[data-lit]){border-color:rgba(224,114,47,.95);background-color:#fbece1}

/* Agree accordion (open in the markup; the page script collapses all but the first) */
.ap .at-review{--len:2.4}
/* Held scenes after the draft. Unpinned (still states, or a scene too tall for a phone) each stage
   keeps the section's original rhythm; pinned, the shared stage padding applies. */
.ap .at-agree{--len:2}
.ap .at-agree-stage{padding:40px 0 160px}
.ap .at-agree-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(440px,100%),1fr));gap:32px 80px;align-items:start}
.ap .at-acc-rule{height:1px;background:rgba(18,18,20,.14);transform-origin:0 50%}
.ap .at-acc-item{border-bottom:1px solid rgba(18,18,20,.12)}
.ap .at-acc-static,.ap .acc{min-height:60px;display:flex;align-items:center;font-size:18px;font-weight:500;color:#121214}
.ap .acc{width:100%;justify-content:space-between;gap:16px;padding:0;border:0;background:transparent;font-family:inherit;text-align:left;cursor:pointer;transition:background .35s var(--ease)}
.ap .acc:hover{background:rgba(18,18,20,.035)}
.ap .at-acc-sign{font-size:20px;color:#4a52ff}
.ap .accb[aria-hidden="true"]{grid-template-rows:0fr;opacity:0}
.ap .accb[aria-hidden="false"]{grid-template-rows:1fr;opacity:1}
.ap .at-acc-inner{overflow:hidden;min-height:0}
.ap .at-acc-inner p{font-size:15px;line-height:1.65;color:#43434a;padding:0 40px 22px 0}
.ap[data-init] .accb,.ap[data-init] .tstack>.tcard{transition:none}

/* Teams */
.ap .at-teams{--len:2.6;background:#0b0b0c}
.ap .at-teams-stage{padding:168px 0}
.ap .at-teams-lead{max-width:420px;font-size:15px;line-height:1.65;color:#a09d98}
.ap .at-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:64px}
.ap .tab{min-height:46px;padding:0 22px;border:1px solid rgba(255,255,255,.22);border-radius:999px;font-family:inherit;font-size:14px;font-weight:500;cursor:pointer;background:transparent;color:#d3d0ca;transition:background .35s var(--ease),color .35s var(--ease),border-color .35s var(--ease)}
.ap .tab[aria-pressed="true"]{background:#f4f2ee;border-color:#f4f2ee;color:#121214}
.ap .tab[aria-pressed="false"]:hover{color:#f4f2ee;border-color:rgba(255,255,255,.5)}
.ap .at-tstack:not(.tstack){display:flex;flex-direction:column;gap:16px;margin-top:64px}
.ap .at-tabs:not([hidden])+.at-tstack{margin-top:16px}
.ap .tstack>.tcard[aria-hidden="true"]{opacity:0;pointer-events:none}
.ap .at-tcard{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));background:#0b0b0c}
/* Once the tabs are live the panel's frame is the shared stack (one box to outline and fill);
   without the page script each example team keeps its own frame. */
.ap .at-tstack.tstack{border:1px solid rgba(255,255,255,.12);background:#0b0b0c}
.ap .at-tstack:not(.tstack)>.at-tcard{border:1px solid rgba(255,255,255,.12)}
.ap .at-tcard-main{padding:48px}
.ap .at-kicker{color:#8b7cf6}
.ap .at-tcard-what{font-family:"Inter Tight",Inter,sans-serif;font-size:34px;font-weight:600;letter-spacing:-.025em;line-height:1.12;margin-top:14px}
.ap .at-tcard-rule{height:1px;margin-top:28px;background:rgba(255,255,255,.12);transform-origin:0 50%}
.ap .at-tcard-decide{font-size:17px;line-height:1.6;color:#f4f2ee;padding-top:22px}
.ap .at-tcard-side{padding:48px;background:rgba(255,255,255,.02);border-left:1px solid rgba(255,255,255,.08)}
.ap .at-tcard-side .cap{color:#a09d98}
.ap .at-tcard-side ul{margin-top:8px}
.ap .at-tcard-side li{padding:18px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:16px;color:#d3d0ca}

/* Scope */
.ap .at-scope{--len:2}
.ap .at-scope-stage{padding:160px 0}
.ap .at-scope-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(440px,100%),1fr));gap:48px 80px;align-items:start}
.ap .at-scope-rule{height:1px;background:rgba(18,18,20,.2);transform-origin:0 50%}
.ap .at-scope-body{font-size:19px;line-height:1.6;color:#121214;padding-top:28px}
.ap .at-scope-link{display:flex;align-items:center;min-height:64px;margin-top:36px;padding:0 22px;border:1px solid rgba(18,18,20,.16);font-size:15px;color:#43434a}
.ap .light a.at-scope-link:hover{color:#121214;border-color:rgba(18,18,20,.4)}

/* Foundation */
.ap .at-foundation{--len:2.4;background:#101013}
.ap .at-foundation-stage{padding:160px 0 128px}
.ap[data-motion] .at-foundation:not([data-static]) .at-own{margin-top:64px}
.ap .at-foundation-h{max-width:22ch}
.ap .at-foundation-lead{max-width:380px;font-size:15px;line-height:1.6;color:#a09d98}
.ap .at-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px;margin-top:56px}
.ap .at-tile{min-height:88px;display:flex;align-items:flex-end;padding:18px;border:1px solid rgba(255,255,255,.12);color:#d3d0ca;font-weight:500;transition:border-color .35s var(--ease),color .35s var(--ease)}
.ap .at-tile.tile:hover{border-color:rgba(255,255,255,.4);color:#f4f2ee}
.ap .at-tile--current{flex-direction:column;justify-content:space-between;border-color:#4a52ff;background:rgba(74,82,255,.16);color:#fff}
.ap .at-tile--current .cap{color:#b9b2fa}
.ap .at-base{margin-top:12px;border:1px solid rgba(74,82,255,.4);padding:18px 24px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;align-items:center}
.ap .at-base-t{font-family:"Inter Tight",Inter,sans-serif;font-size:18px;font-weight:600}
.ap .at-base ul{display:flex;flex-wrap:wrap;gap:8px}
.ap .at-base li{padding:7px 12px;border:1px solid rgba(255,255,255,.14);font-size:13px;color:#d3d0ca}
.ap .at-own{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(440px,100%),1fr));gap:32px 72px;margin-top:120px;align-items:start}
.ap .at-own-h{max-width:16ch}
.ap .at-own-body{font-size:16px;line-height:1.7;color:#a09d98}
.ap .at-own-commit{color:#f4f2ee}

/* Close */
.ap .at-close{padding:168px 0}
.ap .at-close-wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:48px}
.ap .at-close-lead{font-size:18px;color:#43434a;margin-top:24px}
.ap .at-close-cta{min-height:56px;padding:0 28px;font-size:15px}
/* Keep the gap from the closing CTA to the footer within half a screen on short desktops. */
@media (min-width:1000px) and (max-height:760px){.ap .at-close{padding-bottom:48px}}

/* Transitions respect reduced motion; the engine and the shared sheet handle the rest. */
@media (prefers-reduced-motion:reduce){.ap .accb,.ap .tstack>.tcard,.ap .acc,.ap .tab,.ap .btn,.ap .at-tile{transition:none}}
@media (max-width:999px){.ap .conn,.ap .rline{display:none}}
/* Short desktops: the pinned teams scene clears the navigation. */
@media (min-width:761px) and (max-height:760px){.ap[data-motion] .at-teams:not([data-static])>.stage{padding:96px 0 20px}}

/* Phone refinements. The hero keeps the site's tighter phone rhythm; the scenes below it follow the
   approved design canvas at every width (its held scenes size their stages from these layouts). */
@media (max-width:760px){
 .ap .at-hero{padding:132px 0 88px}
 .ap .at-lead{font-size:17px;margin-top:28px}
 .ap .at-flow{margin-top:56px}
 .ap .at-tcard-side{border-left:0;border-top:1px solid rgba(255,255,255,.08)}
 .ap .at-agree,.ap .at-scope{--len:1.8}
 .ap .at-foundation{--len:2}
}

/* Reduce the height of the hero above the first-visit privacy notice. */
@media (max-width:520px){
 .ap .at-hero{padding-top:100px}
 .ap .at-h1{font-size:clamp(32px,9vw,46px);max-width:calc(100% + 16px);margin-top:20px}
 .ap .at-lead{margin-top:18px}
 .ap .at-actions{gap:8px;margin-top:20px}
}
@media (max-width:520px) and (max-height:760px){
 .ap .at-hero{padding-top:92px}
 .ap .at-h1{margin-top:16px}
 .ap .at-lead{font-size:16px;line-height:1.5;margin-top:14px}
 .ap .at-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,380px);margin-top:16px}
 .ap .at-actions .btn{justify-content:center;padding:8px 10px;line-height:1.2}
}
