/* a11y.css: styles of the accessibility switches (see static/js/a11y.js). Everything is scoped by html[data-a11y-*], so with the switches 'off' this file changes nothing. */

/* ---- pause button (WCAG 2.2.2) ---- */
.a11y-pause { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font: inherit; color: inherit; cursor: pointer }
/* A: in the footer, same grey and size as the footer links */
.a11y-pause-A { min-height: 44px; font-size: 14px; color: #9C9C97; text-decoration: underline }
.a11y-pause-A:hover { color: #FAFAF9 }
/* A: second button right after the skip link, only visible on keyboard focus */
.a11y-pause-A-top { position: absolute; left: 12px; top: -80px; z-index: 1000; min-height: 44px; padding: 0 16px; background: #FAFAF9; color: #0D0D0D; font-family: Epilogue, sans-serif; font-size: 14px }
.a11y-pause-A-top:focus { top: 12px; left: 190px; outline: 2px solid #E9642B; outline-offset: 2px }
.a11y-pause-A-top span { text-decoration: none }
/* B: on the picture itself, bottom right; 44 px target with a 32 px dark disc */
.a11y-pause-B { position: absolute; right: 8px; bottom: 8px; z-index: 15; width: 44px; height: 44px; color: #FAFAF9 }
.a11y-pause-B::before { content: ""; position: absolute; left: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(13,13,13,.78); border: 1px solid rgba(250,250,249,.55) }
.a11y-pause-B svg { position: relative }
#filmed > .a11y-pause-B { top: 50%; bottom: auto; margin-top: -22px }

/* ---- contrast of text over photo/video (WCAG 1.4.3) ---- */
/* the three places: (1) the Home header over the hero photo, (2) the small label above the hero title of Business/Creative, (3) the title label in the film frame (TNF, CORPUS ...),
   (4) small marked text (white on an orange marker, 3.2:1: tagged data-dcx-sm by a11y.js) */

/* A: soft dark scrim under the text */
html[data-a11y-contrast="A"] #root header[style*="position: absolute"] { background: linear-gradient(180deg, rgba(13,13,13,.94) 0%, rgba(13,13,13,.9) 55%, rgba(13,13,13,0) 100%) !important }
html[data-a11y-contrast="A"] #top > div:first-child > div[style*="linear-gradient"] { background: linear-gradient(180deg, rgba(13,13,13,.1) 0%, rgba(13,13,13,.34) 40%, rgba(13,13,13,.95) 82%, rgba(13,13,13,.95) 100%) !important }
html[data-a11y-contrast="A"] [data-bnr] > div[style*="linear-gradient"] > div > div { position: relative; isolation: isolate }
html[data-a11y-contrast="A"] [data-bnr] > div[style*="linear-gradient"] > div > div::before { content: ""; position: absolute; z-index: -1; left: -100vw; right: -100vw; top: -70px; bottom: -100px; background: linear-gradient(180deg, rgba(13,13,13,0) 0, rgba(13,13,13,.93) 70px, rgba(13,13,13,.93) 100%) }
html[data-a11y-contrast="A"] [data-film-frame]::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 110px; background: linear-gradient(180deg, rgba(13,13,13,.9) 0, rgba(13,13,13,.9) 40%, rgba(13,13,13,0) 100%); pointer-events: none }
html[data-a11y-contrast="A"] [data-film-frame] > span[style*="Anton"] { z-index: 2 }
html[data-a11y-contrast="A"] [data-film-frame] > button { z-index: 3 }
html[data-a11y-contrast="A"] [data-film-frame] > button::before { content: ""; position: absolute; z-index: -1; left: -60px; right: -60px; top: -40px; bottom: -40px; background: radial-gradient(closest-side, rgba(13,13,13,.9) 0, rgba(13,13,13,.9) 55%, rgba(13,13,13,0) 100%) }
html[data-a11y-contrast="A"] [data-film-frame] > button { isolation: isolate }
html[data-a11y-contrast="A"] #split a > span[aria-hidden="true"] { background: linear-gradient(180deg, rgba(13,13,13,0) 15%, rgba(13,13,13,.86) 45%, rgba(13,13,13,.93) 100%) !important }
html[data-a11y-contrast="A"] [data-dcx-sm] { background-position: 0 .87em !important; background-size: 100% .07em !important }

/* B: solid dark patch behind the text */
html[data-a11y-contrast="B"] #root header[style*="position: absolute"] { background: rgba(13,13,13,.92) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px) }
html[data-a11y-contrast="B"] #top a[style*="text-transform: uppercase"] { padding: 0 10px; background: rgba(13,13,13,.9) }
html[data-a11y-contrast="B"] [data-bnr] p:has(+ h1) { width: fit-content; padding: 4px 10px; background: rgba(13,13,13,.92) }
html[data-a11y-contrast="B"] [data-film-frame] > span[style*="Anton"] { padding: 4px 10px; background: rgba(13,13,13,.9) }
html[data-a11y-contrast="B"] [data-film-frame] > button > span:last-child { padding: 4px 10px; background: rgba(13,13,13,.9) }
html[data-a11y-contrast="B"] #split a > span[style*="flex-direction: column"] { box-sizing: border-box; padding: 12px 14px; margin: 0 -14px -12px; background: rgba(13,13,13,.9) }
html[data-a11y-contrast="B"] [data-dcx-sm] { color: #0D0D0D !important; background-position: 0 0 !important; background-size: 100% 100% !important }

/* ---- cold open (WCAG 2.3.1) ---- */
@keyframes a11y-cofade { from { opacity: 0 } to { opacity: 1 } }
/* B: the pictures dissolve into each other and the word screens fade in, no hard cuts */
html[data-a11y-intro="B"] [data-co-curtain] > img { transition: opacity .34s linear }
html[data-a11y-intro="B"] [data-co-curtain] > div:not([aria-hidden]) { animation: a11y-cofade .34s linear both }
@media (prefers-reduced-motion: reduce) { html[data-a11y-intro] [data-co-curtain] > div { animation: none } }
