/* The call film in the landing page's hero: its heading on the page ("Curious about working with me?", "See
   how I work with Chris.", .film-intro), and under it the glass card (#call) with the two people on the call,
   the film, the live line with the words being spoken, and the Sound on pill. The script is film.js. It sets
   data-film-state ("auto", "sound" or "plain") and data-speaking on #call. Colours, sizes and the glass
   recipe come from styles.css; the hero's two columns are there too (.hero-layout).

   The look is "On a call", Jeramiah's pick on 2026-11-21: a glass call panel, the two people as call chips
   with a ring on whoever is talking, the film, the words on a paper card, and the pill. Nothing lies on the
   picture, so the words keep running with the sound on. The same day he asked for it to open the page, on the
   right of the headline, and later for its heading to stand outside the card, above it, on the page. From
   1001px wide the card is a rounded panel beside the headline; below that it stacks under the headline as
   the same rounded panel, set in from the window's edges. The parts inside are arranged by the card's own
   width (container queries): wide, the faces and the pill share the top row like a call's toolbar, and the
   words sit beside the caption under the film; narrow, everything stacks: faces, film, caption beside the
   pill, words. */

/* The heading and the card, one region named by the heading. The card's side padding and, below 1001px, how
   far it is set in from the window are kept here, so the heading can line up with the film inside the card. */
.hero-call { --call-pad-x: clamp(12px, 1.1vw, 18px); min-width: 0; }

/* "I want to move the text. See how I work with Chris above the bubble. And then I want that to be more bold
   text, a little bit more of like a header style but outside of its text box bubble above." (Jeramiah,
   2026-11-21.) The heading stands on the page's cream just above the card, larger and bolder than it was in
   the card (clamp(24px, 2.05vw, 34px) at 580), and still well under the headline: from 1001px wide the
   headline is more than twice its size. Its left edge is the film's. The kicker came with it. */
.film-intro { margin: 0 0 12px calc(1px + var(--call-pad-x)); }
.film-intro .kicker + h2 { margin-top: 6px; }
.film-intro .section-title { font-size: clamp(28px, 2.7vw, 44px); font-weight: 620; line-height: 1.08; letter-spacing: -.045em; }

