/* Kaimā product-story entry points. Kept separate from the V8 design system. */
.stories-home {
  padding-block: clamp(74px, 9vw, 132px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(95, 216, 242, .16), transparent 28%),
    linear-gradient(145deg, #04070e 0%, #071820 52%, #0b3a4a 100%);
}
.stories-home .sec { color: #fff; }
.stories-kicker {
  margin: 0 0 16px;
  color: var(--cyan-lift, #7de7ff);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.stories-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .68fr);
  gap: clamp(38px, 7vw, 108px);
  align-items: end;
}
.stories-intro-copy { padding-bottom: 7px; }
.stories-intro-copy p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(18px, 1.6vw, 23px);
}
.stories-all {
  display: inline-flex;
  gap: 10px;
  margin-top: 24px;
  color: var(--cyan-lift, #7de7ff);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.stories-all:hover { color: #fff; }

.featured-story {
  margin-top: clamp(48px, 6vw, 78px);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.045);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(440px, 1fr);
  overflow: hidden;
}
.featured-copy { padding: clamp(34px, 5vw, 72px); }
.featured-copy h3 {
  margin: 0;
  max-width: 16ch;
  color: #fff;
  font: 700 clamp(38px, 4.5vw, 66px)/1.02 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.featured-copy > p:not(.stories-kicker) {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.73);
  font-size: 18px;
}
.featured-copy blockquote {
  max-width: 600px;
  margin: 30px 0;
  padding-left: 20px;
  border-left: 2px solid var(--gold, #f0c469);
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
}

.memory-preview {
  position: relative;
  min-height: 620px;
  padding: 62px clamp(26px, 4vw, 54px);
  border-left: 1px solid rgba(255,255,255,.13);
  background:
    linear-gradient(rgba(95,216,242,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,216,242,.055) 1px, transparent 1px),
    rgba(4,7,14,.38);
  background-size: 28px 28px;
  display: grid;
  grid-template-columns: 116px minmax(270px, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.memory-sources { z-index: 2; display: grid; gap: 12px; }
.memory-sources span {
  min-height: 70px;
  padding: 11px 10px;
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.72);
  background: #0b2530;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-align: center;
  text-transform: uppercase;
}
.memory-sources svg {
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  fill: none;
  stroke: #5fd8f2;
  stroke-width: 1.35;
  display: block;
}
.memory-flow { position: absolute; inset: 50% auto auto 5%; width: 76%; height: 330px; transform: translateY(-50%); }
.memory-flow path {
  fill: none;
  stroke: rgba(95,216,242,.48);
  stroke-width: 1.4;
  stroke-dasharray: 6 9;
  animation: story-flow 9s linear infinite;
}
@keyframes story-flow { to { stroke-dashoffset: -150; } }
.customer-record {
  z-index: 2;
  color: #0e1418;
  background: #fff;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.75);
}
.record-top {
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #dfe5e8;
  display: flex;
  align-items: center;
  gap: 7px;
}
.record-top span { width: 7px; height: 7px; border-radius: 50%; background: #c8d2d7; }
.record-top b { margin-left: auto; color: #65717a; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.record-label { margin: 0; padding: 26px 28px 7px; color: #12697f; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.customer-record > strong { padding: 0 28px 25px; font: 700 clamp(30px, 3.3vw, 48px)/1.04 var(--serif); display: block; }
.customer-record dl { margin: 0; }
.customer-record dl div { padding: 16px 28px; border-top: 1px solid #dfe5e8; display: grid; grid-template-columns: 74px 1fr; gap: 18px; }
.customer-record dt { color: #65717a; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.customer-record dd { margin: 0; font-size: 13px; }

.story-paths { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.story-path { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.035); }
.story-path[open] { border-color: rgba(95,216,242,.55); background: rgba(18,105,127,.18); }
.story-path summary { min-height: 178px; padding: 26px; cursor: pointer; list-style: none; display: flex; flex-direction: column; }
.story-path summary::-webkit-details-marker { display: none; }
.story-path summary span { color: #5fd8f2; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.story-path summary strong { max-width: 13ch; margin-top: auto; font: 700 clamp(25px, 2.5vw, 35px)/1.06 var(--serif); }
.story-path summary i { position: absolute; opacity: 0; }
.story-path > div { padding: 0 26px 28px; color: rgba(255,255,255,.68); font-size: 14px; }
.story-path > div p { margin: 0 0 16px; }
.story-path a { color: #5fd8f2; font-weight: 800; text-decoration: none; }

/* Case-studies index. */
.story-hub { padding-block: clamp(74px, 9vw, 130px); background: #f4f6f8; }
.story-hub .stories-kicker { color: #12697f; }
.story-hub-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr); gap: clamp(36px, 7vw, 100px); align-items: end; }
.story-hub-head h1 { max-width: 13ch; color: #0b3a4a; font-size: clamp(52px, 7vw, 96px); }
.story-hub-head p:last-child { color: #37424b; font-size: clamp(18px, 1.6vw, 23px); }
.story-review-note { margin: 28px 0 0; padding: 14px 18px; border-left: 3px solid #f0c469; color: #5a6670; background: #fff; font-size: 13px; }
.story-hub-grid { margin-top: clamp(48px, 7vw, 90px); display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.hub-card { min-height: 430px; padding: clamp(28px, 4vw, 48px); color: #fff; background: #0b3a4a; text-decoration: none; display: flex; flex-direction: column; transition: translate .2s ease, box-shadow .2s ease; }
.hub-card:first-child { grid-row: span 2; min-height: 876px; background: linear-gradient(150deg, #04070e, #0b3a4a 70%, #12697f); }
.hub-card:hover { translate: 0 -5px; box-shadow: 0 30px 60px -38px rgba(4,7,14,.8); }
.hub-card small { color: #5fd8f2; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hub-card h2 { max-width: 14ch; margin: auto 0 20px; font: 700 clamp(34px, 4vw, 58px)/1.03 var(--serif); letter-spacing: -.03em; }
.hub-card:not(:first-child) h2 { font-size: clamp(30px, 3.4vw, 46px); }
.hub-card p { max-width: 570px; color: rgba(255,255,255,.72); }
.hub-card b { margin-top: 24px; color: #5fd8f2; font-size: 13px; }
.hub-card-graphic { height: 220px; margin: 40px 0; position: relative; }
.hub-card-graphic::before,.hub-card-graphic::after { content:""; position:absolute; border:1px solid rgba(95,216,242,.42); border-radius:50%; }
.hub-card-graphic::before { width:190px;height:190px;left:8%;top:8px; }
.hub-card-graphic::after { width:115px;height:115px;right:12%;bottom:0; }
.hub-card-graphic span { position:absolute;left:50%;top:50%;width:150px;height:150px;border-radius:50%;background:#fff;color:#0b3a4a;transform:translate(-50%,-50%);display:grid;place-items:center;text-align:center;font:700 22px/1.05 var(--serif); }

@media (max-width: 980px) {
  .stories-intro, .featured-story, .story-hub-head { grid-template-columns: 1fr; }
  .memory-preview { min-height: 540px; border-left: 0; border-top: 1px solid rgba(255,255,255,.13); }
  .story-paths { grid-template-columns: 1fr 1fr; }
  .story-path:last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .memory-preview { min-height: 690px; grid-template-columns: 1fr; align-content: center; }
  .memory-sources { grid-template-columns: 1fr 1fr; }
  .memory-flow { display: none; }
  .story-paths, .story-hub-grid { grid-template-columns: 1fr; }
  .story-path:last-child { grid-column: auto; }
  .hub-card:first-child { grid-row: auto; min-height: 540px; }
}
@media (prefers-reduced-motion: reduce) {
  .memory-flow path { animation: none; }
  .hub-card:hover { translate: none; }
}
