/* A quieter frame for the films. Content and section geometry stay intact. */
.nav {
  background: rgba(19, 20, 17, .88);
  border-bottom-color: rgba(238, 234, 225, .12);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.desktop-nav a {
  position: relative;
  padding-block: 8px;
  transition: color .25s ease;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.desktop-nav a:focus-visible::after { transform: scaleX(1); }

.button {
  border-radius: 1px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.button:hover { transform: none; }

.button > span .icon,
.text-button > span .icon,
.email-link > span .icon {
  transition: transform .3s cubic-bezier(.2, .65, .3, 1);
}

.text-button {
  transition: color .25s ease, border-color .25s ease;
}

.section-top { border-top-color: rgba(238, 234, 225, .14); }
.light-section .section-top { border-top-color: rgba(19, 20, 17, .18); }

.viewer {
  border-color: rgba(19, 20, 17, .15);
  background: #e7e3da;
}

.film-info { border-top: 1px solid rgba(19, 20, 17, .12); }

.film-nav button {
  border-color: rgba(19, 20, 17, .25);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.film-card .thumb {
  outline-offset: 5px;
  transition: outline-color .3s ease;
}

.film-card.active .thumb { outline-color: #68745a; }

.film-card .thumb img {
  filter: saturate(.88);
  transform: scale(1);
  transition: transform .65s cubic-bezier(.2, .65, .3, 1), filter .45s ease;
}

.film-card.active .thumb img {
  filter: saturate(1);
  transform: scale(1);
}

.thumb-play {
  border-color: rgba(255, 255, 255, .44);
  background: rgba(15, 19, 16, .48);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .25s ease, border-color .25s ease;
}

.thumb-play .icon { transition: transform .3s ease; }
.card-title { padding-top: 14px; }
.card-title > span:last-child { font-size: 10px; }

/* Photographic planes instead of a simulated metal device housing. */
.format-art { background: none; }

.format-card {
  border: 1px solid rgba(238, 234, 225, .28);
  border-radius: 2px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .32), 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .7s cubic-bezier(.2, .65, .3, 1), border-color .5s ease;
}

.format-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  pointer-events: none;
}

.format-card span {
  padding: 18px 13px 12px;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: .13em;
}

.format-card.wide { transform: rotateY(-8deg) rotateZ(-4deg); }
.format-card.square { transform: rotateZ(-5deg); }
.format-card.portrait { transform: rotateY(-10deg) rotateZ(5deg); }

.plain-list li { border-top-color: rgba(238, 234, 225, .15); }

.price-grid { border-color: rgba(19, 20, 17, .2); }

.price {
  border-color: rgba(19, 20, 17, .2);
  transition: background .3s ease;
}

.price .eyebrow { color: #626957; }
.price .button { border-color: transparent; }
.steps li { border-top-color: rgba(238, 234, 225, .15); }
.steps li > span { color: #a6ad96; }

.questions details,
.questions details:first-child { border-color: rgba(19, 20, 17, .2); }

.questions summary { transition: color .25s ease; }

.questions summary > span {
  flex-shrink: 0;
  transition: transform .3s ease;
}

.questions details[open] summary { color: #566049; }
.email-link { border-bottom-color: rgba(238, 234, 225, .24); }

dialog {
  border-color: rgba(215, 223, 181, .28);
  border-radius: 3px;
  background: #1a1d17;
}

input, textarea { border-radius: 1px; }

/* Pointer-only details do not become sticky interactions on a phone. */
@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover::after { transform: scaleX(1); }
  .button:hover > span .icon,
  .text-button:hover > span .icon,
  .email-link:hover > span .icon { transform: translate(2px, -2px); }
  .text-button:hover { border-color: var(--accent); }
  .film-card:hover .thumb img { filter: saturate(1); transform: scale(1.045); }
  .film-card:hover .thumb-play { background: rgba(15, 19, 16, .8); border-color: rgba(255, 255, 255, .72); }
  .film-card:hover .thumb-play .icon { transform: translate(1px, -1px); }
  .format-art:hover .wide { transform: rotateY(-5deg) rotateZ(-3deg) translateY(-5px); }
  .format-art:hover .square { transform: rotateZ(-3deg) translateY(3px); }
  .format-art:hover .portrait { transform: rotateY(-6deg) rotateZ(3deg) translateY(-3px); }
  .price:hover { background: rgba(255, 255, 255, .22); }
  .questions summary:hover { color: #566049; }
}

.film-card:focus-visible .thumb img { filter: saturate(1); }

@media (max-width: 760px) {
  .nav { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .format-card { box-shadow: 0 12px 25px rgba(0, 0, 0, .28); }
  .format-card span { font-size: 7px; padding: 14px 9px 9px; }
  .mobile-nav { border-bottom-color: rgba(238, 234, 225, .14); }
}

@media (max-width: 380px) {
  .film-card .thumb { outline-offset: 3px; }
  .card-title > span:last-child { font-size: 9px; }
  .format-card span { font-size: 6px; padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .button > span .icon,
  .text-button > span .icon,
  .email-link > span .icon,
  .thumb-play .icon,
  .film-card .thumb img { transform: none !important; }
  .format-art:hover .wide { transform: rotateY(-8deg) rotateZ(-4deg); }
  .format-art:hover .square { transform: rotateZ(-5deg); }
  .format-art:hover .portrait { transform: rotateY(-10deg) rotateZ(5deg); }
}
