/* At the top, the actual artwork shows through between the controls. As content
   scrolls behind the header, a feathered frosted layer protects legibility. */
html[data-panorama] body.layout-web .site-head {
  --ja-header-color: 10 10 11;
  --ja-header-solid: #0c0c10;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition-property: opacity;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-panorama][data-theme="light"] body.layout-web .site-head {
  --ja-header-color: 246 243 238;
  --ja-header-solid: #f6f3ee;
}
/* Dark detail artwork still needs a light backing behind the ink wordmark. */
html[data-panorama][data-theme="light"] body.layout-web .site-head:not(.over-feature) {
  --ja-header-floor: .94;
}
html[data-panorama] body.layout-web .site-head::after {
  content: "";
  position: absolute;
  inset: 0 0 -14px;
  z-index: -1;
  pointer-events: none;
  background: rgb(var(--ja-header-color) / .60);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 18px), transparent);
  opacity: max(var(--ja-header-floor, 0), var(--ja-header-progress, 1));
}
html[data-panorama][data-theme="light"] body.layout-web .site-head.over-feature :is(.primary-nav, .header-tools:not(:has(.header-search.is-open))) {
  background: rgb(67 62 53 / .075);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .42);
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
  backdrop-filter: blur(12px) saturate(1.18);
}
html[data-panorama][data-theme="light"] body.layout-web .site-head.over-feature .primary-nav a[aria-current="page"] {
  color: #151412;
  background: rgb(255 255 255 / .76);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .65), 0 1px 3px rgb(41 36 29 / .06);
}

/* The page supplies the continuous warm base underneath the artwork. */
html[data-panorama][data-theme="light"] body.layout-web #feature {
  --featured-paper: #f6f3ee;
  --featured-ink: #151412;
  --featured-muted: #504c46;
  --featured-inset: var(--gutter, var(--ja-gutter, 20px));
  --featured-art-width: clamp(146px, 22vw, 224px);
  --featured-head-space: var(--panorama-header-space, 78px);
  --panorama-hero-ink: var(--featured-ink);
  --panorama-hero-muted: var(--featured-muted);
  --panorama-hero-action: var(--featured-ink);
  --panorama-hero-action-ink: var(--featured-paper);
  --ink: var(--featured-ink);
  --focus: var(--featured-ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  box-sizing: border-box;
  block-size: auto;
  min-block-size: clamp(430px, 57svh, 600px);
  padding-block: calc(var(--featured-head-space) + env(safe-area-inset-top, 0px) + 20px) 82px;
  color: var(--featured-ink);
  background: transparent;
}
html[data-panorama][data-theme="light"] body.layout-web #feature::after {
  content: none;
}
html[data-panorama][data-theme="light"] body.layout-web #feature #feature-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--featured-art-width);
  column-gap: clamp(14px, 4vw, 64px);
  align-items: center;
  inline-size: min(calc(100% - 2 * var(--featured-inset)), var(--max, var(--ja-max, 1380px)));
  margin-inline: auto;
}
html[data-panorama][data-theme="light"] body.layout-web #feature :is(.feature-wash, .feature-backdrop) {
  filter: blur(46px) saturate(1.12);
  transform: scale(1.08);
  opacity: 1;
  /* The mask also caps the tint while slides cross-fade. */
  --featured-tint-mask: linear-gradient(rgb(0 0 0 / .12), rgb(0 0 0 / .24) 42%, rgb(0 0 0 / .23) 58%, rgb(0 0 0 / .06) 84%, transparent 96%);
  -webkit-mask-image: var(--featured-tint-mask);
  mask-image: var(--featured-tint-mask);
}
html[data-panorama][data-theme="light"] body.layout-web #feature #feature-slide .feature-portrait,
html[data-panorama][data-theme="light"] body.layout-web #feature #feature-slide:not(:has(.feature-portrait)) .feature-backdrop:not(.feature-held, .feature-outgoing) {
  grid-area: 1 / 2;
  display: block;
  position: static;
  z-index: 0;
  inline-size: 100%;
  block-size: auto;
  max-inline-size: 100%;
  max-block-size: calc(var(--featured-art-width) * 1.45);
  object-fit: contain;
  object-position: right center;
  border-radius: 0;
  transform: none;
  filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 9%);
  mask-image: linear-gradient(90deg, transparent, black 9%);
}
html[data-panorama][data-theme="light"] body.layout-web #feature #feature-slide .feature-copy {
  grid-area: 1 / 1;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: none;
  margin: 0;
  padding: 0;
  color: var(--featured-ink);
  text-shadow: none;
}
html[data-panorama][data-theme="light"] body.layout-web #feature .feature-copy > * {
  max-inline-size: min(100%, 42rem);
}
html[data-panorama][data-theme="light"] body.layout-web #feature :is(.feature-label, .feature-meta, .feature-summary) {
  color: var(--featured-muted);
}
html[data-panorama][data-theme="light"] body.layout-web #feature .feature-label::before {
  background: currentColor;
}
html[data-panorama][data-theme="light"] body.layout-web #feature .feature-score {
  color: #654424;
}
html[data-panorama][data-theme="light"] body.layout-web #feature .action.primary {
  color: var(--featured-paper);
  background: var(--featured-ink);
  box-shadow: none;
}
html[data-panorama][data-theme="light"] body.layout-web #feature .action.secondary {
  color: var(--featured-ink);
  background: rgb(255 255 255 / .54);
  border-color: rgb(21 20 18 / .15);
}
html[data-panorama][data-theme="light"] body.layout-web #feature .feature-controls {
  --feature-control-ink: var(--featured-ink);
  --feature-control-face: transparent;
  --feature-control-hover: rgb(21 20 18 / .08);
  inset-block-end: 27px;
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-panorama][data-theme="light"] body.layout-web #feature .feature-arrow {
  color: var(--featured-ink);
}
html[data-panorama][data-theme="light"] body.layout-web #feature .feature-track {
  background: rgb(21 20 18 / .24);
}
html[data-panorama][data-theme="light"] body.layout-web #feature .feature-fill {
  background: var(--featured-ink);
}
@media (max-width: 760px) {
  html[data-panorama][data-theme="light"] body.layout-web #feature {
    --featured-art-width: clamp(90px, 32vw, 162px);
    --featured-head-space: 120px;
    min-block-size: clamp(388px, 55svh, 490px);
    padding-block-end: 66px;
  }
  html[data-panorama][data-theme="light"] body.layout-web #feature .feature-summary {
    display: none;
  }
  html[data-panorama][data-theme="light"] body.layout-web #feature .feature-controls {
    inset-block-end: 12px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  html[data-panorama] body.layout-web .site-head {
    background: var(--ja-header-solid);
  }
  html[data-panorama] body.layout-web .site-head::after {
    content: none;
  }
  html[data-panorama][data-theme="light"] body.layout-web .site-head.over-feature :is(.primary-nav, .header-tools:not(:has(.header-search.is-open))) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  html[data-panorama][data-theme="light"] body.layout-web #feature :is(.feature-wash, .feature-backdrop) {
    visibility: hidden;
  }
  html[data-panorama][data-theme="light"] body.layout-web #feature #feature-slide:not(:has(.feature-portrait)) .feature-backdrop:not(.feature-held, .feature-outgoing) {
    visibility: visible;
  }
}
