/* HeatSig v3: stories (case studies) first. Loaded after base.css + home.css on every v3 page.
   Round 2 rules (2026-10-29): immobility, not falls; stories sell the product; one purpose per page;
   skimmable, few words, no motion beyond the soft fade. */

.sec--tight {
  padding-top: 0;
}

/* Hero: the short clip, with the full film one click away */
.hero__media {
  position: relative;
}
.hero__play--on {
  position: absolute;
  left: 16px;
  bottom: 16px;
  height: 40px;
  padding: 0 16px 0 6px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink);
  background: rgba(252, 253, 253, 0.92);
}
.hero__clip {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
}
.trust {
  margin-top: 40px;
}

/* Story cards: browsed like products, each one leads to its story */
.stories {
  align-items: stretch;
}
.story-card {
  display: flex;
}
.story-card > a,
.story-card--next {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color var(--duration-fast) var(--ease-out);
}
.sec--alt .story-card > a {
  background: #fff;
}
.story-card > a:hover {
  border-color: var(--ink);
}
.story-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
}
.story-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.story-card > a:hover .story-card__img img {
  transform: scale(1.03);
}
.story-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}
.story-card__body :is(h2, h3) {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}
.story-card__body p {
  font-size: 15px;
  line-height: 1.5;
}
.story-card__body .link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 15px;
}
.story-card .tag {
  color: var(--ember);
}
.story-card--next {
  border-style: dashed;
}
.story-card--next .tag {
  color: var(--ink-3);
}
.story-card[hidden] {
  display: none;
}
.stories__more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-top: 40px;
  font-size: 16px;
}

/* Stories page head + filters */
.page-head {
  padding-bottom: 32px;
}
.page-head .lede {
  max-width: 640px;
  margin-top: 14px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.filters button {
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  cursor: pointer;
}
.filters button:hover {
  border-color: var(--ink);
}
.filters button[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

/* What SORVA is: three parts */
.parts li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.parts__img {
  aspect-ratio: 16 / 10;
  margin-bottom: 8px;
  overflow: hidden;
  background: #fff;
}
.parts__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.parts__img--screen img {
  object-fit: contain;
  padding: 12px 0 0;
  object-position: top;
}
.parts p {
  font-size: 16px;
  line-height: 1.5;
}

/* How the alert works */
.how {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: start;
}
.how__steps {
  margin-top: 28px;
  counter-reset: none;
}
.how__steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.how__steps li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ember);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 600;
  color: var(--ember);
}
.how__steps p {
  margin-top: 4px;
  font-size: 16px;
}
.how__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--paper-2);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
}

/* Testimonials: words only */
.words figure {
  padding-left: 24px;
  border-left: 2px solid var(--ember);
}
.words blockquote {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}
.words figcaption {
  margin-top: 12px;
  font-size: 15px;
}

/* SORVA page: what it does */
.does li {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.does p {
  margin-top: 6px;
  font-size: 16px;
}

/* Story page (round 3, 2026-10-29): photo first, the quote as the highlight, three picture beats,
   short lines. It helps before it sells: the only sales link is the quiet "Next step" at the end. */
.story-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(72vh, 680px);
  overflow: hidden;
  color: var(--on-night);
  background: var(--night);
}
.story-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.story-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 14, 17, 0.82) 0%, rgba(12, 14, 17, 0.45) 38%, rgba(12, 14, 17, 0) 68%);
}
.story-hero__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 120px;
  padding-bottom: 48px;
}
.story-hero__text > * {
  max-width: 760px;
}
.story-hero .crumbs,
.story-hero .crumbs a {
  padding: 0;
  font-size: 15px;
  color: rgba(252, 253, 253, 0.85);
}
.story-hero h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.15;
  color: var(--on-night);
}
.story-hero__text p {
  font-size: 20px;
  line-height: 1.5;
  color: var(--on-night);
}
.story-hero__note {
  align-self: flex-start;
  padding: 4px 12px;
  border: 1px solid rgba(252, 253, 253, 0.5);
  border-radius: 999px;
  font-size: 15px;
  color: var(--on-night);
}

/* The quote: the line people remember */
.story-quote {
  max-width: 980px;
  padding-top: 72px;
  padding-bottom: 24px;
  text-align: center;
}
.story-quote p {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.story-quote figcaption {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ember);
  font-weight: 600;
}

