/* Customers hub and customer story pages.
   Shared chrome comes from /shared/site.css; cards, prose and the rail come from /blog/blog.css.
   Nothing here redefines a shared selector. */

/* hub hero: statement across the top, the lead story under it */
.custhero{padding-bottom:72px}
.custhero .top{display:grid;grid-template-columns:7fr 5fr;gap:64px;align-items:end}
.custhero .lede{margin-top:0;padding-bottom:8px;max-width:none}

/* lead story card */
a.slead{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:stretch;flex-direction:row;margin-top:52px;
        box-shadow:0 4px 14px rgba(12,46,28,.05), 0 26px 60px rgba(12,46,28,.10)}
.spanel{position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:440px;padding:34px 38px 36px;background:var(--pine);color:#fff}
.spanel .stopo{position:absolute;inset:0;width:100%;height:100%;opacity:.5}
.spanel .lab{position:relative;font-size:11.5px;color:var(--lime);line-height:1.6}
.spanel .sq{position:relative;margin-top:auto;padding-top:40px;font-size:clamp(20px,1.85vw,25px);font-weight:700;line-height:1.36;letter-spacing:-.01em;color:#fff}
.spanel .swho{position:relative;margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.22);font-size:14px;line-height:1.4;color:rgba(255,255,255,.74)}
.spanel .swho b{display:block;font-size:16px;font-weight:800;color:#fff}
a.slead .pimg{aspect-ratio:auto;min-height:440px;border-right:1px solid var(--line)}
a.slead .pimg img{position:absolute;inset:0}
a.slead .ltxt{display:flex;flex-direction:column;justify-content:center;gap:22px;padding:40px 44px}
a.slead h2{font-size:clamp(26px,2.5vw,36px);font-weight:800;line-height:1.12;letter-spacing:-.02em;color:var(--pine);text-wrap:balance}
a.slead .more{margin-top:4px}

/* headline numbers: on the lead card and at the top of a story */
.sstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.sstat{padding:2px 22px;border-left:1px solid var(--line)}
.sstat:first-child{padding-left:0;border-left:0}
.sstat dt{font-family:'IBM Plex Mono',monospace;font-size:clamp(25px,2.3vw,33px);font-weight:600;letter-spacing:-.03em;line-height:1.1;color:var(--field);white-space:nowrap}
.sstat dd{font-size:14px;line-height:1.45;color:var(--slate);margin-top:8px}

/* story cards in a grid */
.scard .sline{font-size:14.5px;line-height:1.45}
.scard .sline b{font-family:'IBM Plex Mono',monospace;font-weight:600;color:var(--field);margin-right:4px}
.scard .more{margin-top:auto;padding-top:8px}

/* testimonials */
.tgrid{columns:3;column-gap:22px;margin-top:48px}
.tcard{display:flex;flex-direction:column;break-inside:avoid;margin:0 0 22px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px 28px 24px}
.tcard blockquote{font-size:17px;font-weight:500;line-height:1.6;color:var(--ink);padding-bottom:22px}
.tcard figcaption{display:flex;align-items:center;gap:14px;margin-top:auto;padding-top:20px;border-top:1px solid var(--line)}
.tav{flex:0 0 auto;width:48px;height:48px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:var(--tint);border:1px solid var(--line);
     font-family:'IBM Plex Mono',monospace;font-size:14px;font-weight:600;letter-spacing:.04em;color:var(--field)}
.twho{display:flex;flex-direction:column;min-width:0}
.twho b{font-size:16px;font-weight:800;line-height:1.3;color:var(--pine)}
.twho span{font-size:14px;line-height:1.4;color:var(--grey);margin-top:2px}

/* a story */
.storyhead .sstats{max-width:940px;margin-top:40px;padding-top:30px;border-top:1px solid var(--line)}
.storyhead .sstat{padding:2px 30px}
.storyhead .sstat:first-child{padding-left:0}
.storyhead .sstat dt{font-size:clamp(32px,3.2vw,46px)}
.storyhead .sstat dd{font-size:15px;max-width:19em}
.svideo iframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:16px;background:var(--shop);
               box-shadow:0 4px 14px rgba(12,46,28,.06), 0 30px 70px rgba(12,46,28,.12)}
.svideo figcaption{margin-top:16px;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.1em;color:var(--grey)}
.bigq{margin:0 0 44px;padding-bottom:36px;border-bottom:1px solid var(--line)}
.bigq blockquote{font-size:clamp(23px,2.2vw,30px);font-weight:800;line-height:1.3;letter-spacing:-.015em;color:var(--pine);text-wrap:balance}
.bigq figcaption{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin-top:20px}
.bigq figcaption b{font-size:16px;font-weight:800;color:var(--pine)}
.bigq figcaption span{font-family:'IBM Plex Mono',monospace;font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--grey)}
/* a quote inside a story: the second line is the speaker */
.story .prose blockquote p + p{margin-top:12px;font-family:'IBM Plex Mono',monospace;font-size:11.5px;font-weight:600;letter-spacing:.12em;line-height:1.5;text-transform:uppercase;color:var(--grey)}
/* the customer card scrolls away; the section index stays in view */
.story .cols{align-items:stretch}
.story .rail{position:static;max-height:none;overflow:visible}
.story .toc{position:sticky;top:92px}
.glance{border:1px solid var(--line);border-radius:14px;padding:22px 24px 16px;background:#fff}
.glance .lab{color:var(--grey)}
.glance .gname{font-size:21px;font-weight:800;line-height:1.2;color:var(--pine);margin-top:10px}
.glance .glogo{height:44px;width:auto;max-width:180px;margin-top:14px}
.glance dl{margin-top:16px}
.glance dl div{padding:11px 0;border-top:1px solid var(--line)}
.glance dt{font-family:'IBM Plex Mono',monospace;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--grey)}
.glance dd{font-size:15px;font-weight:600;line-height:1.4;color:var(--ink);margin-top:3px}
.glance .link-arrow{font-size:14.5px;border-top:1px solid var(--line);width:100%;padding-top:6px}

