/*
 * /product-demos (product-demos.html; approved by Ariel, 12 November 2026). Loaded after page.css (tokens, header,
 * menu, button, closing band and footer), booking.css and lightbox.css (the film player), before header.css.
 *
 * A cream hero with the promise and the sample-data note, then one section per film: a large 16:9 card in the home
 * page card's look (glass rim, diagonal light, glass play button, soft drop shadow and a contact shadow on the ground)
 * and, beside it, the length, the title, one sentence and Watch. The text sits right of the card, then left, by
 * position (odd and even sections). Phones and portrait tablets: the card spans the column and the text follows it.
 * No inline styles.
 */

[data-page="product-demos"] {
  --max: 1240px;
  --card-r: 24px;
}

/* ---------------------------------------------------------------- hero */

.dm-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

/* A low sunrise light from the top right (the closing band's t6s) and the site's grain, over the cream. */
.dm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(64% 100% at 90% 0%, rgba(220, 183, 160, 0.36), rgba(220, 183, 160, 0) 72%);
}

.dm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  background-image: var(--grain);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}

.dm-hero-in {
  max-width: calc(var(--max) + 2 * var(--gut));
  margin: 0 auto;
  padding: 208px var(--gut) 96px;
}

.dm-h1 {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 0.98;
  /* Optical: the large word's side bearing, so its stem lines up with the column. */
  margin-left: -0.04em;
  text-wrap: balance;
}

.dm-lede {
  margin-top: 28px;
  max-width: 38em;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* The sample-data note: the glass chip with the live dot that the home page's scene tags use. */
.dm-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 14px 34px -18px rgba(50, 60, 30, 0.55);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink-3);
}

.dm-badge-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c9a3a;
  box-shadow: 0 0 0 3px rgba(44, 154, 58, 0.16);
}

/* ---------------------------------------------------------------- films */

.films {
  max-width: calc(var(--max) + 2 * var(--gut));
  margin: 0 auto;
  padding: 8px var(--gut) 168px;
}

.film {
  display: grid;
  grid-template-columns: minmax(0, 63fr) minmax(0, 37fr);
  align-items: center;
  padding: 64px 0 112px;
}

/* Even positions: the text on the left, the card on the right. */
.film:nth-child(even) {
  grid-template-columns: minmax(0, 37fr) minmax(0, 63fr);
}

.film:nth-child(even) .film-media {
  order: 2;
}

.film-copy {
  padding-left: 72px;
}

.film:nth-child(even) .film-copy {
  padding-left: 0;
  padding-right: 72px;
}

/* The card: the home page's card, flat and larger. Sizes in the card's own width (cqw). */
.film-media {
  position: relative;
  container-type: inline-size;
}

/* Contact shadow: the soft blurred ellipse on the ground under the card (styles.css .cf-card::after). */
.film-media::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: calc(100% + 3.2cqw);
  height: 7cqw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 40, 25, 0.3), rgba(30, 40, 25, 0.12) 55%, rgba(30, 40, 25, 0));
  filter: blur(1.4cqw);
  pointer-events: none;
  transition:
    transform 0.6s var(--ease),
    opacity 0.6s var(--ease);
}

.film-card {
  --play: clamp(56px, 11cqw, 88px);
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--card-r);
  overflow: hidden;
  background: #d9d6cf;
  cursor: pointer;
  box-shadow:
    0 40px 90px -30px rgba(30, 40, 25, 0.55),
    0 12px 30px -12px rgba(30, 40, 25, 0.35);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}

.film-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

/* Glass: the home card's diagonal light and a soft sheen. */
.film-shine {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 45%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 35%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--play);
  height: var(--play);
  margin: calc(var(--play) / -2) 0 0 calc(var(--play) / -2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s var(--ease);
}

.film-play svg {
  width: 32%;
  height: 32%;
  margin-left: 7%;
}

.film-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 50px 100px -32px rgba(30, 40, 25, 0.58),
    0 16px 34px -14px rgba(30, 40, 25, 0.36);
}

.film-media:has(.film-card:hover)::after {
  transform: scale(0.96);
  opacity: 0.85;
}

.film-card:hover .film-poster {
  transform: scale(1.02);
}

.film-card:hover .film-play {
  transform: scale(1.07);
}

.film-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

/* The words beside the card. */
.film-len {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 560;
  letter-spacing: -0.003em;
  line-height: 1.2;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.film-len-icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--green);
}

.film-title {
  margin-top: 16px;
  font-size: 34px;
  font-weight: 620;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
}

.film-line {
  margin-top: 16px;
  max-width: 27em;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Watch: a glass pill with a small green play disc. */
.film-watch {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 48px;
  margin-top: 28px;
  padding: 0 22px 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 10px 26px -14px rgba(40, 50, 30, 0.45);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.film-watch-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow:
    0 6px 14px -6px rgba(30, 90, 35, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.film-watch-icon svg {
  width: 11px;
  height: 11px;
  margin-left: 2px;
}

.film-watch:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 14px 30px -14px rgba(40, 50, 30, 0.5);
}

.film-watch:active {
  transform: translateY(0);
}

/* ---------------------------------------------------------------- tablets */

@media (max-width: 1100px) {
  .film-copy {
    padding-left: 48px;
  }

  .film:nth-child(even) .film-copy {
    padding-right: 48px;
  }

  .film-title {
    font-size: 29px;
  }

  .film-line {
    font-size: 16px;
  }
}

/* ---------------------------------------------------------------- stacked: phones and portrait tablets */

@media (max-width: 859px) {
  [data-page="product-demos"] {
    --card-r: 18px;
  }

  .dm-hero-in {
    padding: 120px var(--gut) 56px;
  }

  .dm-h1 {
    font-size: min(12.4vw, 64px);
    line-height: 1;
  }

  .dm-lede {
    margin-top: 18px;
    font-size: 17px;
  }

  .dm-badge {
    margin-top: 22px;
    font-size: 13px;
    padding: 7px 12px 7px 10px;
  }

  .films {
    padding-bottom: 96px;
  }

  .film,
  .film:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 0 56px;
  }

  .film:first-child {
    padding-top: 8px;
  }

  .film:nth-child(even) .film-media {
    order: 0;
  }

  .film-copy,
  .film:nth-child(even) .film-copy {
    padding: 0;
    /* Clear of the card's contact shadow. */
    margin-top: 44px;
  }

  .film-title {
    margin-top: 12px;
    font-size: 25px;
  }

  .film-line {
    margin-top: 10px;
    font-size: 16px;
  }

  .film-watch {
    margin-top: 22px;
    height: 46px;
  }
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .film-card,
  .film-poster,
  .film-play,
  .film-watch,
  .film-media::after {
    transition: none;
  }

  .film-card:hover,
  .film-card:hover .film-poster {
    transform: none;
  }
}

/* ---------------------------------------------------------------- reduced transparency: solid glass */

@media (prefers-reduced-transparency: reduce) {
  .dm-badge,
  .film-watch,
  .film-play {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #fbf8f2;
  }
}
