/* ============================================================
   crew.css: the crew listing (/crew/) and the agent pages (/crew/<slug>/).
   Layered on style.css: same tokens, buttons, nav, footer, reveals and
   character slots. Built by tools/build_crew.py from tools/crew_data.py.
   ============================================================ */

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--blue)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--blue)) 25%, transparent); }
.eyebrow.amber { --c: var(--amber); color: #FBBF24; }
.head.center .eyebrow { justify-content: center; }
.nav-links a[aria-current="page"] { opacity: 1; color: #fff; }

/* ---------- the listing ---------- */
.cindex-hero { padding-top: calc(var(--nav-h) + clamp(56px, 9vh, 120px)); padding-bottom: 24px; }
.cindex-hero .head { max-width: 820px; margin-inline: auto; }
.cindex-hero .lede { margin-inline: auto; }
.crow { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 4px; margin-top: 40px; }
.crow .mini { position: relative; display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--c) 22%, #0B0B0D); border: 2px solid transparent; transition: transform .35s var(--ease-out), border-color .25s var(--ease); }
.crow .mini img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.5); transform-origin: 50% 22%; }
.crow .mini span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--ink-2); opacity: 0; transition: opacity .2s; pointer-events: none; }
.crow .mini:hover { transform: translateY(-4px); border-color: var(--c); z-index: 2; }
.crow .mini:hover span { opacity: 1; }
.cgroup { padding-block: clamp(48px, 6vh, 80px); border-top: 0; }
.cgroup .head { max-width: 760px; margin-bottom: 28px; }
.cwgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cwcard { display: block; border-radius: 22px; overflow: hidden; background: #0b0b0e; border: 1px solid rgba(255,255,255,.07); transition: transform .45s var(--ease-out), border-color .3s var(--ease), box-shadow .45s var(--ease-out); }
.cwcard:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.18); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 60px -20px color-mix(in srgb, var(--c) 45%, transparent); }
.cwcard .art { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.cwcard .art .plate { transition: transform 1.2s var(--ease-out); transform-origin: 50% 70%; }
.cwcard:hover .art .plate { transform: scale(1.04); }
.cwcard .art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, transparent 24%, transparent 78%, rgba(0,0,0,.35) 100%); }
.cwcard .tag { position: absolute; left: 14px; top: 14px; z-index: 2; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(10,10,12,.62); border: 1px solid rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cwcard .band { padding: 14px 16px 16px; background: linear-gradient(180deg, var(--g1), var(--g2)); color: #fff; }
.cwcard .band b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.cwcard .band span { display: block; font-size: 13.5px; opacity: .88; margin-top: 2px; }

/* ---------- the agent page: hero ---------- */
.chero { position: relative; height: clamp(600px, 88svh, 860px); display: flex; align-items: center; overflow: hidden; background: #000; }
.chero-scene { position: absolute; inset: 0; overflow: hidden; }
.chero-scene .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.86) 34%, rgba(5,5,5,.42) 60%, rgba(5,5,5,.08) 100%), linear-gradient(180deg, rgba(5,5,5,.6) 0%, transparent 22%, transparent 75%, #050505 100%); }
.chero .container { position: relative; z-index: 2; padding-top: var(--nav-h); }
.chero .copy { max-width: 560px; }
.chero .crumb { display: block; width: fit-content; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 14px; transition: color .25s; }
.chero .crumb::before { content: "\2190\00a0"; }
.chero .crumb:hover { color: #fff; }
.chero h1 { font-size: clamp(2.8rem, 5.6vw, 4.8rem); line-height: 1; letter-spacing: -.035em; }
.chero .role { margin-top: 14px; font-size: 20px; font-weight: 500; color: #fff; }
.chero .lede { margin-top: 12px; max-width: 44ch; font-size: 19px; color: rgba(255,255,255,.82); }
.chero .cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.chero .eyebrow { margin-bottom: 14px; --c: var(--c); }

/* ---------- what it does: capability cards ---------- */
.cdoes .head { margin-bottom: 36px; }
.ccaps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.ccap { grid-column: span 2; }
.ccap { position: relative; border-radius: var(--r-bento); overflow: hidden; padding: 36px; color: #fff; background: linear-gradient(160deg, var(--g1) 0%, var(--g2) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 40px 100px -40px color-mix(in srgb, var(--g1) 60%, transparent); display: flex; flex-direction: column; min-height: 400px; }
.ccap.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; min-height: 460px; }
.ccap h3 { font-size: clamp(1.4rem, 2.1vw, 1.75rem); color: #fff; max-width: 18ch; letter-spacing: -.02em; }
.ccap p { color: rgba(255,255,255,.86); margin-top: 12px; max-width: 44ch; font-size: 16px; }
.ccap .chat { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.ccap .bubble.agent { align-self: flex-end; }
.ccap .stage { position: relative; height: 420px; align-self: end; }
.ccap .stage .char { position: absolute; inset: -6% -4% -18% -4%; }
.ccap:not(.wide) .txt { display: flex; flex-direction: column; height: 100%; }
.ccap:not(.wide) .chat { margin-top: auto; padding-top: 26px; }

/* ---------- manifesto ---------- */
.cmani { padding-block: clamp(40px, 6vh, 80px); }
.mani { max-width: 880px; margin-inline: auto; text-align: center; font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.22; letter-spacing: -.025em; font-weight: 500; color: color-mix(in srgb, var(--c) 72%, #fff); text-wrap: balance; }

/* ---------- how it works ---------- */
.chow-grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.chow .stage-box { aspect-ratio: 4 / 5; }
.chow .stage-box .char { opacity: 1; inset: 6% 0 18% 0; }
.chow .stage-box .glow { position: absolute; inset: -20%; background: radial-gradient(50% 50% at 50% 60%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); filter: blur(20px); opacity: .7; }
.csteps { list-style: none; padding: 0; margin: 0; }
.csteps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 24px 0; border-top: 1px solid var(--line); }
.csteps li:last-child { border-bottom: 1px solid var(--line); }
.csteps .n { font-size: 22px; font-weight: 500; color: var(--ink-2); line-height: 1.2; }
.csteps h3 { font-size: 22px; letter-spacing: -.02em; }
.csteps p { margin-top: 8px; font-size: 16px; max-width: 48ch; }

/* ---------- everything it can do ---------- */
.cangrid { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.can { border-radius: 18px; padding: 22px; background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: transform .45s var(--ease-out), border-color .3s var(--ease), background .3s var(--ease); }
.can:hover { transform: translateY(-3px); border-color: var(--line-2); background: rgba(255,255,255,.06); }
.can b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.can span { display: block; margin-top: 6px; font-size: 14.5px; color: rgba(255,255,255,.66); line-height: 1.5; }

/* ---------- the rules ---------- */
.cnever-box { border-radius: 26px; padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--amber) 45%, var(--line)); box-shadow: 0 40px 120px -60px color-mix(in srgb, var(--amber) 50%, transparent); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cnever-box .head { margin-bottom: 0; }
.nevers { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.nevers li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; color: #fff; line-height: 1.45; }
.nevers li:last-child { border-bottom: 1px solid var(--line); }
.nevers li i { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--amber); position: relative; margin-top: 1px; }
.nevers li i::before, .nevers li i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1.5px; background: var(--amber); transform: rotate(45deg); }
.nevers li i::after { transform: rotate(-45deg); }

/* ---------- the rest of the crew ---------- */
.restgrid { margin-top: 36px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.rest { display: block; border-radius: 18px; padding: 16px 14px 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: center; transition: transform .45s var(--ease-out), border-color .3s var(--ease); }
.rest:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, var(--line)); }
.rest img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; margin: 0 auto 10px; background: color-mix(in srgb, var(--c) 22%, #0B0B0D); transform: scale(1); }
.rest b { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.rest span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .cwgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cangrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .restgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .chero { height: auto; min-height: 0; display: flex; flex-direction: column; padding-top: var(--nav-h); }
  .chero .container { order: 1; } .chero-scene { order: 2; }
  .chero-scene { position: relative; height: 56vh; min-height: 380px; max-height: 560px; margin-top: 24px; }
  .chero-scene .plate { object-position: 72% 50%; }   /* the character's marker sits at 72%, so the crop follows it */
  .chero-scene .scrim { background: linear-gradient(180deg, #050505 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 72%, #050505 100%); }
  .chero .container { padding-top: 40px; }
  .chero .copy { max-width: 640px; }
  .ccaps { grid-template-columns: 1fr; }
  .ccap, .ccap.wide { grid-column: auto; }
  .ccap.wide { grid-template-columns: 1fr; min-height: 0; }
  .ccap .stage { height: 320px; width: 70%; margin: 8px auto 0; }
  .chow-grid { grid-template-columns: 1fr; }
  .chow .stage-box { max-width: 520px; }
  .cnever-box { grid-template-columns: 1fr; }
  .restgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cindex-hero { padding-top: calc(var(--nav-h) + 40px); }
  .crow .mini { width: 52px; height: 52px; }
  .cwgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cwcard .band { padding: 12px 12px 14px; }
  .cwcard .band b { font-size: 15px; } .cwcard .band span { font-size: 12.5px; }
  .cwcard .tag { left: 10px; top: 10px; font-size: 10.5px; padding: 5px 8px; }
  .chero h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .chero .role { font-size: 17px; } .chero .lede { font-size: 17px; }
  .ccap { padding: 24px; min-height: 0; }
  .ccap .stage { width: 84%; height: 280px; }
  .cangrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .can { padding: 16px; } .can b { font-size: 15.5px; } .can span { font-size: 13.5px; }
  .csteps li { padding: 18px 0; grid-template-columns: 32px 1fr; } .csteps h3 { font-size: 19px; }
  .nevers li { font-size: 16px; padding: 14px 0; }
  .restgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rest img { width: 68px; height: 68px; }
  .mani { font-size: 1.35rem; }
}

/* ---------- listing filter and the sticky CTA (Sintra keeps the buy button in reach the whole way down) ---------- */
.cfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 32px; }
.cfilter button { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: background .2s, border-color .2s, color .2s, transform .3s var(--ease-out); display: inline-flex; align-items: center; gap: 8px; }
.cfilter button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-2)); }
.cfilter button:hover { background: rgba(255,255,255,.1); border-color: var(--line-2); transform: translateY(-1px); }
.cfilter button.is-on { background: #fff; color: #0A0A0A; border-color: #fff; }
.cwcard[hidden] { display: none; }
.cgrid-all { padding-top: 24px; border-top: 0; }
.sticky-cta { position: fixed; left: 50%; bottom: 22px; z-index: 50; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease-out); }
.sticky-cta.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sticky-cta .btn { padding: 14px 26px; box-shadow: 0 20px 50px -16px rgba(59,130,246,.75), 0 6px 20px -8px rgba(0,0,0,.8); }
.sticky-cta .btn::after { content: "\2192"; margin-left: 2px; }
@media (max-width: 760px) { .sticky-cta { bottom: 14px; } .sticky-cta .btn { font-size: 15px; padding: 12px 20px; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
