* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  color: #232323;
  background: #f5f3ef;
  font: 400 1rem/1.6 sans-serif;
}

.oil-site {
  background: #f5f3ef url("build/static/images/mango%20bg.png") center top / cover fixed no-repeat;
}

a { color: inherit; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem clamp(1.25rem, 6vw, 5rem);
}

.site-name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.site-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.home-menu {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.home-footer {
  position: absolute;
  inset: auto 0 1.5rem;
  text-align: center;
}

.home-footer a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-footer a:hover,
.home-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.home-menu .site-nav {
  justify-content: center;
  gap: clamp(2rem, 8vw, 7rem);
}

.home-menu .site-nav a {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

main {
  width: min(100% - 2.5rem, 64rem);
  min-height: 75vh;
  display: grid;
  align-content: center;
  margin: 0 auto;
  padding: 5rem 0;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
}

.construction {
  display: block;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: 0.65rem 0;
  border-block: 8px solid transparent;
  background:
    linear-gradient(#f4c400, #f4c400) padding-box,
    repeating-linear-gradient(135deg, #171717 0 8px, #f4c400 8px 16px) border-box;
  overflow: hidden;
  color: #171717;
  font-size: 0;
  white-space: nowrap;
}

.construction::before {
  display: block;
  width: max-content;
  margin: 0 auto;
  content: "UNDER CONSTRUCTION   •   UNDER CONSTRUCTION   •   UNDER CONSTRUCTION   •   UNDER CONSTRUCTION   •   UNDER CONSTRUCTION   •   UNDER CONSTRUCTION   •   UNDER CONSTRUCTION   •   UNDER CONSTRUCTION   •   UNDER CONSTRUCTION   •   UNDER CONSTRUCTION   •   UNDER CONSTRUCTION   •   UNDER CONSTRUCTION   •";
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.construction-page {
  gap: clamp(1.5rem, 5vh, 3rem);
}

.code-page {
  display: block;
  padding: 3rem 0 5rem;
}

.code-page h1 {
  margin-bottom: 2.5rem;
  text-align: center;
}

.code-content {
  max-width: 44rem;
  margin: 0 auto;
}

.code-content p {
  margin: 0 0 1.25rem;
}

.film-page {
  display: block;
  padding: 3rem 0 5rem;
}

.film-page h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.film-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid #bdbab4;
}

.film-tab {
  padding: 0.75rem 0.25rem;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.film-tab[aria-selected="true"] {
  border-bottom-color: currentColor;
}

.film-tab:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.film-panel {
  width: 100%;
  max-width: 60rem;
  min-height: 12rem;
  margin-inline: auto;
  padding-top: 2rem;
}

.film-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.film-filter label,
.film-filter select {
  font: inherit;
}

.film-filter select {
  padding: 0.35rem 1.5rem 0.35rem 0.1rem;
  border: 0;
  border-bottom: 1px solid #8f8b84;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.film-filter select:hover {
  border-bottom-color: #232323;
}

.film-filter select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.film-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  align-items: start;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.film-in-development {
  text-align: center;
  text-decoration: underline;
}

.film-video {
  width: min(100%, 48rem);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.film-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.film-video + .film-video {
  margin-top: 2rem;
}

.film-gallery .film-video,
.film-gallery .film-video + .film-video {
  width: 100%;
  margin: 0;
}

.film-series-understood-for-all,
.film-series-danger-girls {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .film-series-serpent-story {
    grid-column: span 2;
  }
}

.film-series-reels {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20.5rem), 1fr));
  align-items: start;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.film-series-videos {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.film-video-thumbnail {
  display: block;
  overflow: hidden;
}

.film-video-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.film-series-reels .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 540px !important;
  margin: 0 auto !important;
}

.film-series-reels .instagram-media iframe {
  width: 100%;
}

.film-poster {
  display: block;
  width: min(100%, 18rem);
  margin: 0 auto 2rem;
}

.film-gallery .film-poster {
  margin: 0 auto;
}

.film-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.oil-page {
  display: block;
  width: min(100% - 2.5rem, 58rem);
  padding: 3rem 0 5rem;
}

.oil-page h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.oil-intro {
  max-width: 42rem;
  margin: 0 auto 2rem;
  overflow-wrap: break-word;
}

.oil-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  border-radius: 1rem;
}

.oil-gallery img {
  display: block;
  width: 100%;
  height: clamp(14rem, 28vw, 21rem);
  border-radius: 0.65rem;
  background-color: rgb(245 243 239 / 90%);
  object-fit: contain;
}

.email-box {
  display: inline-block;
  width: fit-content;
  padding: 0.8rem 1rem;
}

.contact-page {
  justify-items: center;
}

.contact-page h1,
.contact-content {
  width: 100%;
}

.contact-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-page h1 {
  text-align: center;
}

.contact-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.contact-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.contact-icon:hover,
.contact-icon:focus-visible {
  background: rgb(35 35 35 / 8%);
}

.copy-status {
  min-width: 7rem;
  min-height: 1.6em;
  font-size: 0.875rem;
  text-align: center;
}

.copy-status.sparkle-out {
  position: relative;
  animation: copy-status-fade 2s ease-out forwards;
}

.copy-status.sparkle-out::after {
  content: "✦";
  position: absolute;
  inset: -0.35rem -0.35rem auto;
  color: #b47a18;
  text-shadow: 6rem 0 ✧;
  animation: copy-status-sparkle 2s ease-out forwards;
}

.copy-status.sparkle-out::before {
  content: "✧";
  position: absolute;
  inset: auto -0.35rem -0.35rem;
  color: #b47a18;
  text-shadow: 6rem 0 ✦;
  animation: copy-status-sparkle 2s ease-out forwards;
}

@keyframes copy-status-fade {
  to { opacity: 0; }
}

@keyframes copy-status-sparkle {
  0% { opacity: 0; transform: scale(0.5) translateY(0.25rem); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.2) translateY(-0.5rem); }
}

@media (max-width: 520px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
  .site-nav { width: 100%; justify-content: space-between; }
  .oil-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oil-gallery img { height: clamp(12rem, 50vw, 18rem); }
  .film-series-videos { grid-template-columns: 1fr; }
}

@media (min-width: 521px) and (max-width: 760px) {
  .film-series-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
  .oil-gallery { grid-template-columns: 1fr; }
  .oil-gallery img { height: auto; max-height: 24rem; }
}
