/* Real app recordings on the homepage (29 Nov 2026). Every moving picture in "Inputs to outputs", "What are you
   making?" and "One Mac. The whole workflow." is a clip cut from a real recording of the CamSwitch window
   (media/real/clips/). real-clips.js loads a clip only when it is near the screen, plays it only while visible,
   and lights the small captions and chips at the right moments. Reduced motion shows the still first frame. */

.rc { position: relative; overflow: hidden; background: #0e0f10; container-type: inline-size; }
.rc video, .rc > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rc video { opacity: 0; transition: opacity .35s; }
.rc.rc-live video { opacity: 1; }
.rc-tag {
  position: absolute; top: 10px; left: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 6px; background: #0b0b0cd9; color: #e9e7e1;
  font: 600 10.5px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase;
}
.rc-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34c759; }
/* Timed captions: plain words for what the app is doing right now. */
.rc-caps { position: absolute; left: 12px; right: 58px; bottom: 12px; z-index: 3; min-height: 32px; pointer-events: none; }
.rc-caps span {
  position: absolute; left: 0; bottom: 0; max-width: 100%; padding: 7px 12px; border-radius: 8px;
  border-left: 3px solid var(--warm); background: #0b0b0ce6; color: #fff;
  font-size: clamp(12.5px, 2.5cqw, 15px); font-weight: 600; line-height: 1.3;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.rc-caps span.on { opacity: 1; transform: none; }
/* Chips that follow the recording (which camera is live, which look is on). */
.rc-chips { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 5px; }
.rc-chips span {
  padding: 4px 8px; border-radius: 6px; background: #0b0b0cc7; border: 1px solid #ffffff1f; color: #b9b7af;
  font: 600 11px/1.2 var(--sans); transition: background .25s, color .25s, border-color .25s;
}
.rc-chips span.on { background: var(--warm); border-color: var(--warm); color: #17120f; }
.rc-pause {
  position: absolute; right: 10px; bottom: 10px; z-index: 4; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid #ffffff33; background: #0b0b0ccc; color: #f1eee6; cursor: pointer;
}
.rc-pause:hover { border-color: var(--warm); }
.rc-pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rc-pause .rc-r { display: none; fill: currentColor; }
.rc-pause[aria-pressed="true"] .rc-p { display: none; }
.rc-pause[aria-pressed="true"] .rc-r { display: block; }

/* ---------- What are you making? ---------- */
.workflow-visual.rc { background: #0e0f10; }
.workflow-visual.rc .workflow-chip { display: none; }

/* ---------- One Mac. The whole workflow. ---------- */
.home-feature-card .feature-evidence.rc { aspect-ratio: 16 / 10; margin: 0; }
.home-feature-card .feature-evidence.rc :is(video, img) { transform: none; aspect-ratio: auto; }
.home-feature-card .feature-evidence.rc figcaption {
  position: absolute; left: 10px; top: 10px; bottom: auto; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border: 0; border-radius: 6px; background: #0b0b0cd9; color: #e9e7e1;
  font: 600 10.5px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase;
}
.home-feature-card .feature-evidence.rc figcaption::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34c759; }
.home-feature-card .rc-chips { top: auto; bottom: 10px; left: 10px; right: auto; flex-wrap: wrap; }
.rc-golive {
  position: absolute; right: 4%; top: 12%; width: 44%; z-index: 2; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px #ffffff26, 0 18px 40px -8px #000d;
}
.rc-golive img { position: static; display: block; width: 100%; height: auto; }
.rc-streams { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: flex; gap: 6px; }
.rc-streams span {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: #0b0b0cd9; border: 1px solid #ffffff26;
}
.rc-streams img { position: static; width: 18px; height: 18px; }
.rc-streams span::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: #ff4e46; box-shadow: 0 0 0 2px #151516; }
.rc-all-toggle {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 8px;
  border: 1px solid #ffffff26; background: #ffffff08; color: #e9e7e1; font-size: 14px; font-weight: 600; cursor: pointer;
}
.rc-all-toggle:hover { border-color: var(--warm); }
.home-feature-overview .section-head { align-items: end; }
.hf-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Inputs to outputs: the film above the map ---------- */
.atlas-film {
  display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 36px); align-items: center;
  padding: clamp(16px, 2vw, 28px); border-bottom: 1px solid #553c2d;
  background: radial-gradient(80% 120% at 0% 0%, #3a2a2180, transparent 60%), #17191a;
}
.af-copy { min-width: 0; }
.af-eyebrow { margin: 0 0 12px; display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #ffb088; }
.af-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c759; }
.af-title { margin: 0; font-size: clamp(28px, 3.1vw, 46px); font-weight: 600; letter-spacing: -.05em; line-height: 1.02; color: #f9eee3; }
.af-text { margin: 14px 0 0; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.5; color: #d0c7bd; }
.af-points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.af-points li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 8px;
  border: 1px solid #ffffff1f; background: #ffffff08; color: #b9b7af; font-size: 13.5px; font-weight: 600;
  transition: background .25s, color .25s, border-color .25s;
}
.af-points li img { width: 16px; height: 16px; }
.af-points li.on { background: var(--warm); border-color: var(--warm); color: #17120f; }
.af-points li.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff4e46; }
.af-screen { position: relative; justify-self: stretch; }
.af-screen .rc { border-radius: 12px; border: 1px solid #ffffff24; box-shadow: 0 30px 70px -30px #000, 0 20px 60px -30px #ff723b40; aspect-ratio: 16 / 10; }
.atlas-film[data-shape="wide"] .rc { aspect-ratio: 16 / 9; }
.atlas-film[data-shape="tall"] .af-screen { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; justify-content: center; }
.atlas-film[data-shape="tall"] .rc { aspect-ratio: 9 / 16; height: min(46vw, 460px); border-radius: 26px; border: 5px solid #2b2c2f; }
.af-side { display: none; }
.atlas-film[data-shape="tall"] .af-side { display: block; }
.af-side .rc { aspect-ratio: 16 / 9 !important; height: auto !important; border-radius: 12px !important; border: 1px solid #ffffff24 !important; }
.af-side p { margin: 10px 0 0; font: 600 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #a9a79e; }
/* Eye contact: the app's own before and after stills, with a slider. */
.af-eyes { position: relative; aspect-ratio: 780 / 286; border-radius: 12px; overflow: hidden; border: 1px solid #ffffff24; background: #0e0f10; }
.af-eyes img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.af-eyes .af-after { clip-path: inset(0 calc(100% - var(--wipe, 50%)) 0 0); }
.af-eyes i { position: absolute; top: 0; bottom: 0; left: var(--wipe, 50%); width: 2px; margin-left: -1px; background: #ffad72; box-shadow: 0 0 12px #ff723b; }
.af-eyes b { position: absolute; top: 10px; padding: 4px 9px; border-radius: 6px; background: #0b0b0cd9; color: #fff; font: 600 11px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.af-eyes b:first-of-type { left: 10px; }
.af-eyes b:last-of-type { right: 10px; background: var(--warm); color: #17120f; }
.af-note { margin: 10px 0 0; font-size: 13px; color: #a9a79e; }
.atlas-film [hidden] { display: none !important; }

@media (max-width: 860px) {
  .atlas-film { grid-template-columns: 1fr; }
  .atlas-film[data-shape="tall"] .af-screen { grid-template-columns: 1fr; justify-items: center; }
  .atlas-film[data-shape="tall"] .af-side { display: none; }
  .atlas-film[data-shape="tall"] .rc { height: 360px; }
  .rc-chips span { font-size: 10px; padding: 3px 6px; }
  .rc-golive { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rc video { transition: none; }
  .rc-caps span, .rc-chips span, .af-points li { transition: none; }
}
.home-feature-card .rc-golive img { position: static; width: 100%; height: auto; }
.home-feature-card .rc-streams img { position: static; width: 18px; height: 18px; }
/* Film: captions under the recording, and a sensible largest size so the map still peeks in below. */
.af-screen { max-width: 820px; justify-self: end; width: 100%; }
.af-caps { position: relative; left: auto; right: auto; bottom: auto; margin-top: 12px; min-height: 36px; grid-column: 1 / -1; }
.af-caps span { font-size: 15px; background: #ffffff0d; }
.atlas-film[data-shape="tall"] .af-screen { max-width: 620px; }
/* Same height for every demo, so the page doesn't jump when the tour moves on. */
@media (min-width: 861px) {
  .atlas-film { min-height: 640px; }
  .atlas-film[data-shape="tall"] .rc { height: 500px; }
  .atlas-film[data-shape="tall"] .af-side .rc { height: auto; }
}
/* Narrow cards (phones): chips drop under the "Real app recording" tag instead of colliding with it. */
@container (max-width: 560px) {
  .rc-chips { top: 38px; left: 10px; right: auto; }
}
/* TikTok's dark mark needs a light tile to show on the dark picture. */
.home-feature-card .rc-streams span:has(img[src$="tiktok.svg"]) { background: #e9e7e1; }
/* Eye contact: two real recordings of the same moment, the corrected one uncovered by the slider. */
.af-eyes { aspect-ratio: 16 / 9; }
.af-eyes .af-eye { position: absolute; inset: 0; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.af-eyes .af-eye.af-after { clip-path: inset(0 calc(100% - var(--wipe, 50%)) 0 0); background: none; }
.af-eyes i, .af-eyes b { z-index: 3; }
.af-eyes b:first-of-type { left: auto; right: 10px; background: #0b0b0cd9; color: #fff; }
.af-eyes b:last-of-type { right: auto; left: 10px; background: var(--warm); color: #17120f; }
