/* Films and Build, the two offer pages. A statement, then a timeline at the scale of
   the work (sixty seconds of film, seven days of building) that you can scrub, then
   the offer laid out as a spec sheet. Built on base.css: one face, hierarchy by size. */
:root {
  --lane: #161616;
  --clip: #1f1f1e;
  --clip-live: #2d2c2a;
  --burn: rgba(0, 0, 0, .72);
}

.page-intro { padding-block: clamp(56px, 11vh, 128px) clamp(32px, 6vh, 64px); display: grid; gap: 24px; }
.page-intro h1 { font-size: var(--s-display); line-height: 1; letter-spacing: -.035em; max-width: 16ch; text-wrap: balance; }
.page-intro p { font-size: var(--s-label); line-height: 1.4; color: var(--mid); max-width: 40ch; }

/* The suite: what is playing, and a timeline that moves with it */
.suite { display: grid; gap: 14px; }
.monitor { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #000; border-radius: 4px; overflow: hidden; }
.monitor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.burn { position: absolute; top: 3%; background: var(--burn); color: var(--fg); font: 12px/1 var(--mono-face); letter-spacing: .06em; padding: 7px 9px; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.burn.l { left: 2%; }
.burn.r { right: 2%; }
/* Controls on the picture: a translucent play button in the middle, which steps back while the
   film plays and returns on hover, and a sound switch at the bottom right. */
.monitor button { border: 0; padding: 0; cursor: pointer; color: var(--fg); background: var(--burn); display: grid; place-items: center; }
.monitor button svg { display: block; }
.monitor button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.vplay { position: absolute; left: 50%; top: 50%; width: clamp(56px, 7vw, 88px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .35s var(--ease), background .2s; }
.vplay svg { width: 58%; fill: currentColor; }
.vplay .i-pause { display: none; }
.monitor.playing .vplay { opacity: 0; }
.monitor.playing .vplay .i-play { display: none; }
.monitor.playing .vplay .i-pause { display: block; }
.monitor.playing:hover .vplay, .monitor.playing .vplay:focus-visible { opacity: 1; }
.vplay:hover { background: rgba(0, 0, 0, .65); }
/* Touch screens have no hover: while the film plays the button stays, smaller and quieter, so it can be found. */
@media (hover: none) {
  .monitor.playing .vplay { opacity: .6; width: clamp(44px, 5vw, 56px); }
}
.vsound { position: absolute; right: 2%; bottom: 4%; width: 36px; aspect-ratio: 1; border-radius: 2px; }
.vsound svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vsound svg path:first-child { fill: currentColor; }
.vsound .i-wave { display: none; }
.vsound[aria-pressed="true"] .i-wave { display: block; }
.vsound[aria-pressed="true"] .i-off { display: none; }
.vsound:hover { background: rgba(0, 0, 0, .85); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .vplay { transition: none; } }
.transport { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.transport > .read:only-child { margin-left: auto; }
.transport .btns { display: flex; gap: 24px; font-size: var(--s-label); }
.read { color: var(--mid); font: 13px/1.5 var(--mono-face); letter-spacing: .03em; font-variant-numeric: tabular-nums; }

.tl { --lab: 7ch; position: relative; display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); column-gap: 12px; row-gap: 4px;
  padding-block: 14px 6px; border-top: 1px solid var(--rule); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tl:focus-visible { outline: 1px solid var(--fg); outline-offset: 6px; }
.tl-lab { font: 12px/1 var(--mono-face); color: var(--mid); display: flex; align-items: center; min-width: 0; overflow: hidden; }
.lane { position: relative; height: 32px; background: var(--lane); border-radius: 2px; overflow: hidden; }
.lane.ruler { height: 20px; background: transparent; overflow: visible; }
.tick { position: absolute; top: 0; font: 11px/1 var(--mono-face); color: var(--mid); transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tick::after { content: ""; position: absolute; left: 50%; top: 14px; width: 1px; height: 6px; background: var(--rule); }
.tick.first { transform: none; }
.tick.first::after { left: 0; }
.tick.last { transform: translateX(-100%); }
.tick.last::after { left: auto; right: 0; }
.clip { position: absolute; top: 2px; bottom: 2px; background: var(--clip); border-left: 1px solid var(--ground); color: var(--mid);
  font-size: 12px; line-height: 28px; padding-inline: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .25s, color .25s; }
.clip.live { background: var(--clip-live); color: var(--fg); }
.wave { position: absolute; inset: 0; }
.wave svg { position: absolute; inset: 5px 0; width: 100%; height: calc(100% - 10px); }
.wave rect { fill: var(--rule); }
.wave.played { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.wave.played rect { fill: var(--mid); }
.ph-layer { position: absolute; top: 8px; bottom: 2px; left: calc(var(--lab) + 12px); right: 0; pointer-events: none; }
.ph { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: var(--warm); }
.ph::before { content: ""; position: absolute; top: 0; left: -5px; border-left: 5.5px solid transparent; border-right: 5.5px solid transparent; border-top: 7px solid var(--warm); }
.suite-cap { color: var(--mid); max-width: 70ch; }
/* Data that did not load: a quiet line with Try again (Soup.failed), across a whole grid. */
.load-fail { grid-column: 1 / -1; }
.load-fail button { color: var(--fg); }

/* How it works: three big words, each with one small note */
.beats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.beats li { display: grid; gap: 14px; align-content: start; border-top: 1px solid var(--fg); padding-top: 14px; min-width: 0; }
.beats .k { font: 13px/1.4 var(--mono-face); letter-spacing: .03em; color: var(--mid); }
.beats b { font-weight: 400; font-size: clamp(34px, 5.2vw, 76px); line-height: 1; letter-spacing: -.035em; }

/* The offer as a spec sheet */

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px var(--gap); align-items: start; }
.two .copy { display: grid; gap: 20px; align-content: start; }
.two .copy p { font-size: var(--s-label); line-height: 1.4; color: var(--mid); max-width: 38ch; }
.two .copy p.lead { color: var(--fg); font-size: var(--s-title); line-height: 1.12; letter-spacing: -.02em; max-width: 20ch; }
.two h3 { font-size: var(--s-label); color: var(--mid); margin-bottom: 12px; }
.spec { display: grid; border-top: 1px solid var(--rule); }
.spec li { display: grid; grid-template-columns: 12ch minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec li > span:first-child { color: var(--mid); }
.lines { display: grid; border-top: 1px solid var(--rule); }
.lines li { padding: 14px 0; border-bottom: 1px solid var(--rule); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gap); }
.plans.one { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.plan { border-top: 1px solid var(--fg); padding-top: 20px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.plan .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.plan h3 { font-size: var(--s-title); line-height: 1.1; letter-spacing: -.02em; }
.plan .row > span { color: var(--mid); }
.amount { font-size: var(--s-display); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.amount small { font-size: var(--s-label); letter-spacing: 0; color: var(--mid); margin-left: 6px; }
.plan > p { color: var(--mid); max-width: 40ch; }
.plan > p.amount { color: var(--fg); max-width: none; }
.plan ul { display: grid; gap: 4px; }
.plan-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--gap); margin-top: clamp(40px, 7vh, 72px); }
.plan-foot > div { border-top: 1px solid var(--rule); padding-top: 16px; display: grid; gap: 10px; align-content: start; }
.plan-foot ul { display: grid; gap: 4px; }

/* A quiet line under a section, at label size (research and work). */
.aside { margin-top: 24px; font-size: var(--s-label); line-height: 1.4; color: var(--mid); max-width: 52ch; }

/* One line at title size (Work: the strategy line). */
.lead-line { font-size: var(--s-title); line-height: 1.12; letter-spacing: -.02em; max-width: 26ch; text-wrap: balance; }

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; font-weight: 400; padding: 14px 24px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { color: var(--mid); font-size: 14px; border-bottom-color: var(--fg); }
td.m { font-family: var(--mono-face); font-size: 14px; white-space: nowrap; }

.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gap); }
.qa > div { border-top: 1px solid var(--rule); padding-top: 16px; display: grid; gap: 10px; align-content: start; }
.qa h3 { font-size: var(--s-label); line-height: 1.3; }
.qa p { color: var(--mid); max-width: 46ch; }


@media (max-width: 800px) {
  .beats, .two, .plans, .qa, .plan-foot { grid-template-columns: minmax(0, 1fr); }
  .tl { --lab: 5ch; }
  .burn { font-size: 10px; padding: 5px 6px; }
  .vsound { width: 30px; }
  .vsound svg { width: 16px; }
  .spec li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Questions, folded: one column, each answer opens under its question. */
.qa.fold { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 820px; border-bottom: 1px solid var(--rule); }
.qa.fold details { border-top: 1px solid var(--rule); }
.qa.fold summary { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; cursor: pointer; list-style: none;
  font-size: var(--s-label); line-height: 1.3; }
.qa.fold summary::-webkit-details-marker { display: none; }
.qa.fold summary::after { content: "+"; color: var(--mid); flex: none; }
.qa.fold details[open] summary::after { content: "−"; }
.qa.fold details p { padding-bottom: 20px; }
