/* =============================================================
   Additions on top of style.css
   1. full-bleed cover hero (homepage)   2. list rows without an image
   3. text-only project hero             4. "media pending" placeholder
   5. video player                       6. footer e-mail link
   7. horizontal gutter fix
   ============================================================= */

/* ---------- 1. full-bleed cover hero (homepage) ---------- */
.hero-cover { min-height: 100svh; }

.hero-cover .phero__body { padding-bottom: clamp(72px, 14vh, 150px); }

.hero-cover__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 16px 0 14px;
}

.hero-cover__sub {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(22px, 4vh, 36px);
  color: rgba(244, 241, 236, 0.78);
}

.hero-cover__sub::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(244, 241, 236, 0.26);
}

.hero-cover__statement {
  max-width: 52ch;
  margin-bottom: clamp(24px, 4vh, 38px);
  font-size: clamp(0.95rem, 1.1vw, 1.06rem);
  color: rgba(244, 241, 236, 0.86);
}

.hero-cover__caption {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  z-index: 2;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.6);
}

.arrow-link--light { color: #f4f1ec; border-bottom-color: rgba(244, 241, 236, 0.42); }
.arrow-link--light:hover { color: #fff; border-color: #fff; }

/* ---------- 1. work rows without an image ---------- */
.work__thumb--empty {
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}

.work__thumb--empty span {
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}

/* ---------- 2. text-only project hero ---------- */
.phero--text { min-height: clamp(300px, 50vh, 520px); }
.phero--text .phero__scrim { display: none; }
.phero--text .phero__body { color: var(--ink); }
.phero--text .phero__num,
.phero--text .phero__sub,
.phero--text .phero__tags span { color: var(--muted); }

/* ---------- 3. media pending placeholder ---------- */
.placeholder {
  margin-top: clamp(24px, 4vh, 40px);
  padding: clamp(20px, 4vh, 40px);
  border: 1px dashed var(--rule-strong);
  background: var(--paper-2);
}

.placeholder p {
  margin: 0;
  max-width: 54ch;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.9;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.placeholder strong { font-weight: 500; color: var(--ink-soft); }

/* ---------- 4. video player ---------- */
.player {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #100f0d;
  color: #f2efe9;
}

.player__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #100f0d;
  cursor: pointer;
}

.player.is-portrait .player__video { aspect-ratio: 9 / 16; }

.player__bigplay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: rgba(12, 11, 10, 0.22);
  color: #f4f1ec;
  cursor: pointer;
  transition: background 0.35s var(--ease), opacity 0.35s var(--ease);
}

.player__bigplay svg {
  width: 62px;
  height: 62px;
  fill: currentColor;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
}

.player__bigplay:hover { background: rgba(12, 11, 10, 0.34); }
.player__bigplay[hidden] { display: none; }

.player__bar {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 14px 10px;
  background: linear-gradient(180deg, rgba(12, 11, 10, 0) 0%, rgba(12, 11, 10, 0.72) 100%);
}

.player__btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.player__btn svg { width: 15px; height: 15px; fill: currentColor; }
.player__btn:hover { opacity: 1; transform: scale(1.08); }

.player__track {
  position: relative;
  flex: 1 1 auto;
  height: 18px;
  cursor: pointer;
  touch-action: none;
}

.player__track::before {
  content: "";
  position: absolute;
  inset: 8px 0 auto 0;
  height: 2px;
  background: rgba(244, 241, 236, 0.28);
}

.player__buffer,
.player__progress {
  position: absolute;
  top: 8px;
  left: 0;
  height: 2px;
}

.player__buffer { background: rgba(244, 241, 236, 0.24); }
.player__progress { width: 0; background: var(--accent); }

.player__knob {
  position: absolute;
  top: 9px;
  left: 0;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #f4f1ec;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.player__track:hover .player__knob,
.player__track:focus-visible .player__knob { opacity: 1; }

.player__time {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(244, 241, 236, 0.86);
  font-variant-numeric: tabular-nums;
}

.player:fullscreen,
.player:-webkit-full-screen { width: 100vw; height: 100vh; border: 0; }

.player:fullscreen .player__video,
.player:-webkit-full-screen .player__video { height: 100%; aspect-ratio: auto; }

.player__hint {
  position: absolute;
  right: 14px;
  bottom: 42px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.6);
  pointer-events: none;
}

/* media figure holding a player */
.media--player { background: transparent; overflow: visible; }
.media--player .player { border-color: var(--rule-strong); }

/* ---------- modal with a video ---------- */
.modal__box.is-media {
  display: block;
  padding: 0;
  border-color: rgba(244, 241, 236, 0.16);
}

.modal__box.is-media .player { width: 100%; height: 100%; border: 0; }
.modal__box.is-media .player__video { height: 100%; aspect-ratio: auto; }
.modal__box.is-media .modal__title { display: none; }

/* ---------- 6. footer e-mail link ---------- */
.footer__mail {
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.footer__mail:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 7. horizontal gutter fix ---------- */
/* .contents and .footer use the `padding: A 0 B` shorthand, which resets the
   inline padding that .wrap provides, so their content sat flush against the
   screen edge (most visible on narrow screens). Put the gutter back. */
.contents.wrap,
.footer.wrap { padding-inline: var(--gutter); }

@media (max-width: 560px) {
  .player__time { font-size: 0.56rem; }
  .player__bar { gap: 8px; padding: 22px 10px 8px; }
  .hero-cover { min-height: 92svh; }
  .hero-cover__caption { display: none; }
}
