/* BRAVAS Concept A: sections, player, concept bar */

/* Sections */
.section {
  padding: clamp(4.5rem, 9vw, 8.5rem) var(--gutter);
}
.section-head {
  display: grid;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
}
.section-head .display,
.crew .display,
.contact .display {
  font-size: clamp(2rem, 5.2vw, 4.75rem);
}

/* Work: prints on the lightbox */
.work {
  background: var(--ground);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 2.4vw, 2.2rem);
  max-width: 72rem;
  margin: 0 auto;
}
.print {
  position: relative;
  grid-column: 1 / -1;
}
.print-media {
  position: relative;
  aspect-ratio: var(--ar, 4 / 3);
  overflow: hidden;
  background: var(--rebate);
  border: 6px solid #fff;
  box-shadow: 0 1px 2px rgb(20 18 16 / 0.28), 0 22px 34px -20px rgb(20 18 16 / 0.55);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.print-media img,
.print-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.print-codes {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  gap: 0.25rem;
}
.play {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ground);
  transition: transform 0.4s var(--ease);
}
.play svg {
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.1rem;
  fill: currentColor;
}
.print-title {
  margin-top: 1.1rem;
  font-size: clamp(1.15rem, 2.1vw, 1.9rem);
  max-width: 24ch;
}
.print-open {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-wrap: balance;
}
.print-open::after {
  content: "";
  position: absolute;
  inset: 0;
}
.print-open:focus-visible {
  outline: none;
}
.print:has(.print-open:focus-visible) {
  outline: 3px solid var(--pencil);
  outline-offset: 8px;
  border-radius: 2px;
}
.print-line {
  display: block;
  width: min(14rem, 60%);
  height: 0.7rem;
  margin-top: 0.4rem;
  overflow: visible;
}
.print-line path {
  fill: none;
  stroke: var(--pencil);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 0.7s var(--ease), opacity 0.15s ease;
}
.print:hover .print-line path,
.print:has(.print-open:focus-visible) .print-line path {
  stroke-dashoffset: 0;
  opacity: 1;
}
.print:hover .print-media {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 2px 4px rgb(20 18 16 / 0.3), 0 30px 40px -20px rgb(20 18 16 / 0.6);
}
.print-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(4.5rem, 8vw, 6.5rem);
  overflow: visible;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 5px rgb(0 0 0 / 0.55));
}
.print-play .grease {
  stroke-width: 6;
}
.print-play path {
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 0.7s var(--ease), opacity 0.15s ease;
}
.print:hover .print-play path,
.print:has(.print-open:focus-visible) .print-play path {
  stroke-dashoffset: 0;
  opacity: 1;
}

@media (min-width: 900px) {
  .print:nth-child(1) { grid-column: 1 / 8; }
  .print:nth-child(2) { grid-column: 8 / 13; margin-top: 6rem; }
  .print:nth-child(3) { grid-column: 2 / 7; }
  .print:nth-child(4) { grid-column: 7 / 13; margin-top: -2.5rem; }
  .print:nth-child(5) { grid-column: 1 / 8; }
  .print:nth-child(6) { grid-column: 8 / 13; margin-top: 4rem; }
}

