.document-story {
  background: #123a2f;
  color: var(--white);
  overflow: hidden;
  scroll-margin-top: 110px;
}
.story-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 38px;
}
.story-topline .eyebrow { color: var(--gold); }
.story-disclosure {
  font-size: 11px;
  color: #bfcec6;
  padding-left: 15px;
  border-left: 1px solid #739184;
}
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.3fr);
  gap: 44px;
  align-items: center;
}
.story-copy h2 { font-size: 48px; line-height: 1.15; }
.story-copy h2 > span { font-family: Fraunces, Georgia, serif; color: var(--gold); }
.story-intro { margin-top: 23px; color: #c8d6ce; font-size: 14px; max-width: 310px; }
.story-panels { min-height: 174px; margin: 43px 0 18px; }
.story-index { font-size: 10px; color: var(--gold); }
.story-panel h3 { font-size: 21px; line-height: 1.35; margin: 12px 0; }
.story-panel p { color: #c8d6ce; font-size: 13px; line-height: 1.85; }
.story-cta { font-size: 13px; min-height: 48px; padding: 13px 22px; }
.document-stage {
  position: relative;
  height: 450px;
  min-width: 0;
  isolation: isolate;
}
.story-stage-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bdcec4;
  font-size: 9px;
  padding: 0 0 15px;
  border-bottom: 1px solid #ffffff20;
}
.story-stage-label > span:last-child { margin-left: auto; color: #8eac9d; }
.story-status-light { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
.specimen-frame {
  position: absolute;
  top: 56px;
  left: 9%;
  width: 82%;
  max-width: 515px;
  padding: 18px;
  transition: transform 1s var(--ease), opacity 0.8s var(--ease);
}
.specimen-corner { position: absolute; width: 22px; height: 22px; border-color: #d6b77b80; border-style: solid; }
.specimen-corner:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.specimen-corner:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.specimen-corner:nth-child(3) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.specimen-corner:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.story-specimen {
  position: relative;
  aspect-ratio: 1.586;
  background: #f6faf8;
  color: var(--ink);
  border: 1px solid #d6e1db;
  border-radius: 8px;
  padding: 18px 22px 12px;
  box-shadow: 0 25px 45px #041a164d;
  overflow: hidden;
  transition: transform 1s var(--ease);
}
.specimen-heading { display: flex; align-items: center; gap: 9px; font-size: 9px; font-weight: 600; line-height: 1.4; }
.specimen-heading > img { width: 25px; height: 25px; }
.specimen-heading small { display: block; font-size: 8px; color: #677b70; font-weight: 400; margin-top: 3px; }
.specimen-sample { margin-left: auto; border: 1px solid #c7d7cc; padding: 4px 7px; color: #536b5b; font-size: 8px; font-weight: 500; }
.specimen-body { display: grid; grid-template-columns: 30% minmax(0, 1fr); gap: 23px; margin: 18px 0 12px; }
.specimen-portrait { position: relative; aspect-ratio: 0.8; min-width: 0; background: #d9e3dc; }
.specimen-portrait > img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 50% 30%; }
.specimen-photo-change { opacity: 0; transform: translate(10px, -8px) rotate(3deg); transition: opacity 0.65s, transform 0.9s var(--ease); }
.specimen-fields { display: flex; flex-direction: column; justify-content: space-between; padding: 1px 0; }
.specimen-fields small { display: block; font-size: 7px; line-height: 1.6; color: #677b70; }
.specimen-fields strong { display: block; font-size: 14px; line-height: 1.5; font-weight: 500; }
.specimen-name { position: relative; }
.specimen-meta { display: flex; gap: 24px; }
.specimen-meta strong { font-size: 9px; }
.specimen-letter { position: relative; display: inline-block; }
.specimen-letter > span { position: absolute; inset: 0; background: #f6faf8; opacity: 0; transition: opacity 0.4s; }
.specimen-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #d6e1db; padding-top: 8px; font-size: 7px; color: #63746a; }
.specimen-footer > svg { width: 18px; height: 18px; color: var(--bronze); }
.detail-focus, .portrait-focus { position: absolute; border: 1.5px solid #bf614b; opacity: 0; transition: opacity 0.5s, transform 0.7s var(--ease); pointer-events: none; }
.detail-focus { inset: 10px -7px -4px; transform: scaleX(0.85); border-radius: 3px; }
.portrait-focus { inset: -5px; transform: scale(1.08); }
.specimen-scan { position: absolute; z-index: 2; top: 0; bottom: 0; width: 18%; left: -20%; border-right: 1px solid #a78542; background: linear-gradient(90deg, transparent, #d6b77b38); opacity: 0; }
.document-story[data-phase="scanning"] .specimen-scan { opacity: 1; animation: specimen-sweep 1.2s ease-in-out both; }
@keyframes specimen-sweep { from { left: -20%; } to { left: 105%; } }
.document-story[data-scene="details"][data-phase="result"] .specimen-letter > span { opacity: 1; }
.document-story[data-scene="details"][data-phase="result"] .detail-focus,
.document-story[data-scene="portrait"][data-phase="result"] .portrait-focus { opacity: 1; transform: none; }
.document-story[data-scene="portrait"] .specimen-photo-change { opacity: 1; transform: translate(4px, -3px) rotate(1deg); }
.document-story[data-scene="portrait"][data-phase="result"] .specimen-photo-change { transform: none; }
.quality-guide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 0.8s; }
.quality-guide > svg { width: 66px; height: 66px; stroke-width: 1; color: var(--gold); filter: drop-shadow(0 2px 8px #123a2f); }
.document-story[data-scene="quality"] .story-specimen { filter: blur(2.4px); transform: scale(0.97); }
.document-story[data-scene="quality"] .quality-guide { opacity: 1; }
.story-observation {
  position: absolute;
  z-index: 3;
  bottom: 48px;
  right: 0;
  width: min(365px, 88%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #9eb6a959;
  border-radius: 6px;
  background: #214c3fee;
  box-shadow: 0 12px 24px #071d1933;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity 0.6s, transform 0.8s var(--ease);
}
.observation-symbol { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 1px solid #d6b77b5c; border-radius: 50%; color: var(--gold); }
.observation-symbol > svg { width: 18px; height: 18px; }
.story-observation small { font-size: 8px; color: #d6b77b; display: block; line-height: 1.6; }
.story-observation strong { display: block; font-size: 16px; font-weight: 500; line-height: 1.5; margin: 2px 0; }
.story-observation [data-inspection-note] { display: block; font-size: 10px; color: #d1dfd7; }
.observation-marker { width: 6px; height: 6px; flex: none; background: #e5a08d; border-radius: 50%; margin-left: auto; }
.document-story[data-phase="scanning"] .story-observation { opacity: 0; transform: translateY(12px); }
.story-evidence {
  position: absolute;
  z-index: 4;
  width: 75%;
  max-width: 385px;
  top: 120px;
  right: 2%;
  background: #fff;
  border: 1px solid #dce3df;
  border-radius: 6px;
  box-shadow: 0 25px 45px #041a1659;
  color: var(--ink);
  padding: 21px 24px 17px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s, transform 0.9s var(--ease);
  pointer-events: none;
}
.evidence-heading { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.evidence-heading > svg { width: 19px; height: 19px; color: var(--bronze); }
.evidence-heading small { font-size: 8px; color: var(--muted); margin-left: auto; }
.story-evidence-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding: 13px 0; font-size: 11px; }
.story-evidence-row strong { font-size: 9px; font-weight: 500; color: #9f503a; background: #f9eee9; padding: 3px 7px; border-radius: 3px; }
.story-evidence-row strong.evidence-clear { color: #28563f; background: #e7f3ed; }
.story-evidence-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 15px; font-size: 10px; color: #526b5a; }
.document-story[data-scene="review"] .specimen-frame { transform: translate(-25px, -8px) scale(0.86); opacity: 0.45; }
.document-story[data-scene="review"] .story-observation { opacity: 0; transform: translateY(15px); }
.document-story[data-scene="review"][data-phase="result"] .story-evidence { opacity: 1; transform: none; }
.story-stage-caption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 10px; color: #a9c0b3; }
.story-navigation { grid-column: 1 / -1; display: flex; gap: 28px; align-items: center; margin-top: 13px; }
.story-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1; gap: 25px; min-width: 0; }
.story-tabs > button { position: relative; display: flex; align-items: center; gap: 13px; text-align: left; padding: 20px 0; background: transparent; color: #bdcec4; min-height: 65px; border-top: 1px solid #ffffff30; }
.story-tabs > button > span { font-size: 10px; color: #96b1a1; }
.story-tabs strong { font-size: 13px; font-weight: 400; line-height: 1.5; }
.story-tabs > button[aria-selected="true"] { color: var(--white); }
.story-tabs > button[aria-selected="true"] > span { color: var(--gold); }
.story-progress { position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.story-tabs > button[aria-selected="true"] .story-progress { transform: scaleX(1); }
.document-story[data-cycle-active="true"] .story-tabs > button[aria-selected="true"] .story-progress { animation: story-progress var(--story-duration, 4s) linear both; }
@keyframes story-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.story-play { border-color: #c3d2c14d; color: var(--gold); width: 44px; height: 44px; flex: none; }
.story-play:hover { background: #ffffff10; }
.story-footnote, .story-noscript { font-size: 10px; line-height: 1.8; color: #b7ccbf; margin-top: 20px; }
.document-story:not(.is-running) *, .document-story:not(.is-running) *::before, .document-story:not(.is-running) *::after { animation-play-state: paused !important; }
.motion-paused .document-story *, .document-story[data-playing="false"] * { transition: none; }
.document-story + .business-section { padding-top: 112px; }
@media (max-width: 1199px) {
  .story-layout { gap: 24px; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); }
  .story-copy h2 { font-size: 42px; }
  .specimen-frame { width: 96%; left: 0; top: 65px; padding: 13px; }
  .story-specimen { padding: 15px 16px 10px; }
  .specimen-body { gap: 16px; margin-top: 16px; }
  .specimen-fields strong { font-size: 12px; }
  .specimen-meta { gap: 12px; }
  .specimen-meta strong { font-size: 8px; }
  .story-tabs { gap: 18px; }
}
@media (max-width: 900px) {
  .story-layout { grid-template-columns: 1fr; gap: 30px; }
  .story-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 0 35px; }
  .story-copy h2 { font-size: 40px; }
  .story-intro { grid-column: 1; margin-top: 18px; }
  .story-panels { grid-column: 2; grid-row: 1 / 4; margin: 0; align-self: center; min-height: 170px; }
  .story-cta { grid-column: 1; justify-self: start; margin-top: 24px; }
  .document-stage { width: 100%; max-width: 650px; margin: 0 auto; height: 460px; }
  .specimen-frame { left: 9%; width: 82%; top: 48px; padding: 18px; }
  .story-specimen { padding: 18px 22px 12px; }
  .specimen-body { gap: 23px; margin: 18px 0 12px; }
  .specimen-fields strong { font-size: 14px; }
  .specimen-meta strong { font-size: 9px; }
  .story-navigation { margin-top: 2px; gap: 18px; }
  .story-tabs { gap: 15px; }
  .story-tabs > button { flex-direction: column; align-items: flex-start; gap: 6px; }
  .story-tabs strong { font-size: 12px; }
  .document-story + .business-section { padding-top: 85px; }
}
@media (max-width: 600px) {
  .story-topline { margin-bottom: 28px; gap: 12px; }
  .story-topline .eyebrow { font-size: 10px; }
  .story-disclosure { font-size: 9px; padding-left: 10px; }
  .story-layout { display: flex; flex-direction: column; gap: 28px; align-items: stretch; }
  .story-copy { display: contents; }
  .story-copy h2 { font-size: 36px; order: 0; }
  .story-intro { order: 1; font-size: 13px; margin: -10px 0 0; max-width: 260px; }
  .document-stage { order: 2; height: auto; padding-bottom: calc(63% + 155px); }
  .story-panels { order: 4; margin: 0; min-height: 131px; align-self: stretch; }
  .story-panel h3 { font-size: 20px; margin: 10px 0; }
  .story-panel p { font-size: 12px; }
  .story-cta { order: 5; align-self: flex-start; margin-top: -8px; }
  .specimen-frame { left: 0; top: 42px; width: 100%; padding: 12px; }
  .story-specimen { padding: 12px 13px 9px; }
  .specimen-heading { font-size: 8px; gap: 7px; }
  .specimen-heading > img { width: 21px; height: 21px; }
  .specimen-heading small { font-size: 7px; margin-top: 1px; }
  .specimen-sample { font-size: 7px; padding: 3px 5px; }
  .specimen-body { gap: 17px; margin: 13px 0 10px; }
  .specimen-fields strong { font-size: 11px; }
  .specimen-fields small { font-size: 6px; }
  .specimen-meta { gap: 12px; }
  .specimen-meta strong { font-size: 7px; }
  .specimen-footer { font-size: 6px; padding-top: 6px; }
  .specimen-footer > svg { width: 14px; height: 14px; }
  .story-observation { width: 90%; right: 0; bottom: 31px; padding: 13px 14px; gap: 10px; }
  .story-observation strong { font-size: 14px; }
  .story-observation [data-inspection-note] { font-size: 9px; }
  .observation-symbol { width: 32px; height: 32px; }
  .story-stage-label { font-size: 8px; }
  .story-stage-caption { font-size: 9px; }
  .story-evidence { top: 98px; right: 0; width: 88%; padding: 17px 18px 13px; }
  .evidence-heading { font-size: 12px; }
  .story-evidence-row { font-size: 10px; padding: 11px 0; }
  .story-evidence-foot { font-size: 9px; }
  .story-navigation { order: 3; position: relative; padding-top: 38px; margin-top: 0; }
  .story-play { position: absolute; right: 0; top: -10px; }
  .story-tabs { gap: 12px; }
  .story-tabs > button { min-height: 92px; padding: 14px 0; }
  .story-tabs strong { font-size: 10px; }
  .story-footnote { margin-top: 10px; }
  .document-story + .business-section { padding-top: 68px; }
}
@media (max-width: 360px) {
  .story-copy h2 { font-size: 32px; }
  .specimen-body { gap: 12px; }
  .specimen-fields strong { font-size: 10px; }
  .specimen-meta { gap: 8px; }
  .specimen-meta strong { font-size: 6px; }
  .specimen-heading { font-size: 7px; }
  .story-specimen { padding: 10px 11px 8px; }
  .story-observation { width: 97%; }
  .story-evidence { width: 96%; }
  .story-tabs { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .document-story *, .document-story *::before, .document-story *::after { animation: none !important; transition: none !important; }
}