@media (max-width:1040px){
  .tgrid{columns:2}
  .story .rail{order:-1}
  .story .cols{gap:40px}
  .glance dl{display:grid;grid-template-columns:1fr 1fr;column-gap:28px}
}
@media (max-width:960px){
  .custhero{padding-bottom:52px}
  .custhero .top{grid-template-columns:1fr;gap:20px}
  a.slead{grid-template-columns:1fr;margin-top:32px}
  .spanel{min-height:0;padding:28px 26px 30px}
  .spanel .sq{padding-top:56px}
  a.slead .pimg{aspect-ratio:16/9;min-height:0;border-right:0;border-bottom:1px solid var(--line)}
  a.slead .pimg img{position:static}
  a.slead .ltxt{padding:28px 26px 30px}
  .tgrid{columns:1;margin-top:36px}
  .tcard{margin-bottom:16px}
  .tcard{padding:26px 24px 22px}
  .tcard blockquote{padding-bottom:20px}
  .tcard figcaption{padding-top:18px}
}
@media (max-width:640px){
  .sstats{grid-template-columns:1fr}
  .sstat, .storyhead .sstat{display:grid;grid-template-columns:118px 1fr;gap:16px;align-items:baseline;padding:14px 0;border-left:0;border-top:1px solid var(--line)}
  .sstat:first-child, .storyhead .sstat:first-child{border-top:0;padding-top:0}
  .sstat dt, .storyhead .sstat dt{font-size:27px}
  .sstat dd, .storyhead .sstat dd{margin-top:0}
  .storyhead .sstats{margin-top:30px;padding-top:24px}
  .glance dl{grid-template-columns:1fr}
  .bigq{margin-bottom:32px;padding-bottom:28px}
}

/* a lead story with a designed cover: show the whole cover, never crop its headline */
a.slead.hasimg{grid-template-columns:minmax(0,7fr) minmax(0,5fr);align-items:center}
a.slead.hasimg .pimg{aspect-ratio:16/9;min-height:0;border-right:0;align-self:center;width:100%;background:var(--pine)}
a.slead.hasimg .pimg img{object-fit:contain}
@media (max-width:960px){a.slead.hasimg{grid-template-columns:1fr}}
a.slead.hasimg .sstats{display:none}
a.slead.hasimg .ltxt{padding:36px 40px}
/* two stories sit as a pair, never two-thirds of a row */
.pgrid:has(> :nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:760px){.pgrid:has(> :nth-child(2):last-child){grid-template-columns:1fr}}
