/*
  [CONTRACT]: Each image chapter resolves its full-bleed shade and optional local typography from its own theme-editor settings; the deck remains full-screen only for motion-safe precision-pointer contexts.
  [TYPOGRAPHY]: Optional per-photo CSS variables override title, lead, and CTA sizes by desktop/mobile band; absent values retain the calibrated defaults.
  [INPUT]: 依赖 OEM story markup、主题 viewport 与 Control Map 组件样式
  [OUTPUT]: 对外提供全屏 deck、章节蒙版、排版、证据栏、Routes 与响应式阅读降级
  [POS]: OEM story 基础视觉层，Control Map 由兄弟样式文件负责，Header 对比状态交由 controller
  [PROTOCOL]: 变更时更新此头部，然后检查 CLAUDE.md
*/
.fominte-oem-story {
  --oem-black: #080b0c;
  --oem-ink: #15191a;
  --oem-white: #f5f3ee;
  --oem-muted: rgb(245 243 238 / 70%);
  --oem-line: rgb(245 243 238 / 22%);
  --oem-copper: #d79b78;
  --oem-height: 100svh;
  position: relative;
  overflow: hidden;
  background: var(--oem-black);
  color: var(--oem-white);
  font-family: var(--font-body-family, Arial, sans-serif);
}

.fominte-oem-story * {
  box-sizing: border-box;
}

/* OEM owns a full-bleed story deck, so its global Header stays fixed above it. */
body:has([data-fominte-oem-story]) {
  background: var(--oem-black, #080b0c);
}

body:has([data-fominte-oem-story]) theme-sticky-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  width: 100%;
  animation: none;
}

body:has([data-fominte-oem-story]) .header-section {
  background-color: rgb(9 12 13 / 42%) !important;
}

