/* elite3 — A's clean blocks (reel, six pieces, four shapes, how it starts, the house) inside the old film
   page. Loaded after style.css; uses its tokens (--ink --ink-2 --paper --paper-dim --amber --line). */

.e3-scene { justify-content: flex-start; }

/* players: press to play with sound */
.pl { margin: 0; min-width: 0; }
.pl-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--ink-2); position: relative; overflow: hidden; cursor: pointer; }
.pl-btn video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pl[data-shape="16x9"] .pl-btn { aspect-ratio: 16 / 9; }
.pl[data-shape="9x16"] .pl-btn { aspect-ratio: 9 / 16; }
.pl[data-shape="4x5"] .pl-btn { aspect-ratio: 4 / 5; }
.pl[data-shape="1x1"] .pl-btn { aspect-ratio: 1 / 1; }
.pl-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgba(242,239,232,0.75); background: rgba(10,10,11,0.45); transition: opacity 0.2s, border-color 0.2s; }
.pl-btn::before { content: ""; position: absolute; left: calc(50% - 6px); top: calc(50% - 9px); z-index: 2; border-left: 15px solid var(--paper); border-top: 9px solid transparent; border-bottom: 9px solid transparent; transition: opacity 0.2s; }
.pl-btn:hover::after { border-color: var(--amber); }
.pl.is-playing .pl-btn::after, .pl.is-playing .pl-btn::before { opacity: 0; }
.pl figcaption { margin-top: 10px; color: var(--paper-dim); line-height: 1.5; }

/* the header film belongs to the first panel; below it the dots carry the page */
.hero-video-wrap { transition: opacity 0.9s ease; }
.e3-past-hero .hero-video-wrap { opacity: 0; }

/* the reel = the program monitor: fits one screen, a bar with the live timecode on top */
.e3-reel { width: 100%; max-width: calc((100vh - 300px) * 16 / 9); }
.e3-mon { display: flex; justify-content: space-between; gap: 18px; padding: 9px 14px; border: 1px solid var(--line); border-bottom: 0;
  background: var(--ink-2); color: var(--paper-dim); }
.e3-mon-k { color: var(--rec); }
#e3ReelTc { color: var(--paper); font-variant-numeric: tabular-nums; }
.e3-under { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; width: 100%;
  max-width: calc((100vh - 300px) * 16 / 9); margin-top: 26px; }
.e3-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 4.2vw, 76px); line-height: 0.95; letter-spacing: 0.01em; }
.e3-under-lede { color: var(--paper-dim); max-width: 48ch; }
.e3-under-lede .mono { display: block; margin-top: 10px; color: var(--amber); }
/* very wide screens (Leonard's is 2700×1010): the words sit beside the monitor, not under the fold */
@media (min-aspect-ratio: 2/1) and (min-width: 1400px) {
  #reel.e3-scene { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 64px; align-content: start; }
  #reel .slate { grid-column: 1 / -1; }
  #reel .e3-reel { grid-column: 1; width: calc((100vh - 300px) * 16 / 9); }
  #reel .e3-under { grid-column: 2; align-self: end; flex-direction: column; align-items: flex-start; margin: 0; max-width: 560px; }
  #reel .e3-title { font-size: clamp(56px, 4.6vw, 110px); }
}

/* media bin: the clip and its length on every thumbnail */
.tile-media { position: relative; }
.tc-chip { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 3px 8px; color: var(--paper);
  background: rgba(10,10,11,0.8); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.e3-reel .pl-btn::after { width: 84px; height: 84px; }
.e3-reel .pl-btn::before { left: calc(50% - 8px); top: calc(50% - 13px); border-left-width: 22px; border-top-width: 13px; border-bottom-width: 13px; }

/* six pieces: still poster, moves on hover */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; width: 100%; }
@media (min-width: 1200px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: block; border: 1px solid var(--line); background: var(--ink-2); transition: border-color 0.25s; }
.tile:hover { border-color: var(--amber); }
.tile-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.tile-media video, .tile-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s; }
.tile:hover .tile-media video, .tile:hover .tile-media img { transform: scale(1.02); }
.tile-cap { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.tile-cap b { font-weight: 500; font-size: 17px; }
.tile-cap .mono { color: var(--paper-dim); }
/* five pieces (2 Nov 2026): the idents lead, twice the size; a 4:5 film shows whole inside its 16:9 frame */
.tile.is-big { grid-column: span 2; }
/* wide screens: four columns — the idents take a 2 × 2 block, the other four sit beside it, the whole bin fits one screen */
@media (min-width: 1200px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile.is-big { grid-row: span 2; display: flex; flex-direction: column; }
  .tile.is-big .tile-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
}
.tile-cap b { font-size: 17px; }
.tile.is-big .tile-cap b { font-size: 21px; }
.tile-media.is-contain { background: #0b1736; }
.tile-media.is-contain video { object-fit: contain; object-position: center; }
.also { color: var(--paper-dim); margin-top: 28px; line-height: 2; }
.also a { color: var(--paper); } .also a:hover { color: var(--amber); }

/* one ad, four shapes, one height */
.e3-shapes { display: grid; grid-template-columns: 8.4375fr 12fr 15fr 26.667fr; gap: 18px; align-items: start; width: 100%; }

/* how it starts */
.qs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; width: 100%; max-width: 1200px; }
.q { border: 1px solid var(--line); padding: 24px 26px; }
.q-no { color: var(--amber); } .q p { font-size: 24px; margin: 8px 0 6px; } .q .q-opt { color: var(--paper-dim); font-size: 11px; line-height: 1.8; }
.e3-lede { margin: 32px 0 0; max-width: 640px; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1px solid var(--line); margin: 32px 0 20px; width: 100%; max-width: 1200px; }
.prices > div { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.prices > div:last-child { border-right: 0; }
.prices b { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: 0.02em; }
.prices span { color: var(--paper-dim); font-size: 15px; }
.prices a, .e3-more a { color: var(--amber); }

/* the house: the portfolio portrait in the house look — black and white, dark edges */
.who { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 48px; align-items: center; width: 100%; }
.who-frame { position: relative; display: block; border: 1px solid var(--line); overflow: hidden; }
.who-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(10,10,11,0) 52%, rgba(10,10,11,0.6) 100%); }
.who-img { display: block; width: 100%; filter: grayscale(1) contrast(1.12) brightness(0.92); }
.who-text h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6vw, 96px); line-height: 0.94; letter-spacing: 0.01em; margin-bottom: 20px; }
.who-text > .mono:first-child { color: var(--amber); margin-bottom: 14px; }
.who-text .lede { color: var(--paper-dim); font-size: 17px; max-width: 58ch; }
.who-text .lede + .mono { margin-top: 22px; }
.who-text .mono a { color: var(--paper); } .who-text .mono a:hover { color: var(--amber); }

@media (max-width: 980px) {
  .e3-shapes { grid-template-columns: 8.4375fr 12fr; }
  .who { grid-template-columns: 1fr; }
  .who-frame { max-width: 320px; }
}
@media (max-width: 720px) {
  .tiles, .qs { grid-template-columns: 1fr; }
  .tile.is-big { grid-column: auto; }
  .e3-shapes { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile-media video, .tile-media img { transition: none; }
}

/* tap targets: the footer links reach 24 px */
.footer-links a { display: inline-block; padding: 6px 0; }
