/* Shared attachment-backed scroll story. Public rhythm tokens own its shell. */
.home-access[data-home-access] {
  width: 100%;
  max-width: none;
  margin-top: var(--home-access-section-margin, var(--fotogenic-section-start));
  --home-access-story-height: min(800px, calc(100svh - 112px));
  color: #111217;
  font-family: var(--fotogenic-font-sans);
  scroll-margin-top: 112px;
  overflow-anchor: none;
}
.home-access--embedded {
  --home-access-section-margin: var(--fotogenic-content-gap);
  --home-access-shell-width: 100%;
  --home-access-copy-background: #faf9fc;
}
.home-access--expanded-media {
  --home-access-reading-width: 1200px;
  --home-access-shell-width: min(var(--home-access-reading-width), calc(100% - 2 * var(--fotogenic-page-gutter, 24px)));
}
.home-access--wide-media.is-story:not(.is-compact-story) {
  --home-access-columns: minmax(0, 440px) minmax(0, 1fr);
  --home-access-shell-width: min(1132px, calc(100% - 64px));
  --home-access-shell-fit: calc(472px + (var(--home-access-story-height) - 56px) * var(--home-access-media-ratio, 1.5));
}
.home-access--wide-media .home-access__headline span { text-wrap: balance; }
.home-access__shell { width: min(1600px, var(--home-access-shell-width, calc(100% - 64px))); margin-inline: auto; }
.home-access__workflows {
  display: grid;
  grid-template-columns: var(--home-access-columns, minmax(0, 2fr) minmax(0, 3fr));
  column-gap: 32px;
  row-gap: var(--fotogenic-content-gap);
}
.home-access__chapters, .home-access__visuals, .home-access__window { display: contents; }
.home-access__workflow {
  grid-column: 1;
  align-self: center;
  min-width: 0;
  scroll-margin-top: 112px;
}
.home-access__copy { width: min(100%, 440px); min-width: 0; margin-left: auto; }
.home-access__workflow, .home-access__frame { grid-row: var(--home-access-chapter); }
.home-access .home-access__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
  color: #111217;
  font-size: var(--home-access-eyebrow-size, 18px);
  font-weight: 650;
  line-height: 1.4;
}
.home-access .home-access__eyebrow--step {
  --home-access-eyebrow-size: 12px;
  color: var(--fotogenic-muted);
  line-height: 1.5;
  letter-spacing: .1em;
}
.home-access__icon {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #e7e1f2;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f5f0fc);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px #21173508;
}
.home-access .home-access__icon img, .home-access__brand { display: block; width: 28px; height: 28px; }
.home-access__badge {
  padding: 4px 7px;
  border: 1px solid #ded5ec;
  border-radius: 6px;
  background: #f8f5fc;
  color: #69449d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.home-access .home-access__headline {
  margin: 0;
  color: #111217;
  font-family: var(--fotogenic-font-sans);
  font-size: var(--fotogenic-type-section-title);
  font-weight: 700;
  line-height: var(--fotogenic-leading-title);
  letter-spacing: -.035em;
}
.home-access__headline span { display: block; }
.home-access__headline span:last-child { width: fit-content; }
.home-access .home-access__detail { margin: var(--fg-section-intro-margin); }
.home-access:not(:lang(en)):not(:dir(rtl)) { --home-access-intro-measure: 35ch; }
.home-access__detail {
  --fg-section-intro-width: var(--home-access-intro-measure, 30ch);
  --fg-section-intro-color: #4d5264;
  --fg-section-intro-margin: var(--fotogenic-title-intro-gap) 0 0;
}
.home-access .home-access__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 16px;
  color: #111217;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: #c8b8e1;
  text-underline-offset: 5px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.home-access .home-access__link-arrow {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  rotate: -45deg;
  transition: translate 180ms ease;
}
.home-access .home-access__link:hover { color: #69449d; text-decoration-color: #69449d; }
.home-access__link:hover .home-access__link-arrow { translate: 2px -2px; }
.home-access__link:focus-visible { outline: 2px solid #69449d; outline-offset: 4px; }
.home-access .home-access__link--disabled {
  padding: 0;
  border: 0;
  background: none;
  color: #767b89;
  font-family: inherit;
  text-decoration: none;
  cursor: not-allowed;
}
.home-access__frame {
  grid-column: 2;
  align-self: center;
  position: relative;
  min-width: 0;
  width: 100%;
  margin: 0;
  aspect-ratio: var(--home-access-media-ratio, 3 / 2);
  overflow: hidden;
}
/* Every chapter shares the same complete native artwork canvas. */
.home-access .home-access__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-access .home-access__image-link { position: absolute; inset: 0; display: block; }
.home-access .home-access__image-link:focus-visible { outline: 2px solid #69449d; outline-offset: -4px; }
.home-access__frame[data-media-state="loading"] .home-access__image,
.home-access__frame[data-media-state="error"] .home-access__image { visibility: hidden; }
.home-access__story-meter { display: none; }
/* The native reading layout remains the baseline. JavaScript enables the stage. */
/* Fit the shared native canvas and meter inside the viewport stage. */
.home-access.is-story:not(.is-compact-story) .home-access__shell {
  width: min(1600px, var(--home-access-shell-width, calc(100% - 64px)), var(--home-access-shell-fit, calc(32px + (var(--home-access-story-height) - 56px) * var(--home-access-media-ratio, 1.5) * 5 / 3)));
}
.home-access.is-story .home-access__workflows {
  grid-template-columns: var(--home-access-columns, minmax(0, 2fr) minmax(0, 3fr));
  align-items: start;
  row-gap: 0;
}
.home-access.is-story:not(.is-compact-story) .home-access__copy { width: min(100%, 440px); margin-left: auto; }
.home-access.is-story:not(.is-compact-story) .home-access__detail { --fg-section-intro-width: var(--home-access-intro-measure, 30ch); }
.home-access.is-story .home-access__chapters { display: block; grid-column: 1; grid-row: 1; }
.home-access.is-story .home-access__workflow {
  display: flex;
  align-items: center;
  min-height: var(--home-access-story-height);
}
.home-access.is-story .home-access__visuals {
  position: relative;
  display: grid;
  grid-column: 2;
  grid-row: 1;
  height: var(--home-access-story-height);
  min-width: 0;
  align-self: start;
  isolation: isolate;
}
.home-access.is-story .home-access__visuals[data-stage-pinned] {
  position: fixed;
  top: var(--home-access-stage-top);
  left: var(--home-access-stage-left);
  width: var(--home-access-stage-width);
}
.home-access.is-story .home-access__window {
  display: block;
  position: relative;
  grid-area: 1 / 1;
  align-self: center;
  width: 100%;
  aspect-ratio: var(--home-access-media-ratio, 3 / 2);
  overflow: hidden;
  border-radius: var(--fotogenic-button-radius);
  isolation: isolate;
}
.home-access.is-story .home-access__frame {
  position: absolute;
  inset: 0;
  height: 100%;
  max-width: none;
  opacity: 0;
  pointer-events: none;
}
.home-access.is-story .home-access__frame[data-story-active] { pointer-events: auto; }
.home-access.is-story .home-access__story-meter {
  position: absolute;
  top: max(0px, calc(50% - var(--home-access-stage-window, 0px) / 2 - 40px));
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #111217;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.home-access__story-total { color: #727687; font-weight: 500; }
.home-access__story-label { margin-right: auto; }
.home-access__story-track { width: 96px; height: 3px; overflow: hidden; border-radius: 2px; background: #e8e5ed; }
.home-access__story-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--fotogenic-heading-gradient);
  transform-origin: left;
}
/* Grow the media column while preserving the original reading-column position. */
@media (min-width: 1280px) {
  .home-access--expanded-media {
    --home-access-shell-width: calc(100% - 64px);
    --home-access-columns: minmax(0, calc((100% - var(--home-access-reading-width)) / 2 + (var(--home-access-reading-width) - 32px) * 2 / 5)) minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .home-access__workflows { grid-template-columns: minmax(0, 1fr); }
  .home-access__workflow, .home-access__frame { grid-column: 1; }
  .home-access__workflow { grid-row: calc(var(--home-access-chapter) * 2 - 1); }
  .home-access__frame { grid-row: calc(var(--home-access-chapter) * 2); }
  .home-access__copy { width: 100%; margin-left: 0; }
  .home-access__detail { --fg-section-intro-width: var(--home-access-intro-measure, 30ch); }
  .home-access__frame { max-width: 840px; margin-inline: auto; }
}
/* Portrait story uses the same phase with one image and its original copy. */
.home-access.is-compact-story .home-access__shell { width: min(840px, var(--home-access-shell-width, calc(100% - 64px))); }
.home-access.is-compact-story .home-access__workflows {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  isolation: isolate;
}
.home-access.is-compact-story .home-access__workflow { display: block; }
.home-access.is-compact-story .home-access__visuals {
  grid-column: 1;
  grid-template-rows: var(--home-access-compact-image-height) minmax(0, 1fr);
  box-sizing: border-box;
  padding-top: 28px;
  z-index: 1;
  pointer-events: none;
}
.home-access.is-compact-story .home-access__window {
  width: var(--home-access-compact-image-width, 100%);
  align-self: center;
  justify-self: center;
}
.home-access.is-compact-story .home-access__story-meter { top: 0; }
.home-access.is-compact-story .home-access__copy {
  position: absolute;
  top: var(--home-access-compact-copy-top);
  left: calc((100% - min(100%, 520px)) / 2);
  width: min(100%, 520px);
  min-height: var(--home-access-compact-copy-height);
  margin: 0;
  background: var(--home-access-copy-background, #fff);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}
.home-access.is-compact-story[data-story-pinned] .home-access__copy {
  position: fixed;
  top: var(--home-access-compact-copy-viewport-top);
  left: var(--home-access-compact-copy-left);
  width: var(--home-access-compact-copy-width);
}
@media (max-width: 767px) {
  .home-access[data-home-access], .home-access__workflow { scroll-margin-top: 96px; }
  .home-access__shell, .home-access.is-compact-story .home-access__shell { width: var(--home-access-shell-width, calc(100% - 40px)); }
  .home-access .home-access__eyebrow { margin-bottom: 20px; font-size: var(--home-access-eyebrow-size, 16px); }
  .home-access__icon { flex-basis: 44px; width: 44px; height: 44px; }
  .home-access .home-access__icon img, .home-access__brand { width: 26px; height: 26px; }
  .home-access__badge { margin-left: auto; }
  .home-access__link { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-access .home-access__link, .home-access .home-access__link-arrow { transition: none; }
}
@media (forced-colors: active) {
  .home-access__icon, .home-access__badge { border-color: CanvasText; }
}