.call {
  /* The glass panel's washes (.workflow-stage in styles.css). */
  --film-glass: radial-gradient(ellipse at 24% 105%, #aed9d9 0%, transparent 59%),
    radial-gradient(ellipse at 98% 65%, #d7cfe9 0%, transparent 54%), linear-gradient(120deg, #eff7f4, #ddeef0 62%, #f4f0f8);
  container-type: inline-size;
  position: relative; z-index: 1; min-width: 0; text-align: start;
  border: 1px solid #d5e1e4; background: var(--film-glass);
}
.film-show { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; }

/* The two people on the call, as call chips along the top of the card. The script rings whoever is talking
   (.is-speaking). */
.film-people { grid-column: 1 / -1; grid-row: 1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.film-person {
  --film-face: 36px; display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 4px 14px 4px 4px; border: 1px solid #ffffffd9; border-radius: var(--pill); background: #ffffff85;
}
.film-person.is-speaking { background: white; }
.film-person img {
  flex: 0 0 auto; width: var(--film-face); height: var(--film-face); border-radius: 50%; object-fit: cover; background: #d8cfc1;
  box-shadow: 0 0 0 3px #fdfaf4, 0 0 0 3px transparent, var(--lift);
}
/* With less motion the ring simply appears. */
@media (prefers-reduced-motion: no-preference) { .film-person img { transition: box-shadow .3s var(--ease-out); } }
.film-person.is-speaking img { box-shadow: 0 0 0 3px #fdfaf4, 0 0 0 6px var(--desk-teal), var(--lift); }
.film-name { display: grid; line-height: 1.3; white-space: nowrap; }
.film-name strong { font-size: 15px; font-weight: 620; letter-spacing: -.02em; }
.film-name span { color: var(--muted); font-size: 13px; }

/* The film: the picture, then its caption. The figure lends the call's rows and columns to its caption and
   picture (subgrid), so the caption can sit beside the pill or the words. */
.film { grid-column: 1 / -1; grid-row: 2 / span 2; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; min-width: 0; }
.film-screen { grid-column: 1 / -1; grid-row: 1; position: relative; overflow: clip; border-radius: var(--radius); background: #d8cfc1; box-shadow: var(--lift); }
.film-screen video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.film figcaption { grid-column: 1; grid-row: 2; align-self: center; display: grid; gap: 2px; padding-inline: 4px; }
.film figcaption strong { font-size: 15px; font-weight: 650; letter-spacing: -.012em; line-height: 1.3; }
.film figcaption span { color: var(--muted); font-size: 13px; line-height: 1.3; }

/* The live line, on a paper card (.desk-sheet in styles.css): a white sheet with a second one behind it.
   Its words box has a fixed height, so words coming and going never move anything. */
.film-line {
  grid-column: 1 / -1; grid-row: 4;
  position: relative; display: grid; align-content: start; gap: 10px; margin: 2px 6px 8px 0;
  padding: 16px 20px 18px; border: 1px solid white; border-radius: 20px; background: #fcfdfc;
  box-shadow: 0 18px 38px -18px #425a7266;
}
.film-line::before {
  content: ""; position: absolute; z-index: -1; inset: 3px 0 -4px 3px; border: 1px solid white; border-radius: inherit;
  transform: translate(4px, 4px) rotate(1.6deg); background: #ffffff8c; box-shadow: 0 8px 22px #70829d15; pointer-events: none;
}
.film-line::after { content: "\201C"; position: absolute; top: 8px; right: 16px; color: #d9e3e4; font: 62px/1 Georgia, Cambria, serif; }
.film-line-who { display: flex; align-items: center; gap: 9px; min-height: 24px; color: var(--desk-teal); font-size: 12px; font-weight: 650; }
.film-line-face { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #d8cfc1 center / cover no-repeat; visibility: hidden; }
.call[data-speaking]:not([data-speaking=""]) .film-line-face { visibility: visible; }
.film-line-words {
  display: flex; flex-direction: column; justify-content: flex-start; height: 3lh; color: var(--ink);
  font: 400 clamp(17px, 1.4vw, 20px)/1.42 Georgia, Cambria, serif; letter-spacing: -.012em;
}
@media (max-width: 600px) { .film-line-words { font-size: 16px; } }

.film-sound { grid-column: 2; grid-row: 3; align-self: center; }
.film-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Without the script there are no words and nothing for the pill to do, so both are left out. With
   scripting on, their places are kept from the first paint, before film.js has run, and the pill keeps its
   place while it is away, so nothing moves when the script starts or the pill comes and goes. */
.film-sound[hidden] { display: none; }
@media (scripting: enabled) { .film-sound[hidden] { display: inline-flex; visibility: hidden; } }
@media (scripting: none) {
  .film-line { display: none; }
  .call .film figcaption { grid-column: 1 / -1; } /* no card beside it: the caption takes the row under the film */
}
/* The picture's rounded frame clips the film's own focus ring, so the frame shows it instead. */
.film-screen:has(video:focus-visible) { outline: 3px solid #2e659a; outline-offset: 4px; }

/* Wide call: the faces on the left of the top row and the pill on its right, like a call's toolbar (the pill
   as tall as the menu's, 44px); under the film, the words on the left and the caption on the right. The pill
   sits above the film so that it is on a laptop's first screen with the film, now that the heading stands
   over the card, and the rows are a little closer so the first line of words is on his 1568x744 screen too. */
@container (min-width: 470px) {
  .film-show { row-gap: 10px; }
  .film-people { grid-column: 1; align-self: center; }
  .film-sound { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; min-height: 44px; }
  .film figcaption { grid-column: 2; grid-row: 2; align-self: start; padding-top: 14px; }
  .film-line { grid-column: 1; grid-row: 3; margin-block: 0 6px; }
}
/* Wide enough that every line of the captions fits on two lines of the card. */
@container (min-width: 620px) { .film-line-words { height: 2lh; } }
/* Too narrow for the caption beside the pill: the pill takes its own row, the width of the film. */
@container (max-width: 339px) {
  .film figcaption { grid-column: 1 / -1; }
  .film-sound { grid-column: 1 / -1; grid-row: 4; }
  .film-line { grid-row: 5; }
}
/* The smallest phones: slightly smaller chips, so the two faces share one row and the film starts higher. */
@container (max-width: 300px) {
  .film-person { --film-face: 32px; gap: 8px; padding: 3px 11px 3px 3px; }
  .film-name strong { font-size: 14px; }
  .film-name span { font-size: 12px; }
}

/* Beside the headline: a rounded glass panel. */
@media (min-width: 1001px) {
  .call { padding: var(--call-pad-x); border-radius: 36px; box-shadow: inset 0 1px 1px white, var(--lift); }
  .call .film-screen { border-radius: 24px; }
}
/* Under the headline: the same rounded glass card, set in from the window's edges (10px on phones, 24px at
   1000px) instead of a band across the window, so no line or colour step is left at any width. It reaches a
   little into the side margins and its padding is slim, so the film keeps nearly the width it had as a band
   (344px of 350 at a 390 window). The film's corner stays inside the card's. The heading over it moves left
   by as much as the card reaches out, so it still starts where the film does. */
@media (max-width: 1000px) {
  .hero-call { --call-inset: clamp(10px, 2.4vw, 24px); --call-pad-x: clamp(12px, 2.4vw, 24px); }
  .film-intro { margin-left: calc(var(--call-inset) - var(--gutter) + 1px + var(--call-pad-x)); }
  /* Over a card as wide as the window the heading grows with it, up to 36px at 1000px (the headline is 58px). */
  .film-intro .section-title { font-size: clamp(28px, 3.6vw, 36px); }
  .call {
    margin-inline: calc((var(--gutter) - var(--call-inset)) * -1); padding: clamp(14px, 3vw, 28px) var(--call-pad-x);
    border-radius: clamp(22px, 3.6vw, 36px); box-shadow: inset 0 1px 1px white, var(--lift);
  }
  .call .film-screen { border-radius: clamp(14px, 2.4vw, 24px); }
}
@media (forced-colors: active) {
  .film-person.is-speaking img { outline: 3px solid Highlight; outline-offset: 3px; }
}
