/* Page finishing rules; navigation lives in camixel-navigation-20261006.css. */
/* Stories: editorial imagery, a tighter hero, and a clear developer-curated ending. */
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-hero {
  min-height: min(690px, calc(100svh - 88px)) !important;
  border-radius: 24px !important;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-hero-copy {
  padding-block: 150px 92px !important;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-hero h1 {
  font-size: clamp(3.25rem, 6.5vw, 6.1rem) !important;
  max-width: 760px !important;
  line-height: .98 !important;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-hero-media {
  filter: saturate(.82) contrast(1.04) !important;
  object-position: center 48% !important;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-hero-shade {
  background: linear-gradient(90deg, rgba(4,4,4, .92), rgba(4,4,4, .6) 42%, rgba(4,4,4, .1) 100%), linear-gradient(0deg, rgba(4,4,4, .82), transparent 55%) !important;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-intro {
  padding-block: clamp(80px, 9vw, 130px) !important;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-intro-grid {
  margin-bottom: 48px !important;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .story-card {
  border-radius: 20px !important;
  min-height: 460px !important;
  border-color: rgba(255, 255, 255, .14) !important;
  background: #111 !important;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .story-card--feature {
  min-height: 640px !important;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .story-card--wide {
  min-height: 440px !important;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .story-card figure::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, .94), rgba(0, 0, 0, .35) 43%, transparent 78%) !important;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .story-card-copy {
  padding: clamp(25px, 3vw, 40px) !important;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-feature {
  background: #0b0c0c !important;
  padding-block: clamp(80px, 9vw, 130px) !important;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-photo,
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-photo--lead,
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-photo--wide {
  border-radius: 18px !important;
}
body.page-stories .stories-finale {
  background: #080808;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: clamp(88px, 10vw, 140px) 0;
}
body.page-stories .stories-finale .stories-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
:is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-finale h2 {
  margin: 0 0 36px !important;
  color: #f6f6f4 !important;
  font-size: clamp(2.8rem, 6vw, 6rem) !important;
  font-weight: 620 !important;
  line-height: 1 !important;
  letter-spacing: -.055em !important;
}
body.page-stories .stories-finale h2 span { color: #3da57f; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s ease-in-out both page-out; }
::view-transition-new(root) { animation: .22s ease-in-out both page-in; }
@keyframes page-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
/* Native cross-document transitions overlap both pages. The short opacity
   fallback covers local file previews and browsers without that feature. */
body.premium-ui #camixel-page-transition { display: none !important; }
body.premium-ui.page-leaving { opacity: 0; transition: opacity .17s ease; }
body.premium-ui.page-entering main, body.premium-ui.page-entering .footer { animation: none !important; }
body.premium-ui.page-entering { animation: .17s ease-out both page-in; }
@supports (view-transition-name: root) {
  html:not([data-cxn-file-preview]) body.premium-ui.page-leaving { opacity: 1 !important; transition: none !important; }
  html:not([data-cxn-file-preview]) body.premium-ui.page-entering { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  body.premium-ui.page-leaving, body.premium-ui.page-entering { opacity: 1 !important; transition: none !important; animation: none !important; }
}
@media (max-width: 680px) {
  :is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-hero {
    min-height: 650px !important;
    margin: 7px !important;
  }
  :is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-hero-copy { padding-block: 210px 90px !important; }
  :is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-hero h1 { font-size: clamp(2.75rem, 12vw, 4.4rem) !important; }
  :is(html[data-camixel-theme],html) body.page-stories.premium-ui .story-card,
  :is(html[data-camixel-theme],html) body.page-stories.premium-ui .story-card--feature,
  :is(html[data-camixel-theme],html) body.page-stories.premium-ui .story-card--wide { min-height: 430px !important; }
  :is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-photo,
  :is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-photo--lead,
  :is(html[data-camixel-theme],html) body.page-stories.premium-ui .stories-photo--wide { min-height: 360px !important; }
}

/* The factual data-use page follows the existing dark site rhythm. */
body.page-privacy .privacy-hero {
  padding: clamp(110px, 13vw, 180px) 0 clamp(68px, 7vw, 96px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
body.page-privacy .privacy-hero h1 {
  max-width: 820px;
  margin: 22px 0;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.055em;
}
body.page-privacy .privacy-hero p:last-child {
  max-width: 660px;
  color: #b8c0bc;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}
body.page-privacy .privacy-content { padding: clamp(70px, 8vw, 120px) 0; }
body.page-privacy .privacy-copy { max-width: 900px !important; }
body.page-privacy .privacy-copy h2 {
  margin: 44px 0 14px;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.2;
}
body.page-privacy .privacy-copy h2:first-child { margin-top: 0; }
body.page-privacy .privacy-copy p { max-width: 760px; color: #b8c0bc; line-height: 1.75; }
body.page-privacy .privacy-copy a { color: #62c9a1; text-underline-offset: 4px; }

/* Keep section labels sized to their text across the Blackmagic microsites. */
html[data-camixel-theme] body.page-blackmagic .m6-section .section-header > .section-tag {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  align-self: flex-start !important;
}
