/* v5: mobile refinements */
/* Home hero on phones: labels stay inside the video card; trust row on one line each */
@media (max-width: 760px) {
  html body main .ss-hero-visual .ss-chip { max-width: calc(100% - 24px); white-space: nowrap; }
  html body main .ss-hero-visual .ss-chip.c1 { top: 12px; right: 12px; left: auto; }
  html body main .ss-hero-visual .ss-chip.c3 { bottom: 12px; left: 12px; right: auto; }
  html body main .ss-hero-visual .ss-chip span { min-width: 0; }
  html body main .ss-hero-visual .ss-chip strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
  html body main .ss-proof-item br { display: none; }
  html body main .ss-proof-item > span:last-child { white-space: nowrap; }
  html body main .ss-proof { gap: 14px 18px; }
}

/* Content videos on phones: start at the first card, not centered off-screen */
@media (max-width: 900px) {
  html body main .ss-reel-group { justify-content: start; width: max-content; }
  html body main .ss-reel { padding-right: 0; }
  html body main .ss-reel-group::after { content: ""; width: 2px; }
}
/* Accordion arrow sits inside the row instead of 3px past it */
html body .ss-acc summary::after { flex: 0 0 9px; margin-right: 4px; }
/* Resources on phones: a compact article list (thumbnail, topic, title, date) */
@media (max-width: 640px) {
  html body main .ss-posts:not(.c3) { gap: 10px; }
  html body main .ss-posts:not(.c3) .ss-post { flex-direction: row; align-items: stretch; border-radius: 16px; }
  html body main .ss-posts:not(.c3) .ss-post-img { flex: 0 0 104px; aspect-ratio: auto; min-height: 104px; }
  html body main .ss-posts:not(.c3) .ss-post-body { gap: 5px; padding: 12px 14px; justify-content: center; }
  html body main .ss-posts:not(.c3) .ss-post b { font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  html body main .ss-posts:not(.c3) .ss-post-excerpt { display: none; }
  html body main .ss-posts:not(.c3) .ss-post-meta { padding-top: 2px; font-size: 12.5px; }
  html body main .ss-posts:not(.c3) .ss-post-topic { font-size: 11px; }
  html body main .ss-posts:not(.c3) .ss-post:hover { transform: none; }
}

/* ---------- Breaking up text-heavy pages (roles, industries, about) ---------- */
.ss-ic { display: block; width: 22px; height: 22px; flex: 0 0 auto; }

/* At a glance: a floating strip that overlaps the bottom of the hero */
.ss-glance-sec { position: relative; z-index: 2; margin-top: -34px; }
.ss-glance { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 22px; background: #fff; border: 1px solid var(--ss-line); box-shadow: 0 24px 50px rgba(16, 44, 87, .1); }
.ss-glance li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.ss-glance li + li { border-left: 1px solid var(--ss-line); }
.ss-glance .ss-ic { width: 42px; height: 42px; padding: 10px; box-sizing: border-box; border-radius: 12px; color: var(--ss-blue); background: var(--ss-sky); }
.ss-glance span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-glance b { font: 600 15px/1.3 Poppins, Arial, sans-serif; color: var(--ss-ink); }
.ss-glance small { font-size: 13.5px; line-height: 1.4; color: var(--ss-muted); }
.ss-glance-sec + .ss-section { padding-top: clamp(64px, 7vw, 96px); }

/* Tasks: a photo beside the task groups, each group with its own icon */
.ss-bento { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 2fr); gap: 18px; align-items: stretch; }
.ss-bento-media { position: relative; margin: 0; min-height: 100%; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px rgba(16, 44, 87, .12); }
.ss-bento-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ss-bento-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 51, 0) 50%, rgba(8, 24, 51, .55) 100%); }
.ss-bento-media figcaption { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .96); color: var(--ss-blue); }
.ss-bento-media figcaption span { display: flex; flex-direction: column; min-width: 0; }
.ss-bento-media figcaption b { font: 600 15px/1.3 Poppins, Arial, sans-serif; color: var(--ss-ink); }
.ss-bento-media figcaption small { font-size: 13px; color: var(--ss-muted); }
.ss-tasks-i .ss-task { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; align-content: start; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.ss-tasks-i .ss-task:hover { transform: translateY(-3px); border-color: #c9d8f3; box-shadow: 0 20px 40px rgba(16, 44, 87, .08); }
.ss-task-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; background: var(--ss-grad-cta); box-shadow: 0 10px 22px rgba(1, 81, 254, .22); }
html body main .ss-tasks-i .ss-task h3 { align-self: center; margin: 0 !important; }
.ss-tasks-i .ss-task .ss-checks { grid-column: 1 / -1; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--ss-line); }