/* Formats: one contact strip, a real frame per service */
.formats {
  background: var(--ground);
  padding-top: 0;
}
.reel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 72rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.reel-item {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}
.reel-film {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 3px 0;
  background: var(--rebate);
  box-shadow: 0 1px 2px rgb(20 18 16 / 0.35), 0 16px 26px -16px rgb(20 18 16 / 0.55);
}
.reel-item:first-child .reel-film {
  width: calc(100% + 7px);
  margin-left: -7px;
  padding-left: 10px;
  border-radius: 2px 0 0 2px;
}
.reel-item:last-child .reel-film {
  width: calc(100% + 7px);
  padding-right: 10px;
  border-radius: 0 2px 2px 0;
}
.reel-film::before,
.reel-film::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 4'%3E%3Crect x='1' width='6' height='4' rx='1.1' fill='%23f6f6f2'/%3E%3C/svg%3E");
  background-size: 24px 4px;
  background-repeat: repeat-x;
}
.reel-film::before {
  top: 2px;
}
.reel-film::after {
  bottom: 2px;
}
.reel-film img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.reel-film .fn {
  padding: 4px 0 18px;
}
.reel-name {
  margin: 1.1rem 0 0;
  padding-inline: 0.5rem;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1;
  transform: rotate(-1.5deg);
  transform-origin: left bottom;
}
.reel-item:nth-child(even) .reel-name {
  transform: rotate(-0.5deg);
}
.reel-item p {
  padding-inline: 0.5rem 1rem;
  max-width: 30ch;
  color: var(--ink-soft);
}
@media (max-width: 899px) {
  .reel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--ink) var(--ground);
    padding-bottom: 1rem;
  }
  .reel-item {
    flex: 0 0 min(78vw, 22rem);
    scroll-snap-align: start;
  }
}