body:has([data-fominte-oem-story]) .footer {
  --color-background: 8, 11, 12;
  --color-text: 245, 243, 238;

  color: var(--oem-white, #f5f3ee);
  background: var(--oem-black, #080b0c);
}

body:has([data-fominte-oem-story]) .footer a,
body:has([data-fominte-oem-story]) .footer__custom-text,
body:has([data-fominte-oem-story]) .footer__custom-text-title,
body:has([data-fominte-oem-story]) .footer__navigation-title,
body:has([data-fominte-oem-story]) .footer__navigation-item a {
  color: var(--oem-white, #f5f3ee) !important;
}

body:has([data-fominte-oem-story]) .footer__image img {
  filter: brightness(0) invert(1);
}

.fominte-oem-story__viewport {
  position: relative;
  height: var(--oem-height);
  overflow: hidden;
}

.fominte-oem-story__track {
  height: var(--oem-height);
  transition: transform 900ms cubic-bezier(.2, .75, .2, 1);
  will-change: transform;
}

.fominte-oem-story__scene {
  position: relative;
  display: flex;
  height: var(--oem-height);
  min-height: var(--oem-height);
  overflow: hidden;
  isolation: isolate;
  background: var(--oem-black);
}

.fominte-oem-story__media,
.fominte-oem-story__shade {
  position: absolute;
  inset: 0;
}

.fominte-oem-story__media {
  z-index: 0;
}

.fominte-oem-story__media img,
.fominte-oem-story__media svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fominte-oem-story__media--mobile {
  display: none;
}

.fominte-oem-story__shade {
  z-index: 1;
  background: rgb(5 8 9 / var(--fominte-oem-scene-overlay, 12%));
}

.fominte-oem-story__content {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: min(55%, 760px);
  padding: clamp(56px, 10vh, 120px) clamp(28px, 7vw, 112px) clamp(132px, 17vh, 180px);
}

.fominte-oem-story__content h1,
.fominte-oem-story__content h2,
.fominte-oem-story__content .fominte-oem-story__lead,
.fominte-oem-story__evidence,
.fominte-oem-story__route-copy {
  text-shadow: 0 2px 18px rgb(5 8 9 / 72%);
}

.fominte-oem-story__eyebrow,
.fominte-oem-story__route-label,
.fominte-oem-story__detail-kicker {
  display: block;
  color: var(--oem-copper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.fominte-oem-story h1,
.fominte-oem-story h2,
.fominte-oem-story h3,
.fominte-oem-story p {
  margin: 0;
}

.fominte-oem-story h1,
.fominte-oem-story h2 {
  max-width: 810px;
  margin-top: 18px;
  font-size: var(--fominte-oem-title-size-desktop, 70px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
}

.fominte-oem-story h1 {
  font-size: var(--fominte-oem-title-size-desktop, 84px);
}

.fominte-oem-story__lead {
  max-width: 580px;
  margin-top: 24px !important;
  color: rgb(245 243 238 / 78%);
  font-size: var(--fominte-oem-lead-size-desktop, 16px);
  line-height: 1.65;
}

.fominte-oem-story__button,
.fominte-oem-story__route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 22px;
  border: 1px solid var(--oem-copper);
  background: var(--oem-copper);
  color: var(--oem-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.fominte-oem-story__button {
  font-size: var(--fominte-oem-cta-size-desktop, 11px);
}

.fominte-oem-story__button:hover,
.fominte-oem-story__route-card:hover .fominte-oem-story__route-link {
  border-color: #a95f3a;
  background: #a95f3a;
  color: var(--oem-white);
}

#oem-material .fominte-oem-story__content,
#oem-production .fominte-oem-story__content {
  margin-left: auto;
}

.fominte-oem-story__evidence {
  position: absolute;
  right: clamp(28px, 5vw, 80px);
  bottom: 42px;
  left: clamp(28px, 5vw, 80px);
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) 1fr auto;
  gap: 28px;
  align-items: end;
  padding-top: 18px;
  border-top: 1px solid var(--oem-line);
  color: var(--oem-muted);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease 560ms, transform 700ms cubic-bezier(.2, .75, .2, 1) 560ms;
}

.fominte-oem-story__scene.is-active .fominte-oem-story__evidence {
  opacity: 1;
  transform: translateY(0);
}

.fominte-oem-story__evidence p,
.fominte-oem-story__evidence span,
.fominte-oem-story__evidence li {
  font-size: 11px;
  line-height: 1.5;
}

.fominte-oem-story__evidence ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fominte-oem-story__evidence li::before {
  margin-right: 8px;
  color: var(--oem-copper);
  content: "/";
}

.fominte-oem-story__progress {
  position: absolute;
  top: 50%;
  right: 24px;
  z-index: 4;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.fominte-oem-story__progress a {
  display: block;
  width: 22px;
  height: 2px;
  background: rgb(245 243 238 / 35%);
  transition: width 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.fominte-oem-story__progress a.is-active {
  width: 34px;
  background: var(--oem-white);
  transform: translateX(-12px);
}

.fominte-oem-story__hint {
  position: absolute;
  right: 28px;
  bottom: 12px;
  left: 28px;
  color: rgb(245 243 238 / 48%);
  font-size: 10px;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 400ms ease;
}

.fominte-oem-story__hint.is-hidden {
  opacity: 0;
}

.fominte-oem-story__scene--routes {
  display: block;
  padding: 0;
  background: var(--oem-black);
  color: var(--oem-white);
}

.fominte-oem-story__route-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-height: var(--oem-height);
}

.fominte-oem-story__route-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: var(--oem-height);
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(130px, 16vh, 170px) clamp(36px, 4vw, 64px) clamp(48px, 7vh, 72px);
  background: var(--oem-ink);
  color: var(--oem-white);
  text-decoration: none;
}

.fominte-oem-story__route-card + .fominte-oem-story__route-card {
  border-left: 1px solid rgb(245 243 238 / 28%);
}

.fominte-oem-story__route-media {
  position: absolute;
  inset: 0;
}

.fominte-oem-story__route-media img,
.fominte-oem-story__route-media svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1.035);
  transition: opacity 550ms cubic-bezier(.2, .75, .2, 1), transform 800ms cubic-bezier(.2, .75, .2, 1);
}

.fominte-oem-story__route-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(5 8 9 / var(--fominte-oem-route-overlay, 12%));
  content: "";
  transition: background-color 350ms ease;
}

.fominte-oem-story__route-card:hover .fominte-oem-story__route-media img,
.fominte-oem-story__route-card:focus-visible .fominte-oem-story__route-media img {
  opacity: 1;
  transform: scale(1);
}

.fominte-oem-story__route-card:focus-visible {
  outline: 2px solid var(--oem-copper);
  outline-offset: -2px;
}

.fominte-oem-story__route-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 520px);
  padding: 0;
}