/* Why: three labeled panels, the middle one highlighted */
.ss-why3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.ss-why-card { position: relative; padding: 28px; border-radius: 22px; background: #f6f9ff; border: 1px solid var(--ss-line); }
.ss-why-card p { margin: 0; font-size: 16px; line-height: 1.7; color: #3c4d66; }
html body main .ss-why-card .ss-why-label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 600 13px/1.2 Poppins, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--ss-blue); }
.ss-why-label .ss-ic { width: 38px; height: 38px; padding: 9px; box-sizing: border-box; border-radius: 11px; background: #fff; border: 1px solid var(--ss-line); }
.ss-why-card.hl { background: var(--ss-grad-dark); border-color: transparent; box-shadow: 0 30px 60px rgba(8, 24, 51, .22); }
.ss-why-card.hl p { color: rgba(255, 255, 255, .86); }
html body main .ss-why-card.hl .ss-why-label { color: #fff; }
.ss-why-card.hl .ss-why-label .ss-ic { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); }

/* Signs: a dark band with numbered rows */
.ss-signs-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ss-signs-grid .ss-head { margin: 0; }
.ss-signs-grid .ss-actions { justify-content: flex-start; margin-top: 26px; }
.ss-signs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ss-signs li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px 22px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.ss-sign-n { font: 700 34px/1 Poppins, Arial, sans-serif; letter-spacing: -.04em; background: linear-gradient(135deg, #8fb2ff, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
html body main .ss-signs h3 { margin: 0 0 4px; font: 700 18px/1.3 Poppins, Arial, sans-serif; color: #fff; }
.ss-signs p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .78); }

/* About: the founding idea as a statement, highlight facts, icon principles */
.ss-eyebrow { margin: 0 0 8px !important; font: 600 13px/1.2 Poppins, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ss-blue) !important; }
html body main .ss-prose .ss-idea { margin: 0 0 22px; padding: 4px 0 4px 22px; border-left: 4px solid var(--ss-blue); font: 600 clamp(19px, 1.8vw, 23px)/1.5 Poppins, Arial, sans-serif; letter-spacing: -.01em; color: var(--ss-ink); }
.ss-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.ss-fact { display: flex; flex-direction: column; gap: 10px; padding: 6px 26px; }
.ss-fact + .ss-fact { border-left: 1px solid rgba(255, 255, 255, .16); }
.ss-fact > b { display: flex; align-items: center; min-height: 44px; font: 700 clamp(30px, 3vw, 40px)/1 Poppins, Arial, sans-serif; letter-spacing: -.03em; color: #fff; }
.ss-fact-logo img { display: block; box-sizing: content-box; height: 26px; width: auto; padding: 8px 12px; border-radius: 10px; background: #fff; }
.ss-fact-arrow { margin: 0 .2em; font-family: Arial, sans-serif; font-weight: 700; color: #8fb2ff; }
.ss-fact-stars { font-size: 26px; letter-spacing: 2px; color: #00b67a; }
.ss-fact > span { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.ss-benefit .ico .ss-ic { width: 24px; height: 24px; }

@media (max-width: 1000px) {
  .ss-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-glance li:nth-child(3) { border-left: 0; }
  .ss-glance li:nth-child(n+3) { border-top: 1px solid var(--ss-line); }
  .ss-bento { grid-template-columns: 1fr; }
  .ss-bento-media { min-height: 0; aspect-ratio: 16 / 8; }
  .ss-why3 { grid-template-columns: 1fr; }
  .ss-signs-grid { grid-template-columns: 1fr; }
  .ss-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .ss-fact:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .ss-glance-sec { margin-top: -22px; }
  .ss-glance { padding: 4px; border-radius: 18px; }
  .ss-glance li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 12px; }
  .ss-glance .ss-ic { width: 36px; height: 36px; padding: 8px; }
  .ss-glance b { font-size: 14px; }
  .ss-glance small { font-size: 13px; }
  .ss-bento-media { aspect-ratio: 16 / 10; border-radius: 18px; }
  .ss-tasks-i .ss-task { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; }
  .ss-task-ic { width: 40px; height: 40px; border-radius: 11px; }
  .ss-task-ic .ss-ic { width: 20px; height: 20px; }
  .ss-tasks-i .ss-task .ss-checks { margin-top: 14px; padding-top: 14px; }
  .ss-why-card { padding: 22px; border-radius: 18px; }
  .ss-why-card p { font-size: 15.5px; }
  .ss-signs li { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .ss-sign-n { font-size: 26px; }
  html body main .ss-signs h3 { font-size: 16.5px; }
  .ss-signs p { font-size: 14.5px; }
  .ss-signs-grid .ss-actions .ss-btn { width: 100%; justify-content: center; }
  .ss-fact { padding: 4px 14px; gap: 8px; }
  .ss-fact > b { min-height: 36px; font-size: 28px; }
  .ss-fact-stars { font-size: 20px; }
  .ss-fact-logo img { height: 20px; padding: 6px 9px; }
  .ss-fact > span { font-size: 13.5px; }
  html body main .ss-prose .ss-idea { padding-left: 16px; font-size: 18px; }
}
.ss-bento-media img.fx30 { object-position: 30% 50%; }
.ss-bento-media img.fx40 { object-position: 40% 50%; }
.ss-bento-media img.fx55 { object-position: 55% 50%; }
.ss-bento-media img.fx60 { object-position: 60% 50%; }
.ss-bento-media img.fx75 { object-position: 75% 50%; }
/* The strip under the hero sits on the next section's background */
.ss-glance-sec { background: linear-gradient(180deg, transparent 0, transparent 34px, #f4f8ff 34px); }
@media (max-width: 640px) { .ss-glance-sec { background: linear-gradient(180deg, transparent 0, transparent 22px, #f4f8ff 22px); } }
.ss-bento-media img.fx45 { object-position: 45% 50%; }
