/* ===========================================================================
   BISHOP / TUZIN FILMS
   Black, quiet, letterspaced. The lightning bolt from the wordmark is the one
   motif — it reappears as the divider between client and title in every
   caption. Nothing else decorates.
   =========================================================================== */

:root {
  --bg:        #000000;
  --fg:        #ffffff;
  --dim:       #8a8a8a;
  --dimmer:    #4a4a4a;
  --rule:      #1e1e1e;
  --rule-lit:  #3a3a3a;

  --track:     0.42em;   /* wordmark letterspacing */
  --track-sm:  0.18em;   /* labels */

  --gap:       clamp(20px, 3vw, 44px);
  --pad:       clamp(20px, 5vw, 64px);
  --measure:   62ch;

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* --- Header ---------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 76px;
  padding-block: 16px;
  flex-wrap: wrap;
}

/* The wordmark. Real logo art; the bolt inside it is the brand's own mark. */
.mark {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.mark-img {
  height: clamp(15px, 1.9vw, 21px);
  width: auto;
}

/* Fallback only — applied by site.js if the logo image fails to load. */
.mark--text {
  gap: 0.55em;
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- The bolt -------------------------------------------------------------
   The one motif on the site, lifted from the wordmark. Inherits colour via
   currentColor so it reads correctly wherever it lands.
   ------------------------------------------------------------------------- */

.bolt {
  flex: none;
  fill: currentColor;
  width: auto;
}

.bolt--mark {
  height: 1.1em;
  color: var(--fg);
}

.bolt--caption {
  height: 0.82em;
  color: var(--rule-lit);
  align-self: center;
  transition: color 0.3s var(--ease);
}

.tile:hover .bolt--caption { color: var(--dim); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  flex-wrap: wrap;
}

.nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-sm);
  text-transform: uppercase;
  color: var(--dim);
  padding-block: 4px;
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--fg); }

/* --- Page heading ---------------------------------------------------------- */

.page-head {
  padding-block: clamp(48px, 9vw, 120px) clamp(28px, 4vw, 54px);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dimmer);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.lede {
  margin: 22px 0 0;
  max-width: var(--measure);
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--dim);
}

/* --- Stacked pieces --------------------------------------------------------
   Full-bleed video, single column, captions inset to align with the header.
   ------------------------------------------------------------------------- */

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(46px, 6vw, 92px);
  padding-block: clamp(28px, 4vw, 56px) clamp(64px, 9vw, 132px);
}

.section-head {
  margin: clamp(20px, 3vw, 44px) 0 0;
  padding-inline: var(--pad);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dimmer);
}

.piece { display: block; }

.media { display: block; }

.frame {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  aspect-ratio: 16 / 9;
}

.frame[data-format="2.39:1"] { aspect-ratio: 2.39 / 1; }
.frame[data-format="1:1"]    { aspect-ratio: 1 / 1; }
.frame[data-format="9:16"]   { aspect-ratio: 9 / 16; }

.frame img,
.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame video {
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

a.media:hover .frame video,
a.media:focus-visible .frame video { opacity: 1; }

/* Play affordance — only on pieces that actually open something. */
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(44px, 4.4vw, 62px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s var(--ease), background 0.35s var(--ease);
  pointer-events: none;
}

.play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-left: 11px solid var(--fg);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

a.media:hover .play,
a.media:focus-visible .play {
  opacity: 1;
  background: rgba(0, 0, 0, 0.35);
}

/* Caption */
.caption {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin-top: 15px;
  padding-inline: var(--pad);
  flex-wrap: wrap;
}

.caption .client {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-sm);
  text-transform: uppercase;
  color: var(--dimmer);
}

.caption .title {
  margin: 0;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.caption .tc {
  margin-left: auto;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--dimmer);
  font-variant-numeric: tabular-nums;
}

.kit-link {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-sm);
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--rule-lit);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.kit-link:hover { color: var(--fg); border-color: var(--fg); }

/* --- Prose (press kit, contact) -------------------------------------------- */

.prose {
  max-width: var(--measure);
  padding-bottom: clamp(60px, 10vw, 140px);
}

.prose h2 {
  margin: clamp(38px, 5vw, 62px) 0 14px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.prose p { margin: 0 0 1.1em; color: #d8d8d8; }

.prose a {
  border-bottom: 1px solid var(--rule-lit);
  transition: border-color 0.25s var(--ease);
}

.prose a:hover { border-color: var(--fg); }

.prose ul { margin: 0 0 1.4em; padding-left: 1.1em; color: #d8d8d8; }
.prose li { margin-bottom: 0.5em; }

/* --- Contact --------------------------------------------------------------- */

.contact-mail {
  display: inline-block;
  margin: 6px 0 34px;
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 400;
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--rule-lit);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease);
}

.contact-mail:hover { border-color: var(--fg); }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-sm);
  text-transform: uppercase;
  color: var(--dimmer);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #0a0a0a;
  border: 1px solid var(--rule);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rule-lit);
}

.field textarea { min-height: 150px; resize: vertical; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  background: transparent;
  border: 1px solid var(--rule-lit);
  color: var(--fg);
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-sm);
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* --- Lightbox -------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.96);
  padding: var(--pad);
}

.lightbox[data-open="true"] { display: grid; }

.lightbox-inner { width: 100%; max-width: 1200px; }

.lightbox-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-bar {
  display: flex;
  align-items: baseline;
  gap: var(--gap);
  margin-top: 16px;
}

.lightbox-bar h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
}

.lightbox-out {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-sm);
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--rule-lit);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lightbox-out:hover { color: var(--fg); border-color: var(--fg); }

.lightbox-out[hidden] { display: none; }

.lightbox-close {
  background: none;
  border: 0;
  color: var(--dim);
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-sm);
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.lightbox-close:hover { color: var(--fg); }

/* --- Footer ---------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: 34px 46px;
}

.foot-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: var(--track-sm);
  text-transform: uppercase;
  color: var(--dimmer);
}

.foot-inner a { transition: color 0.25s var(--ease); }
.foot-inner a:hover { color: var(--fg); }

/* --- Motion --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .frame video { opacity: 1; }
}
