/* ============================================================
   The Director Speaks: profile card (inspired by the ref card)
   A dark rounded card floating on a light section: a large B&W
   portrait on the left that enlarges into colour + plays a clip on
   hover, and on the right an eyebrow, name, role, a pull-quote, a
   short bio, a signature flourish and social links.
   Namespaced .dir-* ; hover-video driven by director-speaks.js.
   ============================================================ */

.dir-section { position: relative; }
.dir-inner { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--pad); }

.dir-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(70, 104, 232, .28), transparent 55%),
    linear-gradient(155deg, #10131f 0%, #0b0e17 60%, #090b12 100%);
  box-shadow: 0 40px 90px -46px rgba(8, 10, 20, .7);
  isolation: isolate;
}

/* ---- portrait ---- */
.dir-media {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(180deg, #c7d4ff 0%, #eef2ff 100%);
}
.dir-img,
.dir-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.dir-img {
  /* Sid sits left-of-centre in the frame; bias the crop so his face
     stays centred in the portrait-ish card at every aspect ratio. */
  object-position: 42% top;
}
.dir-video { opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.dir-media.is-playing .dir-video { opacity: 1; pointer-events: auto; }

.dir-play {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 12px; border-radius: 100px; border: 0;
  background: rgba(255, 255, 255, .9); color: #101426;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer;
  transition: background .3s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
}
.dir-play:hover { background: #fff; transform: translateY(-2px); }
.dir-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dir-play svg { width: 16px; height: 16px; margin-left: 1px; }
/* once the clip is running the button steps aside for the native controls */
.dir-media.is-playing .dir-play { opacity: 0; transform: translateY(6px); pointer-events: none; }

/* ---- content ---- */
.dir-body {
  color: #fff;
  padding: clamp(30px, calc(4 * var(--fv, 1vw)), 60px) clamp(26px, calc(3.6 * var(--fv, 1vw)), 56px);
  display: flex; flex-direction: column; justify-content: center;
}
.dir-eyebrow {
  font-family: 'Oswald', 'Bricolage Grotesque', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.dir-eyebrow::after { content: ""; width: 46px; height: 2px; background: var(--accent); opacity: .8; }
.dir-name {
  font-size: clamp(30px, calc(4 * var(--fv, 1vw)), 52px); font-weight: 700; line-height: 1.02; letter-spacing: -.02em;
  margin: 16px 0 6px; color: #fff;
}
.dir-role { font-size: 14.5px; color: rgba(255, 255, 255, .55); margin: 0 0 clamp(18px, calc(2.4 * var(--fv, 1vw)), 28px); }

.dir-quote {
  position: relative;
  font-size: clamp(19px, calc(1.9 * var(--fv, 1vw)), 26px); font-weight: 500; line-height: 1.32; letter-spacing: -.01em;
  color: #eef1ff; margin: 0 0 18px; padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.dir-bio { font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .62); margin: 0 0 clamp(20px, calc(2.4 * var(--fv, 1vw)), 30px); max-width: 60ch; }

.dir-sign { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 22px; }
/* the signature is dark ink on transparent; the card is dark, so knock it to white */
.dir-sign-img { display: block; width: 190px; height: auto; filter: brightness(0) invert(1); opacity: .88; }
.dir-sign-name {
  font-family: 'Bricolage Grotesque', sans-serif; font-style: italic;
  font-size: 15px; color: rgba(255, 255, 255, .5);
}

/* ---- socials ---- */
.dir-socials { display: flex; align-items: center; gap: 12px; }
.dir-soc {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .07); color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.dir-soc svg { width: 17px; height: 17px; }
.dir-soc:hover { background: var(--accent); border-color: transparent; color: #fff; transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .dir-video, .dir-play { transition: none; }
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .dir-card { grid-template-columns: 1fr; }
  .dir-media { min-height: 340px; aspect-ratio: 16 / 11; }
  .dir-play { opacity: 1; }
}
@media (max-width: 480px) {
  .dir-card { border-radius: 20px; }
  .dir-media { aspect-ratio: 4 / 3; min-height: 0; }
  .dir-sign-img { width: 150px; }
}
