/* Pictorial layer — the same composition live on staging.calibrhq.com, ported
   from apps/web/src/app/pictorial.css. The waitlist already ran the eucalyptus
   tokens, but its hero was type-on-paper with the film boxed off to one side
   and a stray rule above the headline, so it read as a different product.
   Here the film becomes the ground and the header floats over it, exactly as
   the app does. */

.pictorial-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  align-items: end;
  overflow: hidden;
  border-bottom: 0;
  background: #08140f;
  color: #fff;
}

.pictorial-hero-media,
.pictorial-hero-media::after {
  position: absolute;
  inset: 0;
}

.pictorial-hero-media {
  z-index: -1;
  background: url("media/dts-run-club-poster.jpg") center / cover no-repeat;
}

.pictorial-hero-media video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}

.pictorial-hero-media::after {
  content: "";
  background:
    linear-gradient(180deg, rgb(3 10 8 / 12%) 0%, rgb(3 10 8 / 5%) 40%, rgb(3 10 8 / 88%) 100%),
    linear-gradient(90deg, rgb(3 10 8 / 44%) 0%, transparent 62%);
}

/* Full-bleed rather than the site's centred .wrap: the h1 below is a 3-column
   grid, so a narrow measure collapses the words into "Build.Deliver.Connect."
   with no air between them. The app pads from the viewport edge for the same
   reason. */
.pictorial-hero-content {
  width: 100%;
  padding: 9rem clamp(1rem, 3vw, 3rem) clamp(2rem, 4vw, 3rem);
}

.pictorial-hero h1 {
  display: grid;
  grid-template-columns: 1.02fr 1.17fr 1fr;
  gap: 0.05em;
  margin: 0;
  border-top: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3.15rem, 9vw, 9.125rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.pictorial-hero h1 span:nth-child(2) { text-align: center; }
.pictorial-hero h1 span:last-child { text-align: right; }

.pictorial-hero h1 span {
  animation: pictorial-hero-word 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pictorial-hero h1 span:nth-child(2) { animation-delay: 90ms; }
.pictorial-hero h1 span:nth-child(3) { animation-delay: 180ms; }

@keyframes pictorial-hero-word {
  from { opacity: 0; transform: translateY(34px); }
}

.pictorial-hero .lede {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: rgb(255 255 255 / 84%);
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.5;
}

.pictorial-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.pictorial-hero .primary-link {
  margin-top: 0;
  border-radius: 4px;
  background: var(--wattle);
  color: var(--ink);
}

.pictorial-hero .primary-link:hover { background: var(--wattle-press); }

.pictorial-hero-credit {
  margin: 1.75rem 0 0;
  color: rgb(255 255 255 / 62%);
  font-family: var(--font-data);
  font-size: 12px;
}

/* ---- header over the hero ------------------------------------------------ */

.pictorial-page header.site {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgb(255 255 255 / 20%);
  background: rgb(16 35 28 / 75%);
  backdrop-filter: blur(12px);
}

.pictorial-page header.site .mark { color: #fff; }

.pictorial-page header.site .switch {
  border-color: rgb(255 255 255 / 50%);
  background: transparent;
  color: #fff;
}

.pictorial-page header.site .switch:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 10%);
}

@media (prefers-reduced-motion: reduce) {
  .pictorial-hero h1 span { animation: none; }
  .pictorial-hero-media video { display: none; }
}

/* Below 640px the three-column h1 squeezes each word into a third of a phone
   screen, so it stacks — same breakpoint and treatment as the app
   (apps/web/src/app/pictorial.css). Ported in response to codex P2 on #527. */
@media (max-width: 640px) {
  .pictorial-hero-content { padding-bottom: 1.5rem; }

  .pictorial-hero h1 {
    display: block;
    font-size: clamp(3.1rem, 17vw, 5rem);
    line-height: .86;
  }

  .pictorial-hero h1 span {
    display: block;
    text-align: left !important;
  }
}