.fominte-oem-story__route-copy h2 {
  margin-top: 14px;
  font-weight: 500;
  line-height: 1.02;
}

.fominte-oem-story__route-copy p {
  max-width: 420px;
  margin-top: 20px;
  color: rgb(245 243 238 / 74%);
}

.fominte-oem-story__route-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-top: 0 solid rgb(245 243 238 / 32%);
  color: rgb(245 243 238 / 72%);
  font-size: 10px;
  font-weight: 700;
  list-style: none;
  text-transform: uppercase;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: max-height 350ms cubic-bezier(.2, .75, .2, 1), margin 350ms cubic-bezier(.2, .75, .2, 1), padding 350ms cubic-bezier(.2, .75, .2, 1), border-width 350ms cubic-bezier(.2, .75, .2, 1), opacity 250ms ease, transform 350ms cubic-bezier(.2, .75, .2, 1);
}

.fominte-oem-story__route-card:hover .fominte-oem-story__route-proof,
.fominte-oem-story__route-card:focus-visible .fominte-oem-story__route-proof {
  max-height: 70px;
  margin-top: 24px;
  padding-top: 16px;
  border-top-width: 1px;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.fominte-oem-story__route-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 0 18px;
  border: 1px solid rgb(245 243 238 / 68%);
  background: transparent;
  color: var(--oem-white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .fominte-oem-story__track,
  .fominte-oem-story__evidence,
  .fominte-oem-story__progress a,
  .fominte-oem-story__hint,
  .fominte-oem-story__route-media img,
  .fominte-oem-story__route-card::after,
  .fominte-oem-story__route-proof,
  .fominte-oem-story__route-link {
    transition: none;
  }
}

/* Keep all story chapters reachable when the deck controller is intentionally inactive. */
@media (min-width: 901px) and (prefers-reduced-motion: reduce),
  (min-width: 901px) and (hover: none),
  (min-width: 901px) and (pointer: coarse),
  (min-width: 901px) and (pointer: none) {
  .fominte-oem-story {
    overflow: visible;
  }

  .fominte-oem-story__viewport {
    height: auto;
    overflow: visible;
  }

  .fominte-oem-story__track {
    height: auto;
    transform: none !important;
    transition: none;
  }

  .fominte-oem-story__scene--control {
    height: auto;
    min-height: var(--oem-height);
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .fominte-oem-story {
    overflow: visible;
  }

  .fominte-oem-story__viewport {
    height: auto;
    overflow: visible;
  }

  .fominte-oem-story__track {
    height: auto;
    transform: none !important;
    transition: none;
  }

  .fominte-oem-story__scene {
    min-height: 760px;
  }

  .fominte-oem-story__media--desktop {
    display: none;
  }

  .fominte-oem-story__media--mobile {
    display: block;
  }

  .fominte-oem-story__content {
    width: 100%;
    padding: 120px 28px 150px;
  }

  .fominte-oem-story h1,
  .fominte-oem-story h2 {
    font-size: 60px;
  }

  .fominte-oem-story__evidence {
    right: 28px;
    bottom: 40px;
    left: 28px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fominte-oem-story__evidence ul {
    display: grid;
    gap: 4px;
  }

  .fominte-oem-story__progress,
  .fominte-oem-story__hint {
    display: none;
  }

  .fominte-oem-story__scene--routes {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
  }

  .fominte-oem-story__route-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .fominte-oem-story__route-card {
    min-height: min(86svh, 700px);
    padding: 112px 40px;
  }

  .fominte-oem-story__route-card + .fominte-oem-story__route-card {
    border-top: 1px solid var(--oem-line);
    border-left: 0;
  }

  .fominte-oem-story__route-media img,
  .fominte-oem-story__route-media svg {
    opacity: 1;
    transform: none;
  }

  .fominte-oem-story__route-proof {
    max-height: 72px;
    margin-top: 22px;
    padding-top: 16px;
    border-top-width: 1px;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .fominte-oem-story__scene {
    min-height: 720px;
  }

  .fominte-oem-story__content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .fominte-oem-story__evidence {
    right: 20px;
    left: 20px;
  }

  .fominte-oem-story__route-card {
    min-height: 74svh;
    padding: 96px 24px 112px;
  }

  .fominte-oem-story h1,
  .fominte-oem-story h2 {
    font-size: 40px;
  }
}

/* OEM concept typography parity. */
.fominte-oem-story {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

.fominte-oem-story :is(h1, h2, h3, p, ul) {
  letter-spacing: 0;
}

.fominte-oem-story h1,
.fominte-oem-story h2,
.fominte-oem-story h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.fominte-oem-story__eyebrow,
.fominte-oem-story__route-label,
.fominte-oem-story__detail-kicker {
  letter-spacing: 0;
  line-height: 1.45;
}

.fominte-oem-story__lead,
.fominte-oem-story__button,
.fominte-oem-story__route-link {
  line-height: 1.45;
}

.fominte-oem-story__evidence > p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.fominte-oem-story__evidence li {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
}

.fominte-oem-story__evidence > span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

.fominte-oem-story__hint {
  letter-spacing: 0;
  line-height: 1.45;
}

.fominte-oem-story__route-copy h2 {
  font-size: 60px;
  font-weight: 500;
  line-height: 1.02;
  text-transform: none;
}

.fominte-oem-story__route-copy p {
  font-size: 15px;
  line-height: 1.45;
}

.fominte-oem-story__scene--closing h2 {
  font-size: var(--fominte-oem-title-size-desktop, 74px);
}

@media (min-width: 901px) {
  .fominte-oem-story__content {
    padding-right: clamp(20px, 3vw, 72px);
    padding-left: clamp(20px, 3vw, 72px);
  }
}

@media (min-width: 901px) and (max-width: 1040px) {
  .fominte-oem-story h1 {
    font-size: var(--fominte-oem-title-size-desktop, 68px);
  }

  .fominte-oem-story h2,
  .fominte-oem-story__scene--closing h2 {
    font-size: var(--fominte-oem-title-size-desktop, 58px);
  }

  .fominte-oem-story__route-copy h2 {
    font-size: 50px;
  }
}

@media (max-width: 900px) {
  .fominte-oem-story h1 {
    font-size: var(--fominte-oem-title-size-mobile, 54px);
  }

  .fominte-oem-story h2 {
    font-size: var(--fominte-oem-title-size-mobile, 48px);
  }

  .fominte-oem-story__route-copy h2 {
    font-size: 48px;
  }

  .fominte-oem-story__lead {
    font-size: var(--fominte-oem-lead-size-mobile, 15px);
  }

  .fominte-oem-story__scene--closing h2 {
    font-size: var(--fominte-oem-title-size-mobile, 50px);
  }

  .fominte-oem-story__button {
    font-size: var(--fominte-oem-cta-size-mobile, 11px);
  }
}

@media (max-width: 640px) {
  .fominte-oem-story h1,
  .fominte-oem-story h2 {
    font-size: var(--fominte-oem-title-size-mobile, 42px);
  }

  .fominte-oem-story__route-copy h2 {
    font-size: 42px;
  }

  .fominte-oem-story__scene--closing h2 {
    font-size: var(--fominte-oem-title-size-mobile, 44px);
  }
}
