@font-face {
  font-family: LeagueGothic;
  src: url("assets/gleam/fonts/League_Gothic-webfont.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/gleam/fonts/OpenSans-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/gleam/fonts/OpenSans-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/gleam/fonts/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/gleam/fonts/OpenSans-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --aqua: #65bab3;
  --line: #777d7e;
  --dock-height: 47px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  overflow: hidden;
  color: #fff;
  background: #262e31;
  font: 13px/1.46 "Open Sans", Arial, sans-serif;
}

body.film-detail { background: #1b2022; }

a { color: var(--aqua); }
a:hover { text-decoration: underline; }

button, input, textarea { font: inherit; }

button {
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

.background, .pattern {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.background {
  background: var(--bg, none) center / cover no-repeat;
}

.pattern {
  z-index: -1;
  background: url("assets/gleam/images/overlay_pattern.png");
}

.film-detail .pattern { display: none; }

.site-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  justify-items: center;
}

.home-card, .content-panel {
  background: url("assets/gleam/images/main_bg.png");
  border: 1px solid #0b0d0e;
  box-shadow: inset 1px 1px 0 #9ecdd71a, 0 0 30px #000b;
}

.home-card {
  align-self: center;
  width: min(352px, calc(100% - 24px));
  text-align: center;
  background-image: url("assets/gleam/images/main_bg_home.png");
}

.home-card h1, .page-title, .entry h3 {
  font-family: LeagueGothic, Impact, sans-serif;
  font-weight: normal;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.home-card h1 {
  margin: 0;
  padding: 33px 10px 0;
  font-size: 60px;
  text-shadow: 0 0 3px #000, 0 0 21px #7a989fb3;
}

.home-card h1 button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-transform: inherit;
  text-shadow: inherit;
}

.home-card h1 span { color: #909697; }

.home-card > p {
  margin: 0;
  padding-bottom: 28px;
  text-transform: uppercase;
  text-shadow: 0 0 2px #000;
}

.home-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-menu button, .dock button {
  min-height: 45px;
  padding: 0 16px;
  border: 0;
  background: none;
  text-shadow: 1px 1px #000;
}

.home-menu button {
  border-top: 1px solid #0b0d0e;
  text-align: left;
  padding-left: 27px;
}

.home-menu button:nth-child(odd) { border-right: 1px solid #0b0d0e; }
.home-menu button:hover, .dock button:hover { background-color: var(--aqua); }

.content-panel {
  position: relative;
  align-self: start;
  width: min(802px, 100%);
  height: min(90vh, calc(100vh - var(--dock-height) - 14px));
  height: min(90dvh, calc(100dvh - var(--dock-height) - 14px));
}

.panel-scroll {
  height: 100%;
  padding: 20px 36px 46px 46px;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  outline-offset: -2px;
}

.panel-scroll::-webkit-scrollbar { width: 19px; }

.panel-scroll::-webkit-scrollbar-track {
  border-left: 1px solid #0b0d0e;
  background: url("assets/gleam/images/scrollbar_bg.png");
}

.panel-scroll::-webkit-scrollbar-thumb {
  background: #414e52;
  border: 1px solid #2d3538;
}

.panel-scroll::-webkit-scrollbar-thumb:hover { background: #59696e; }

@supports not selector(::-webkit-scrollbar) {
  .panel-scroll { scrollbar-color: #414e52 #20282b; }
}

.close-button {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  font: 19px/17px Arial, sans-serif;
  background: #414e52;
}

.close-button:hover, .close-button:focus-visible { background: #40877f; }

.crumb {
  margin: 0 0 3px;
  color: #afc1c6;
  font: 12px/1.2 "Open Sans", Arial, sans-serif;
  text-transform: uppercase;
  text-shadow: 1px 1px #000;
}

.crumb a { color: #98adb1; text-decoration: none; }
.crumb a:hover { color: #fff; }
.crumb span[aria-hidden] { padding: 0 3px; }

.content-panel[data-section="about"] .crumb,
.content-panel[data-section="commercials"] .crumb,
.content-panel[data-section="contact"] .crumb {
  display: none;
}

.page-title {
  margin: 0 0 14px;
  font-size: 60px;
  text-shadow: 0 0 10px #fff9;
}

.film-detail .page-title {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.archived-copy p {
  margin: 0 0 12px;
  line-height: 24px;
}

.archived-copy blockquote {
  clear: both;
  margin: 20px 18px;
  padding: 13px 16px;
  color: #4f4f4f;
  background: #e6e6e6;
  border: 1px solid #dcdcdc;
  font-style: italic;
}

.archived-copy blockquote p { margin: 0; }
.archived-copy a:focus-visible { outline-offset: 1px; }
.centered { text-align: center; }

.archived-copy figure { margin: 0 0 14px; }
.archived-copy figure:empty { display: none; }
.archived-copy figcaption { margin-top: 3px; }

.archived-copy img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.center-photo {
  display: block;
  margin: 0 auto 4px;
}

.float-photo {
  float: left;
  margin: 0 15px 8px 0;
}

.entry {
  display: flow-root;
  border-top: 1px solid var(--line);
  padding: 24px 0 29px;
}

.entry h3 {
  margin: 0 0 24px;
  font-size: 36px;
  text-align: center;
}

[data-section="news"] .entry { padding: 40px 0 55px; }

[data-section="news"] .entry h3 {
  text-align: left;
  margin-bottom: 10px;
}

[data-section="visual-effects"] .entry h3 {
  margin-top: -24px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

[data-section="commercials"] .entry h3 {
  text-align: left;
  margin-bottom: 14px;
}

.film-list-item {
  width: min(500px, 100%);
  margin: 0 auto 42px;
}

.film-list-item a, .film-list-item img { display: block; }

.archived-copy .archive-video {
  width: min(640px, 100%);
  margin: 0 auto 22px;
  text-align: center;
}

.archive-video video, .video-loader {
  display: block;
  width: 100%;
  aspect-ratio: var(--video-ratio, 16 / 9);
  background: #0003;
}

.video-loader {
  display: grid;
  position: relative;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
}

.video-loader img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.play-mark {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0b0d0ebd;
}

.play-mark::before {
  content: "";
  margin-left: 4px;
  border: 0 solid transparent;
  border-width: 10px 0 10px 15px;
  border-left-color: #fff;
}

.video-loader:hover .play-mark { background: #40877f; }

.archive-video figcaption {
  font-size: 11px;
  font-style: italic;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form input, .contact-form textarea {
  width: 74%;
  min-height: 32px;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 6px 9px;
  color: #262626;
  background: #f5f5f5;
}

.contact-form textarea {
  width: 100%;
  min-height: 148px;
  resize: vertical;
}

.contact-actions { text-align: right; }

.contact-actions button {
  background: transparent;
  border: 0;
  padding: 7px 12px;
  text-transform: uppercase;
}

.contact-actions button:hover { background: #414e52; }
.form-note { color: #b8c7ca; }

.dock {
  position: fixed;
  z-index: 3;
  inset: auto 0 0;
  display: flex;
  min-height: var(--dock-height);
  background: url("assets/gleam/images/footer_bg.png"), #161b1cd9;
  border-top: 1px solid #0b0d0e;
  overflow: auto hidden;
}

.dock button {
  flex: none;
  padding-inline: 15px;
  font: 18px/1 LeagueGothic, Impact, sans-serif;
  text-transform: uppercase;
}

.dock button[aria-current] { background: #141516; }
.dock button:focus-visible { outline-offset: -3px; }
.dock { scrollbar-width: none; }
.dock::-webkit-scrollbar { display: none; }

@media (max-width: 700px) {
  .panel-scroll { padding: 21px 20px 35px; }
  .page-title { font-size: 48px; }
  .entry h3 { font-size: 30px; }
  [data-section="news"] .entry { padding: 25px 0 36px; }
}

@media (max-width: 500px) {
  .home-card h1 { font-size: 52px; }
  .panel-scroll { padding-inline: 14px; }
  .page-title { font-size: 42px; }
  .float-photo {
    float: none;
    display: block;
    margin: 0 0 10px;
  }
  .contact-form input { width: 100%; }
}