/* Crew credits: the roll at the end of the film */
.crew {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) var(--gutter);
  background: var(--rebate);
  color: var(--cream);
}
.crew::before,
.crew::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Crect x='4' y='3' width='14' height='8' rx='2' fill='%23f6f6f2'/%3E%3C/svg%3E");
  background-size: 32px 14px;
  background-repeat: repeat-x;
}
.crew::before { top: 6px; }
.crew::after { bottom: 6px; }
.crew-roll {
  display: grid;
  gap: 1.1rem;
  max-width: 72rem;
  margin: 0 auto;
}
.crew .lead {
  color: color-mix(in srgb, var(--cream) 78%, var(--rebate));
}
.roll {
  display: grid;
  gap: 0;
  margin: clamp(1.5rem, 4vw, 3rem) 0 0;
}
.roll > div {
  display: grid;
  gap: 0.25rem 2rem;
  padding: 1rem 0;
  border-top: 1px solid color-mix(in srgb, var(--cream) 22%, var(--rebate));
}
.roll dt {
  color: var(--amber);
  font-family: var(--font-code);
  font-weight: 600;
  font-size: var(--mark);
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.roll dd {
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.roll dd span {
  display: inline-block;
  margin-left: 0.5rem;
  font-weight: 450;
  font-stretch: 100%;
  font-size: 0.8em;
  color: color-mix(in srgb, var(--cream) 78%, var(--rebate));
}
.roll .roll-wide dd {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 600;
  font-stretch: 100%;
  max-width: 62ch;
}
@media (min-width: 760px) {
  .roll > div {
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: baseline;
  }
}

/* Contact close */
.contact {
  background: var(--ground);
}
.contact-inner {
  display: grid;
  justify-items: start;
  gap: 1.6rem;
  max-width: 72rem;
  margin: 0 auto;
}
.contact .lead {
  max-width: 40ch;
}
.contact .book {
  margin: 0.75rem 0 0.5rem;
}
.links {
  display: grid;
  gap: 0;
  width: min(100%, 34rem);
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.links li {
  border-top: 1px solid var(--rule);
}
.links li:last-child {
  border-bottom: 1px solid var(--rule);
}
.links a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.4rem;
  padding: 0.5rem 0;
  font-weight: 800;
  font-stretch: 112%;
  text-decoration: none;
}
.links .handle {
  margin-right: auto;
  font-weight: 450;
  font-stretch: 100%;
  color: var(--ink-soft);
}
.links svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
.links a:hover {
  color: var(--pencil);
}
.links a:hover svg {
  transform: translate(3px, -3px);
}
.also {
  max-width: 52ch;
  color: var(--ink-soft);
}

.footer {
  display: grid;
  gap: 0.4rem;
  padding: 2rem max(var(--gutter), calc((100vw - 72rem) / 2)) 5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.footer strong {
  color: var(--ink);
  font-weight: 800;
}

/* Concept bar */
.concept-bar {
  position: fixed;
  z-index: 45;
  left: 0.75rem;
  bottom: 0.5rem;
  display: flex;
  align-items: stretch;
  background: var(--rebate);
  color: var(--amber);
  font-family: var(--font-code);
  font-weight: 600;
  font-size: var(--mark);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgb(20 18 16 / 0.35), 0 10px 18px -10px rgb(20 18 16 / 0.55);
}
.concept-bar p {
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
}
.concept-bar a {
  display: grid;
  place-items: center;
  min-width: 1.75rem;
  padding: 0.55rem 0.55rem 0.5rem;
  border-left: 1px solid color-mix(in srgb, var(--amber) 30%, var(--rebate));
  color: inherit;
  text-decoration: none;
}
.concept-bar a:hover {
  background: var(--amber);
  color: var(--rebate);
}
.concept-bar a:focus-visible {
  outline-color: var(--amber);
  outline-offset: -3px;
}
.cb-short {
  display: none;
}
/* Phone: dock the bar full width along the top so it never covers the fold. */
@media (max-width: 560px) {
  :root {
    --bar-h: 2.5rem;
  }
  .concept-bar {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    height: var(--bar-h);
    padding-left: var(--gutter);
    flex-wrap: nowrap;
    border-radius: 0;
  }
  .concept-bar p {
    margin-right: auto;
    padding: 0;
  }
  .concept-bar a {
    min-width: 2.75rem;
  }
  .footer {
    padding-bottom: 2rem;
  }
  .cb-full {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cb-short {
    display: inline;
  }
}

/* Player panel */
body:has(.player[open]) {
  overflow: hidden;
}
.player {
  width: min(46rem, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--ground);
  color: var(--ink);
  overflow-y: auto;
  box-shadow: -24px 0 48px -24px rgb(20 18 16 / 0.5);
}
.player::backdrop {
  background: rgb(15 14 13 / 0.62);
}
@media (prefers-reduced-motion: no-preference) {
  .player[open] {
    animation: panel-in 0.45s var(--ease);
  }
  .player[open]::backdrop {
    animation: fade-in 0.3s ease;
  }
}
@keyframes panel-in {
  from { transform: translateX(32px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.player-body {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: 1rem 1rem 3rem;
}
.player-close {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  right: 1.5rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ground);
  cursor: pointer;
  box-shadow: 0 6px 12px -4px rgb(20 18 16 / 0.45);
}
.player-close svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.player-close:hover {
  background: var(--ink);
}
.player-close:hover svg {
  stroke: var(--ground);
}
.lite {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--rebate);
  overflow: hidden;
}
.lite img,
.lite iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.lite-trigger {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.lite-trigger .play {
  right: auto;
  bottom: auto;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
}
.lite-trigger .play svg {
  width: 2rem;
  height: 2rem;
}
.lite-trigger:hover .play {
  transform: scale(1.1);
}
.lite-trigger:focus-visible {
  outline-offset: -6px;
  outline-color: var(--ground);
}
.lite-out {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
}
.player-meta {
  display: grid;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0;
}
.player-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.player-meta .display {
  font-size: clamp(1.5rem, 4.2vw, 2.4rem);
  padding-right: 3rem;
}
.player-credits {
  display: grid;
  gap: 0.9rem;
}
.player-credits h3 {
  margin: 0;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.player-credits .quote {
  max-width: 52ch;
  color: var(--ink-soft);
  font-style: italic;
}
.player-credits dl {
  margin: 0;
}
.player-credits dl > div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
.player-credits dt {
  font-family: var(--font-code);
  font-weight: 600;
  font-size: var(--mark);
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.player-credits dd {
  font-weight: 650;
  overflow-wrap: anywhere;
}
.player-out {
  justify-self: start;
  font-weight: 800;
  font-stretch: 112%;
}
@media (min-width: 560px) {
  .player-body {
    padding: 1.25rem 1.5rem 3rem;
  }
  .player-credits dl > div {
    grid-template-columns: 11rem minmax(0, 1fr);
    align-items: baseline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
