.story-nav--editorial {
  background: #faf7f4;
  border-bottom: 0;
  position: sticky;
}
.story-nav--editorial::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: clamp(7px, 1.2vw, 19px);
  background: #faf7f4;
  clip-path: polygon(0 0, 100% 0, 100% 15%, 79% 84%, 71% 40%, 48% 100%, 37% 52%, 0 82%);
  pointer-events: none;
}
.story-nav--editorial .story-button--nav {
  padding-inline: .9rem 1.22rem;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 92% 100%, 0 100%);
}
.story-hero-fold {
  position: absolute;
  inset: auto 0 0;
  height: clamp(32px, 6vw, 130px);
  background: var(--story-paper);
  clip-path: polygon(0 58%, 19% 73%, 46% 44%, 60% 55%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.story-hero-fold::before {
  position: absolute;
  content: "";
  inset: auto 0 0;
  height: 100%;
  background: #8b2940;
  clip-path: polygon(60% 55%, 100% 0, 100% 16%, 83% 45%, 72% 51%);
}
.sentipai-story .story-hero-caption { bottom: clamp(65px, 8vw, 136px); }
.story-operation { padding-top: clamp(35px, 6.3vw, 92px); }
.story-sale { --photo-cut: polygon(0 9%, 100% 0, 97% 88%, 7% 100%); }
.story-accounting-image { --photo-cut: polygon(6% 0, 100% 6%, 100% 99%, 0 90%); }
.editorial-motion [data-enter] {
  opacity: var(--enter-o, 1);
  translate: 0 var(--enter-y, 0px);
}
.editorial-motion [data-enter]:focus-within, .editorial-motion [data-enter]:focus-visible {
  opacity: 1;
  translate: none;
}
.story-chapter h2 [data-enter] { display: inline-block; }
.editorial-motion [data-photo-enter] {
  opacity: var(--photo-o, 1);
  translate: var(--photo-x, 0px) var(--photo-y, 0px);
}
.editorial-motion .story-sale-window {
  clip-path: polygon(0 9%, 100% 0, 97% calc(88% - var(--photo-mask, 0%)), 7% calc(100% - var(--photo-mask, 0%)));
}
.editorial-motion .story-sale::before {
  translate: var(--photo-fold, 0px) 0;
}
.editorial-motion .story-accounting-image {
  clip-path: polygon(6% 0, 100% 6%, 100% calc(99% - var(--photo-mask, 0%)), 0 calc(90% - var(--photo-mask, 0%)));
}
.story-capabilities {
  position: relative;
  isolation: isolate;
  padding-block: clamp(71px, 9vw, 135px) clamp(70px, 10vw, 150px);
  background: #eee0d5;
}
.story-capabilities::before {
  content: "";
  position: absolute;
  inset: -2px 0 auto;
  height: clamp(21px, 4vw, 61px);
  background: var(--story-paper);
  clip-path: polygon(0 0, 100% 0, 100% 47%, 73% 70%, 55% 38%, 28% 100%, 0 60%);
  z-index: -1;
}
.story-capabilities-head {
  display: grid;
  grid-template-columns: 1.4fr minmax(240px,.62fr);
  align-items: end;
  gap: 20px clamp(20px, 5vw, 75px);
  margin-bottom: clamp(23px, 4.4vw, 60px);
}
.story-capabilities-head > p { color: var(--story-muted); max-width: 24rem; font-size: clamp(1rem, 1.3vw, 1.22rem); }
.story-capabilities-head h2 span { color: var(--story-red); }
.story-capabilities-film {
  display: grid;
  grid-template-columns: 1.07fr .98fr 1fr 1.04fr;
  align-items: start;
  gap: clamp(10px, 1.5vw, 24px);
}
.story-capabilities-film a {
  min-width: 0;
  text-decoration: none;
  padding-bottom: .8rem;
  border-bottom: 1px solid #7a3b483e;
}
.story-capabilities-film a:nth-child(2n) { margin-top: clamp(10px, 3vw, 55px); }
.story-capabilities-film picture {
  display: block;
  background: #564031;
  overflow: hidden;
  clip-path: polygon(0 4%, 100% 0, 98% 94%, 0 100%);
  aspect-ratio: 1.27;
}
.story-capabilities-film a:nth-child(2n) picture { clip-path: polygon(2% 0, 100% 5%, 100% 100%, 0 94%); }
.story-capabilities-film img { width: 100%; height: 100%; object-fit: cover; transition: scale .35s ease; }
.story-capabilities-film a:hover img { scale: 1.08; }
.story-capabilities-film h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin: .78rem 0 .24rem;
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(1.02rem, 1.55vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.12;
}
.story-capabilities-film h3 span { color: var(--story-red); }
.story-capabilities-film p { color: var(--story-muted); font-size: .88rem; }
.story-overview {
  padding-top: clamp(55px, 7vw, 105px);
  background: #e6d9d3;
}
.story-overview::before {
  inset: 28% 0 0;
  background:
    linear-gradient(180deg, transparent 72%, #1a121a 100%),
    linear-gradient(148deg,#ad8080,#65404d 49%,#241821 80%,#1a121a 100%);
  clip-path: polygon(0 36%, 45% 21%, 62% 24%, 100% 0, 100% 100%, 0 100%);
}
.story-monitor { position: relative; perspective: 1250px; }
.story-monitor::before {
  content: "";
  position: absolute;
  inset: 48% -10% -5%;
  z-index: -1;
  background: radial-gradient(ellipse at center, #f0aab560, transparent 67%);
  opacity: var(--monitor-light, 1);
}
.story-monitor-screen {
  position: relative;
  padding: clamp(7px,1.1vw,17px);
  border: 1px solid #a98d95;
  border-radius: clamp(11px, 1.8vw, 27px);
  box-shadow: 0 0 0 2px #110c10, 0 2px 0 4px #c9b0b24d, 0 37px 55px #1c101875;
  transform-origin: center 74%;
}
.story-monitor-camera {
  position: absolute;
  left: 50%;
  top: clamp(2px, .28vw, 5px);
  width: clamp(3px, .44vw, 7px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%,#596b82,#141d27 80%);
}
.editorial-motion .story-monitor-screen {
  transform: translateY(var(--monitor-y, 0px)) rotateX(var(--monitor-angle, 0deg)) scale(var(--monitor-scale, 1));
  opacity: var(--monitor-opacity, 1);
}
.story-monitor figcaption { opacity: var(--monitor-opacity, 1); }
.story-mobile.motion-ready { min-height: 132svh; }
.story-mobile-stage {
  overflow: clip;
  background: linear-gradient(180deg, #1a121a, #251821 24%, #2c1523 70%, #311824);
}
.story-mobile-stage::before {
  background: linear-gradient(180deg, transparent, #65223b86 19%, #41152b 92%),
    linear-gradient(180deg, #1a121a, #62253f 45%, #42162d 100%);
  clip-path: polygon(48% 0, 100% 0, 100% 100%, 10% 100%, 0 63%);
}
.story-device {
  perspective: 1180px;
  opacity: var(--fly-opacity, 1);
  translate: var(--fly-x, 0px) var(--fly-y, 0px);
}
.story-device::before {
  inset: auto 19% 12px;
  opacity: .85;
  background: #0b090d;
}
.story-phone {
  --phone-depth: 18px;
  width: min(276px, 31vw, 30vh);
  transform: rotateZ(var(--phone-roll, 0deg)) rotateX(var(--phone-tilt, 0deg)) rotateY(var(--phone-turn, 0deg));
}
.story-phone-face {
  border-radius: 13% / 6%;
  border-width: clamp(5px, .7vw, 10px);
  box-shadow: 0 0 0 1px #d7b3ba, 0 0 0 2px #4c3440;
}
.story-phone-front {
  border-color: #141319;
  background: #090a0d;
}
.story-phone-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(126deg, #ffffff26, transparent 29%, transparent 75%, #a76f8a26);
  pointer-events: none;
}
.story-earpiece {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 40%;
  width: 20%;
  height: clamp(3px,.52vw,8px);
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 1px 0 #67535c;
  background: #141319;
}
.story-phone-back {
  border-color: #6d4c5d;
  background:
    radial-gradient(ellipse at 18% 10%, #ba939b80 0%, transparent 36%),
    repeating-linear-gradient(116deg,#ffffff04 0 1px,#10101800 1px 3px),
    linear-gradient(146deg, #80626f 0%, #4c3644 39%, #261f29 75%, #755462 100%);
}
.story-phone-back::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 5px 3px 13px #ecd3d657, inset -6px -6px 18px #140f1bcc;
  border-radius: inherit;
  pointer-events: none;
}
.story-back-mark { width: 35%; display: grid; place-items: center; }
.story-back-mark img { width: 100%; height: auto; opacity: .68; }
.story-lenses {
  z-index: 1;
  inset: 3.5% auto auto 5%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: clamp(5px, .72vw, 10px);
  border: 1px solid #a08193;
  border-radius: 14%;
  background: linear-gradient(130deg,#8b6c79,#4b3b49 65%,#332837);
  box-shadow: 0 3px 5px #1a1122b0, inset 0 0 5px #d1b3bd88;
}
.story-lenses i {
  width: clamp(16px, 2.15vw, 35px);
  border: 2px solid #b8a0b1;
  box-shadow: 0 1px 3px #09070d, inset 0 0 0 2px #231e2a;
  background:
    radial-gradient(ellipse at 59% 32%, #c8c2f6 0 7%, transparent 14%),
    radial-gradient(ellipse at 33% 69%,#5e557b 3%,transparent 38%),
    radial-gradient(circle at 42% 40%,#3c405c 0%,#171725 46%,#0d0b12 71%);
}
.story-lenses b, .story-lenses small { position: absolute; right: 17%; width: 15%; aspect-ratio: 1; border-radius: 50%; }
.story-lenses b { top: 57%; background: radial-gradient(circle, #fff3cd,#d19f87 62%,#614656); }
.story-lenses small { top: 78%; background: #271e2a; border: 1px solid #938090; width: 11%; }
.story-phone-edge {
  background: linear-gradient(90deg,#b78a9c 0%,#654657 18%,#4a3543 56%,#b7899f 92%,#e7c1c9);
  border-inline: 1px solid #cf9caf;
  border-radius: 22% / 4%;
}
.story-phone-edge--right i { position: absolute; top: 15%; left: 16%; width: 57%; height: 8%; border: 1px solid #c196a7; border-radius: 5px; background: #715164; }
.story-phone-edge--right i+i { top: 27%; height: 11%; }
.story-phone-edge--top, .story-phone-edge--bottom {
  inset: 0 8% auto;
  width: auto;
  height: var(--phone-depth);
  transform: translateY(-50%) rotateX(90deg);
  background: linear-gradient(#b78a9c,#6b4d5b,#a17988);
}
.story-phone-edge--bottom { inset: auto 8% 0; transform: translateY(50%) rotateX(-90deg); }
.story-phone-edge--bottom i { position: absolute; inset: 32% 43%; border-radius: 4px; background: #120d15; box-shadow: -32px 0 0 -2px #302132, 32px 0 0 -2px #302132; }
.story-accounting {
  position: relative;
  isolation: isolate;
  padding-top: clamp(80px, 11vw, 157px);
}
.story-accounting::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: clamp(24px, 5vw, 84px);
  background: #311824;
  clip-path: polygon(0 0,100% 0,100% 35%,73% 69%,49% 22%,29% 100%,0 54%);
  z-index: -1;
}
.story-accounting-copy .story-button { margin-top: 1.45rem; }
.story-close-layout { grid-template-columns: 1.2fr minmax(0,.8fr); }
.story-close h2 { font-size: clamp(2.2rem, 5.42vw, 6.1rem); }
@media (max-width: 960px) {
  .story-nav--editorial::after { height: 10px; }
  .story-nav--editorial:has(nav.is-open)::after { display: none; }
  .story-capabilities-film { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story-phone { width: min(240px, 35vw, 30vh); }
}
@media (max-width: 640px) {
  .sentipai-story .story-hero-caption { bottom: 47px; }
  .story-hero { padding-bottom: 95px; }
  .story-capabilities-head, .story-close-layout { grid-template-columns: 1fr; }
  .story-capabilities-film { column-gap: 12px; row-gap: 19px; }
  .story-capabilities-film p { font-size: .81rem; }
  .story-phone { --phone-depth: 13px; width: min(40vw, 21vh, 172px); }
  .story-lenses i { width: clamp(13px, 4.6vw, 23px); }
  .story-mobile.motion-ready { min-height: 128svh; }
}
@media (max-height: 690px) and (max-width: 640px) {
  .story-phone { width: min(39vw, 19vh, 160px); }
}
@media (prefers-reduced-motion: reduce) {
  .story-device, .editorial-motion [data-enter], .editorial-motion [data-photo-enter], .editorial-motion .story-monitor-screen { opacity: 1; translate: none; transform: none; }
  .story-mobile.motion-ready { min-height: 0; }
}
