/* "Midnight Movie" look for the NEW parts only: the Story, Press and Impact pages, and the pieces added
   to the home page (quote ticker, sign-up, explore links, licensing, buttons). The original home and
   company sections keep their original look from site.css. */
:root { --mm-ink: #0b0b0d; --mm-red: #d8312c; --mm-teal: #2a9d94; --mm-cream: #f2ede2; }

/* buttons (all new) */
.btn { background: var(--mm-red); color: #fff; border: 3px solid #fff; box-shadow: 5px 5px 0 var(--mm-teal);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover, .btn:focus-visible { background: var(--mm-teal); color: #fff; transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 8px 8px 0 var(--mm-red); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--mm-teal); }
.red .btn { border-color: #fff; }

/* quote ticker: theatre marquee with chasing bulbs */
.ticker { position: relative; overflow: hidden; background: var(--mm-ink); color: var(--mm-cream); padding: 16px 0; border-block: 3px solid var(--mm-red); }
.ticker::before, .ticker::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; background: radial-gradient(circle, #ffe9a8 2px, transparent 2.6px) 0 0 / 18px 6px repeat-x; animation: rm-bulbs 1.2s steps(2) infinite; }
.ticker::before { top: 3px; } .ticker::after { bottom: 3px; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: rm-marquee 40s linear infinite; }
.ticker span { white-space: nowrap; font: 700 calc(18px + 4 * var(--u))/1.4 "Josefin Sans", sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes rm-marquee { to { transform: translateX(-50%); } }
@keyframes rm-bulbs { 50% { background-position: 9px 0; } }

/* explore links on the home page */
.explore { background: var(--mm-ink); }
.tile { background: var(--mm-ink); color: var(--mm-cream); border: 3px solid var(--c); box-shadow: 6px 6px 0 var(--c); }
.explore-list > li:nth-child(odd) .tile { --c: var(--mm-red); }
.explore-list > li:nth-child(even) .tile { --c: var(--mm-teal); }
.tile b { color: var(--mm-cream); text-shadow: 2px 2px 0 var(--mm-red); }
.tile span::after { content: "  \2192"; }
.tile:hover, .tile:focus-visible { background: var(--c); color: #fff; transform: translateY(-6px) rotate(-2deg); }

/* ---------- new pages ---------- */
.page-new main { background: var(--mm-ink); }
.page-new main > section.red { background: var(--mm-red); }
.page-new main > section.black, .page-new .film.story-page {
  background: radial-gradient(60% 50% at 15% 20%, rgba(42,157,148,.10), transparent 70%),
              radial-gradient(50% 60% at 85% 80%, rgba(216,49,44,.10), transparent 70%), var(--mm-ink); }
.page-new main h2, .page-new main h3 { color: var(--mm-cream); text-shadow: 3px 3px 0 var(--mm-red); }
.page-new main .red h2, .page-new main .red h3 { text-shadow: 3px 3px 0 var(--mm-ink); }
.page-new .quote-top { background: var(--mm-ink); border-bottom: 2px solid var(--mm-red); }
.page-new .quote .by, .page-new .quote .by em { color: var(--mm-cream); }
.page-new .story-page h3 { color: var(--mm-cream); text-shadow: 3px 3px 0 var(--mm-teal); }
.page-new .story-page .kicker { color: var(--mm-cream); }

/* cards: cream with red or teal edge */
.page-new .card { background: var(--mm-cream); color: var(--mm-ink); border: 3px solid var(--mm-ink); border-radius: 16px; }
.page-new .card h2 { color: var(--mm-ink); text-shadow: 2px 2px 0 var(--c); }
.page-new .cards > li:nth-child(odd) { --c: var(--mm-red); box-shadow: 7px 7px 0 var(--mm-red); }
.page-new .cards > li:nth-child(even) { --c: var(--mm-teal); box-shadow: 7px 7px 0 var(--mm-teal); }

/* impact numbers */
.page-new .stat { border: 3px solid var(--c); }
.page-new .stats > li:nth-child(odd) { --c: var(--mm-red); }
.page-new .stats > li:nth-child(even) { --c: var(--mm-teal); }
.page-new .stat b { color: var(--mm-cream); text-shadow: 3px 3px 0 var(--c); }
.page-new .press-tv { background: var(--mm-ink); }

/* press: wall of real articles */
.section-title { text-align: center; font-size: var(--h2); margin-bottom: 28px; }
.articles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 18px 18px;
  background: var(--mm-cream); color: var(--mm-ink); border: 3px solid var(--mm-ink); border-radius: 16px; text-decoration: none;
  box-shadow: 6px 6px 0 var(--c); transition: transform .25s cubic-bezier(.3,1.4,.5,1), box-shadow .25s ease; }
.articles > li:nth-child(odd) .article { --c: var(--mm-red); }
.articles > li:nth-child(even) .article { --c: var(--mm-teal); }
.article .kind { align-self: flex-start; padding: 3px 10px; border-radius: 99px; background: var(--mm-ink); color: var(--mm-cream); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.article b { font: 700 calc(18px + 6 * var(--u))/1.1 "Condiment", cursive; text-transform: uppercase; }
.article .hl { font-size: 16px; line-height: 1.45; flex: 1; }
.article .go { font-weight: 700; color: var(--mm-red); letter-spacing: .04em; }
.article:hover, .article:focus-visible { transform: translate(-3px, -4px) rotate(-1deg); box-shadow: 10px 10px 0 var(--c); }

@media (max-width: 767px) { .articles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .ticker::before, .ticker::after { animation: none !important; }
  .ticker-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .btn, .tile, .article { transition: none !important; }
}
.album-previews { padding: 40px 0 44px; }
.album-previews .previews { max-width: 660px; margin: 18px auto 0; }
.album-previews .previews .hint { font-size: 15px; margin-bottom: 8px; }
.album-previews iframe { display: block; width: 100%; height: 450px; border: 0; border-radius: 10px; }
@media (max-width: 767px) { .album-previews iframe { height: 420px; } }

/* Home landing: the smoke film fills the whole screen when you arrive. */
.page-original .hero { height: 100svh; min-height: 560px; }
.page-original .hero .inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: calc(72 * var(--u)); }
.page-original .hero .logo { height: min(calc(519 * var(--u)), 58svh); margin-top: calc(18 * var(--u)); }
.page-original .hero .credits { margin-top: 0; }
@media (max-width: 767px) {
  .page-original .hero .inner { padding-top: calc(84 * var(--u)); justify-content: center; flex-direction: column-reverse; }
  .page-original .hero .logo { width: calc(343 * var(--u)); height: auto; margin: 0 auto; }
  .page-original .hero .credits { margin: calc(40 * var(--u)) 0 0; }
}
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: #fff; font: 700 13px/1 "Josefin Sans", sans-serif; letter-spacing: .2em; text-transform: uppercase; opacity: .85; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* ---------- The Story: animated timeline ---------- */
.story-hero { padding: calc(130px + 20 * var(--u)) 0 30px; background: var(--mm-ink); }
.story-hero .lines { font-size: var(--quote-by); margin-top: 6px; }
.story-hero .scroll-hint { margin-top: 18px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.timeline-wrap { padding: 30px 0 80px; background:
  radial-gradient(50% 30% at 85% 10%, rgba(216,49,44,.12), transparent 70%),
  radial-gradient(50% 30% at 10% 60%, rgba(42,157,148,.10), transparent 70%), var(--mm-ink); }
.timeline { position: relative; max-width: 1100px; margin: 0 auto; }
.tl-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: rgba(242,237,226,.12); border-radius: 4px; }
.tl-fill { position: absolute; left: 0; top: 0; width: 100%; height: var(--progress, 0%); background: linear-gradient(var(--mm-red), var(--mm-teal)); border-radius: 4px; box-shadow: 0 0 14px rgba(216,49,44,.6); }
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; width: 50%; padding: 0 44px 56px; box-sizing: border-box; }
.tl-item.left { left: 0; text-align: right; }
.tl-item.right, .tl-item.tl-next { left: 50%; }
.tl-dot { position: absolute; top: 26px; width: 22px; height: 22px; border-radius: 50%; background: var(--mm-ink); border: 4px solid var(--mm-red); box-shadow: 0 0 0 6px rgba(216,49,44,.18); z-index: 1; }
.tl-item.left .tl-dot { right: -11px; } .tl-item.right .tl-dot, .tl-item.tl-next .tl-dot { left: -11px; }
.tl-item:nth-child(even) .tl-dot { border-color: var(--mm-teal); box-shadow: 0 0 0 6px rgba(42,157,148,.18); }
.tl-card { display: inline-block; text-align: left; max-width: 480px; padding: 22px 24px 24px; border-radius: 18px; background: #16161a; border: 2px solid rgba(242,237,226,.12); }
.tl-year { display: block; font: 400 calc(52px + 30 * var(--u))/0.9 "Condiment", cursive; color: transparent; -webkit-text-stroke: 2px var(--mm-red); letter-spacing: .02em; }
.tl-item:nth-child(even) .tl-year { -webkit-text-stroke-color: var(--mm-teal); }
.tl-card h3 { margin: 8px 0 10px; font-size: var(--h3); color: var(--mm-cream); text-shadow: 3px 3px 0 var(--mm-red); }
.page-new .tl-card h3 { text-shadow: 3px 3px 0 var(--mm-red); }
.tl-text p { font-size: 17px; line-height: 1.6; color: #e7e2d6; }
.tl-text a, .tl-card .small a { color: var(--mm-cream); text-decoration: underline; text-underline-offset: 3px; }
.tl-card .small { margin-top: 10px; font-size: 15px; line-height: 1.5; color: #cfc9bc; }
.tl-img { margin: 16px 0 0; overflow: hidden; border-radius: 12px; border: 2px solid var(--mm-cream); }
.tl-img img { display: block; width: 100%; height: 240px; object-fit: cover; transition: transform 1.2s ease; }
.tl-item.in .tl-img img { transform: scale(1.06); }
.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 99px; background: var(--mm-cream); color: var(--mm-ink); font: 700 14px/1.2 "Josefin Sans", sans-serif; box-shadow: 3px 3px 0 var(--mm-red); }
.tl-item:nth-child(even) .chips li { box-shadow: 3px 3px 0 var(--mm-teal); }
.tl-next .tl-card { border-color: var(--mm-red); }
.tl-next .cta { margin-top: 14px; }

/* slide in from each side as you scroll */
.js .page-new .tl-item.left { opacity: 0; transform: translateX(-60px); }
.js .page-new .tl-item.right, .js .page-new .tl-item.tl-next { opacity: 0; transform: translateX(60px); }
.js .page-new .tl-item { transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .page-new .tl-item.in { opacity: 1; transform: none; }
.tl-item.in .tl-dot { animation: tl-pop .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes tl-pop { from { transform: scale(0); } to { transform: scale(1); } }

@media (max-width: 767px) {
  .tl-line { left: 18px; }
  .tl-item, .tl-item.left, .tl-item.right, .tl-item.tl-next { width: 100%; left: 0; text-align: left; padding: 0 0 44px 46px; }
  .tl-item.left .tl-dot, .tl-item.right .tl-dot, .tl-item.tl-next .tl-dot { left: 7px; right: auto; }
  .js .page-new .tl-item.left, .js .page-new .tl-item.right, .js .page-new .tl-item.tl-next { transform: translateY(40px); }
  .tl-card { max-width: none; }
  .tl-img img { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .page-new .tl-item { opacity: 1 !important; transform: none !important; transition: none; }
  .tl-item.in .tl-img img { transform: none; }
}
.tl-text .tl-links { margin-top: 10px; font-size: 15px; font-weight: 700; }
.tl-text .tl-links a { color: var(--mm-cream); text-decoration: underline; text-decoration-color: var(--mm-red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tl-text .tl-links a:hover { color: #fff; text-decoration-color: var(--mm-teal); }
.tl-text .tl-links { margin-top: 10px; font-size: 15px; font-weight: 700; }
.tl-text .tl-links a { color: var(--mm-cream); text-decoration: underline; text-decoration-color: var(--mm-red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tl-text .tl-links a:hover { color: #fff; text-decoration-color: var(--mm-teal); }

/* intro hand-off: logo glides onto the landing logo while the black clears */
.intro { background: #000; transition: background-color .9s ease; }
.intro .intro-logo { position: fixed; transform-origin: 0 0; transition: transform .9s cubic-bezier(.65,0,.25,1); }
.intro .intro-logo img { width: 100%; height: auto; display: block; }
.intro .smoke { transition: opacity .7s ease; }
.intro.clearing { background-color: transparent; pointer-events: none; }
.intro.clearing .smoke { opacity: 0; }
.intro.out { opacity: 1; filter: none; }
.intro.clearing .smoke { animation: rm-smoke-out .7s ease forwards; }
@keyframes rm-smoke-out { from { opacity: .4; } to { opacity: 0; } }
.intro-on .hero .logo { opacity: 0; }
/* smoother intro: one continuous motion, no pauses */
.intro .intro-logo img { opacity: 0; transform: scale(.92); filter: blur(10px); animation: rm-intro-in 1.1s cubic-bezier(.22,.61,.36,1) .05s forwards; }
@keyframes rm-intro-in { to { opacity: 1; transform: none; filter: blur(0); } }
.intro .intro-logo { transition: transform 1.25s cubic-bezier(.45,.05,.25,1); will-change: transform; }
.intro { transition: background-color 1.05s ease; }
.intro.clearing .smoke { animation: rm-smoke-out 1s ease forwards; }

/* ---------- Accessibility buttons: high contrast, larger text, pause motion ---------- */
.rm-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rm-a11y { position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 150; display: flex; flex-direction: column;
  border-radius: 8px 0 0 8px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.85), 0 2px 10px rgba(0,0,0,.45); }
.rm-a11y__btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin: 0; border: 0;
  background: var(--mm-ink); color: var(--mm-cream); cursor: pointer; font: 700 20px/1 "Josefin Sans", sans-serif; }
.rm-a11y__btn + .rm-a11y__btn { border-top: 1px solid rgba(242,237,226,.35); }
.rm-a11y__btn:hover { background: #26262c; }
.rm-a11y__btn[aria-pressed="true"] { background: var(--mm-red); color: #fff; }
.rm-a11y__btn:focus-visible { outline: 3px solid var(--mm-teal); outline-offset: -3px; }
.rm-a11y__btn svg { width: 22px; height: 22px; fill: currentColor; }
.rm-a11y__tt { letter-spacing: -1px; } .rm-a11y__tt small { font-size: 13px; }
@media (max-width: 767px) {
  /* phones: a small row inside the red header, left of the menu button */
  .site-header .rm-a11y { position: absolute; top: 50%; right: calc(80 * var(--u)); transform: translateY(-50%); flex-direction: row; gap: 6px;
    border-radius: 0; overflow: visible; box-shadow: none; z-index: 41; }
  .site-header .rm-a11y__btn { border-radius: 10px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.25); color: #fff; }
  .site-header .rm-a11y__btn + .rm-a11y__btn { border-top: 1px solid rgba(255,255,255,.6); }
  .menu-open .site-header .rm-a11y { display: none; }
}

/* Larger text: about 25 percent bigger everywhere */
html.rm-big { --body: calc(20px + 4 * var(--u)); --quote-by: calc(20px + 8 * var(--u)); --card-body: calc(20px + 2 * var(--u)); --card-title: calc(20px + 14 * var(--u)); --nav: calc(19px + 8 * var(--u)); }
html.rm-big main p, html.rm-big main li, html.rm-big .article .hl, html.rm-big .tl-text p, html.rm-big .site-footer p, html.rm-big .stat span { font-size: max(20px, 1.15em); line-height: 1.55; }
html.rm-big .hero .credits { font-size: 19px; line-height: 28px; }
html.rm-big .chips li { font-size: 17px; }

/* Pause motion: stop the films, animations and smooth scrolling */
html.rm-still-motion, html.rm-still-motion * { scroll-behavior: auto !important; }
html.rm-still-motion *, html.rm-still-motion *::before, html.rm-still-motion *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; }
html.rm-still-motion .ticker-track { transform: none !important; flex-wrap: wrap; width: auto; justify-content: center; animation: none !important; }
html.rm-still-motion .js .reveal, html.rm-still-motion .tl-item { opacity: 1 !important; transform: none !important; filter: none !important; }

/* High contrast: black page, white words, yellow links */
html.rm-contrast, html.rm-contrast body { background: #000 !important; }
html.rm-contrast body *:not(img):not(svg):not(path):not(video):not(picture):not(source):not(iframe) {
  background-color: transparent !important; background-image: none !important; color: #fff !important; border-color: #fff !important;
  text-shadow: none !important; box-shadow: none !important; -webkit-text-stroke: 0 !important; }
html.rm-contrast .site-header, html.rm-contrast .menu, html.rm-contrast .site-footer, html.rm-contrast .card, html.rm-contrast .article, html.rm-contrast .tl-card { background-color: #000 !important; }
html.rm-contrast .bg-video, html.rm-contrast .hero .poster { opacity: .25; }
html.rm-contrast a, html.rm-contrast a * { color: #ff0 !important; text-decoration: underline !important; }
html.rm-contrast button, html.rm-contrast .btn, html.rm-contrast input { border: 2px solid #fff !important; }
html.rm-contrast .tl-line, html.rm-contrast .tl-fill { background-color: #fff !important; }
html.rm-contrast .rm-a11y__btn { background: #000 !important; border: 1px solid #fff !important; }
html.rm-contrast .rm-a11y__btn[aria-pressed="true"] { background: #ff0 !important; color: #000 !important; }
html.rm-contrast .rm-a11y__btn[aria-pressed="true"] * { color: #000 !important; fill: #000 !important; }
html.rm-contrast svg { fill: #fff; }
/* computers: the three buttons sit in the red header, left of the social icons */
@media (min-width: 768px) {
  .site-header .rm-a11y { position: static; transform: none; flex-direction: row; gap: 6px; margin: 0 14px 0 auto; border-radius: 0; overflow: visible; box-shadow: none; }
  .site-header .rm-a11y__btn { border-radius: 10px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.22); color: #fff; }
  .site-header .rm-a11y__btn + .rm-a11y__btn { border-top: 1px solid rgba(255,255,255,.6); }
  .site-header .rm-a11y__btn:hover { background: rgba(0,0,0,.4); }
  .site-header .rm-a11y__btn[aria-pressed="true"] { background: #fff; color: var(--mm-red); }
}
html.rm-contrast .burger { border: 0 !important; }
html.rm-contrast .burger span { background-color: #fff !important; }