.story-sec {
  padding-top: 64px;
}
.story-sec h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.4vw, 30px);
}

/* What happened: three pictures, one line each */
.beats__worry {
  max-width: 640px;
  font-size: 19px;
}
.beats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.beats li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.beats__img {
  aspect-ratio: 4 / 3;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--paper-2);
}
.beats__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.beats__img.ph {
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
}
.beats__img--app img {
  object-fit: contain;
  object-position: top;
  padding-top: 16px;
}
.beats__time {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.beats__alert .beats__time {
  color: var(--ember);
}
.beats p {
  color: var(--ink);
}

/* Who got the alert: names, not a table */
.told {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 8px;
}
.told li {
  display: grid;
  grid-template-columns: 52px auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
}
.told__i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 600;
  color: var(--ember);
  background: var(--ember-soft);
}
.told strong {
  font-size: 18px;
  color: var(--ink);
}
.told li > span:last-child {
  font-size: 16px;
}

/* The quiet next step */
.story-end {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 72px;
}
.story-end img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.story-end__line {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.45;
  color: var(--ink);
}
.story-end .actions {
  margin-top: 20px;
}

/* Tablet */
@media (max-width: 1080px) {
  .stories {
    grid-template-columns: repeat(2, 1fr);
  }
  .does {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .how,
  .story-end {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .beats {
    gap: 16px;
  }
  .parts {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }
}

/* Phone */
@media (max-width: 600px) {
  .stories,
  .parts,
  .does {
    grid-template-columns: 1fr;
  }
  .story-card > a,
  .story-card--next {
    flex-direction: row;
  }
  .story-card__img {
    flex: 0 0 104px;
    aspect-ratio: auto;
  }
  .story-card__body {
    padding: 14px 16px;
  }
  .story-card__body :is(h2, h3) {
    font-size: 16px;
  }
  .story-card__body p {
    display: none;
  }
  .story-card--next .story-card__img .ph-box {
    font-size: 15px;
    padding: 8px;
  }
  .story-card--next .story-card__img.ph::before {
    display: none;
  }
  .parts li {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 4px 16px;
  }
  .parts__img {
    grid-row: span 2;
    margin: 0;
    aspect-ratio: 1;
  }
  .hero__clip {
    display: none;
  }
  .hero__play--on {
    left: 12px;
    bottom: 12px;
    width: auto;
  }
  .how__side {
    padding: 20px;
  }
  .story-hero {
    min-height: 0;
    aspect-ratio: auto;
    flex-direction: column;
    align-items: stretch;
    background: var(--night);
  }
  .story-hero__img {
    position: static;
    aspect-ratio: 4 / 3;
    height: auto;
  }
  .story-hero::after {
    display: none;
  }
  .story-hero__text {
    padding-top: 20px;
    padding-bottom: 32px;
  }
  .story-hero h1 {
    font-size: 28px;
  }
  .story-hero__text p {
    font-size: 18px;
  }
  .story-quote {
    padding-top: 48px;
    text-align: left;
  }
  .story-quote p {
    font-size: 26px;
  }
  .story-sec {
    padding-top: 48px;
  }
  .beats {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .beats li {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto 1fr;
    gap: 4px 16px;
  }
  .beats__img {
    grid-row: span 2;
    margin: 0;
    aspect-ratio: 3 / 4;
  }
  .beats__img.ph {
    aspect-ratio: auto;
    min-height: 160px;
    padding: 8px;
  }
  .beats__img.ph::before {
    display: none;
  }
  .beats__img.ph .ph-box {
    font-size: 15px;
  }
  .told {
    flex-direction: column;
  }
  .story-end {
    padding-bottom: 48px;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: calc(-1 * clamp(16px, 3vw, 40px));
    padding-right: 16px;
    scrollbar-width: none;
  }
  .filters button {
    flex: none;
  }
}

/* Breadcrumbs on story, hub and article pages (shop.css has the same rule for the shop pages) */
.crumbs--page {
  padding: 0;
  font-size: 15px;
  color: var(--ink-3);
}
.story-hero .crumbs a:hover,
.crumbs--page a:hover {
  color: var(--ember);
}

.crumbs--page {
  margin-bottom: 16px;
}

/* Story page: what you can do (useful with or without SORVA) */
.tips {
  max-width: 820px;
  padding: 32px;
  background: var(--paper-2);
}
.tips > p {
  font-size: 16px;
}
.tips ol {
  margin-top: 16px;
  counter-reset: tip;
}
.tips li {
  position: relative;
  padding: 10px 0 10px 36px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  counter-increment: tip;
}
.tips li::before {
  content: counter(tip);
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ember);
}
.tips__more {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.tips__more:hover {
  border-color: var(--ink);
}
.tips__more .tag {
  color: var(--ember);
}
.tips__more strong {
  font-weight: 600;
  color: var(--ink);
}

/* Hub pages: label above each grid */
.sec__label {
  margin-bottom: 20px;
  font-size: 22px;
}

/* Articles: category tabs above the situation filter */
.tabs {
  margin-top: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.tabs__later {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
}
.tabs + .tabs__later + .filters {
  margin-top: 16px;
}
.story-card--article .tag {
  color: var(--ink-3);
}

/* Article page: one reading column */
.article__head {
  padding-top: 32px;
}
.article__col {
  max-width: calc(720px + 2 * clamp(16px, 3vw, 40px));
}
.article__head h1 {
  font-size: clamp(30px, 3.4vw, 44px);
}
.article__photo {
  max-width: calc(1040px + 2 * clamp(16px, 3vw, 40px));
  margin-top: 32px;
}
.article__photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.article__body {
  padding-top: 40px;
  padding-bottom: 72px;
  font-size: 17px;
  line-height: 1.7;
}
.article__body > * + * {
  margin-top: 18px;
}
.article__body h2 {
  margin-top: 44px;
  font-size: 26px;
}
.article__body h3 {
  margin-top: 32px;
  font-size: 19px;
}
.article__body sup a {
  color: var(--ember);
}
.article__body blockquote {
  padding: 14px 20px;
  border-left: 2px solid var(--ember);
  background: var(--paper-2);
  color: var(--ink);
}
.refs {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}
.refs h2 {
  margin: 0 0 12px;
  font-size: 16px;
}
.refs ol {
  padding-left: 20px;
  list-style: decimal;
}
.refs li + li {
  margin-top: 8px;
}
.refs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .tips {
    padding: 20px;
  }
  .article__photo {
    padding: 0;
  }
  .article__photo img {
    aspect-ratio: 16 / 10;
  }
  .article__body {
    font-size: 16px;
  }
  .tabs {
    padding-bottom: 12px;
  }
}

/* Round 3 (2026-10-29): the path through the home page, brand labels, alert kinds, next step */
.hero__self {
  margin-top: 4px;
  font-size: 17px;
}
.path {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.path ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.path a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.path a:hover {
  color: var(--ember);
}
.path span,
.step {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ember);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 600;
  color: var(--ember);
}
.eyebrow .step {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  letter-spacing: 0;
}
.brand-tag {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.brand-tag--hs {
  color: var(--ember);
}
.alert-kinds {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alert-kinds li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 16px;
  background: #fff;
}
.alert-kinds strong {
  flex: 0 0 100%;
  font-size: 19px;
  color: var(--ink);
}
.alert-kinds span {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  color: var(--ink);
}
.how__side > img {
  max-height: 340px;
  width: auto;
  align-self: center;
}
.next__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.next .eyebrow {
  margin-bottom: 6px;
}

/* Technology page */
.tech-hero .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 8px;
}
.proof-row li {
  display: flex;
  flex-direction: column;
  font-size: 16px;
}
.proof-row strong {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ember);
}
.tech-hero__first {
  font-size: 16px;
}
.tech-note {
  margin-top: 16px;
  max-width: 520px;
}
.app-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-steps li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--night-line);
}
.app-steps strong {
  color: var(--ember-bright);
}
.app-steps span {
  color: var(--on-night);
}
.app__phones--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 440px;
  justify-self: center;
}
.app__ph {
  margin-top: 24px;
}
.tech-words {
  margin-top: 56px;
}

@media (max-width: 860px) {
  .path ol {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .path ol {
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }
  .path a {
    min-height: 56px;
    font-size: 16px;
  }
  .app-steps li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .proof-row strong {
    font-size: 28px;
  }
}
