/* raea.cloud: an enterprise product page, played straight. White and stone neutrals, ink type in Geist with tight
   display tracking, Reel's orange as the one accent. Reel (pixel art) is the only illustration and the film he makes
   is the only image. The hero sells the whole loop at a glance; below it, the steps, then the system, then the close. */
:root {
  --bg: #ffffff;
  --page: #f9f7f3;
  --bg-2: #f5f4f0;
  --bg-3: #ecebe6;
  --ink: #141416;
  --ink-2: #44434a;
  --ink-3: #6e6d75;
  --line: #e6e5e1;
  --line-2: #f0efec;
  --accent: #f0612e;
  --accent-ink: #b8431a;
  --accent-soft: #fdeae2;
  --ok: #16784a;
  --ok-soft: #def3e7;
  --warn: #8a5a0c;
  --warn-soft: #fbf0d6;
  --night: #161618;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --pixel: "Jersey 15", var(--mono);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 22, 0.05), 0 14px 34px -14px rgba(20, 20, 22, 0.2);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "ss01";
  /* a warm light falling on the page from behind the hero's stage, and a cooler one from the left */
  background: radial-gradient(1100px 720px at 80% 6%, rgba(240, 97, 46, 0.09), transparent 62%) no-repeat, radial-gradient(900px 640px at 4% 0%, rgba(80, 110, 190, 0.06), transparent 60%) no-repeat, var(--page); }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---- controls ---- */
.btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(20, 20, 22, 0.2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; background: var(--ink); color: #fff; font: 550 0.9375rem/1 var(--sans); border: 1px solid var(--ink); transition: background 0.15s, border-color 0.15s, transform 0.15s var(--ease); }
.btn:hover { background: #2c2c31; border-color: #2c2c31; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--bg); color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(20, 20, 22, 0.05); }
.btn .go { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .go { transform: translateX(3px); }
.btn.ghost:hover { border-color: #cfcdc8; background: var(--bg-2); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 0.875rem; border-radius: 8px; }
.btn.xs { height: 30px; padding: 0 12px; font-size: 0.8125rem; border-radius: 7px; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: #ececea; border-color: #ececea; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); font: 500 0.75rem/1 var(--sans); white-space: nowrap; font-style: normal; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.review { background: var(--warn-soft); color: var(--warn); }
.chip.soon { background: transparent; border: 1px dashed #cfcdc8; color: var(--ink-3); }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(249, 247, 243, 0.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.mark { display: inline-flex; align-items: baseline; gap: 6px; font: 560 1.125rem/1 var(--sans); letter-spacing: -0.02em; }
.mark svg { width: 21px; height: 21px; align-self: center; margin-right: 3px; }
.mark .sub { font-weight: 400; color: var(--ink-3); }
.links { display: flex; gap: 28px; margin-left: auto; font-size: 0.9375rem; color: var(--ink-2); }
.gh { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 0.875rem; color: var(--ink-2); transition: border-color 0.15s, color 0.15s; }
.gh:hover { border-color: #cfcdc8; color: var(--ink); }
.gh svg { width: 16px; height: 16px; color: var(--ink); }
.stars { padding-left: 8px; border-left: 1px solid var(--line); font: 500 0.8125rem/1 var(--mono); color: var(--ink); }
.nav-in { gap: 12px; }
.links { margin-right: 16px; }
.links a:hover { color: var(--ink); }

/* ---- hero ---- */
.hero { --wrap: 1400px; display: grid; grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); align-items: center; gap: clamp(32px, 5vw, 72px); min-height: calc(100svh - 64px - 150px); padding-top: clamp(24px, 4vh, 48px); padding-bottom: clamp(40px, 7vh, 72px); }
h1 { font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: 1.02; font-weight: 640; letter-spacing: -0.038em; max-width: 12ch; }
.lede { margin-top: 22px; max-width: 33rem; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.55; color: var(--ink-2); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tm { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 3px; background: center / cover no-repeat; image-rendering: pixelated; }

.card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 0 1px 0 #fff, var(--shadow); }
.row { display: flex; align-items: center; gap: 8px; }
.av { display: inline-block; flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--bg-3) center / cover no-repeat; image-rendering: pixelated; }
.ui-task h4 { margin: 12px 0 8px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.files { margin: 0; padding: 0; list-style: none; }
.files li { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 0.8125rem; color: var(--ink-2); }
.files li + li { border-top: 1px solid var(--line-2); }
.ic { width: 11px; height: 13px; flex: none; border-radius: 2px; background: currentColor; clip-path: polygon(0 0, 65% 0, 100% 30%, 100% 100%, 0 100%); }
.ic.doc { color: #3a63c4; }
.ic.pdf { color: #c4452a; }
.ic.folder { width: 13px; height: 11px; clip-path: polygon(0 0, 40% 0, 50% 18%, 100% 18%, 100% 100%, 0 100%); color: #b0700f; }
.ic.link { width: 12px; height: 12px; clip-path: none; background: none; border: 2px solid #7b68ee; border-radius: 50%; }
.ic.film { width: 13px; height: 11px; clip-path: none; color: var(--accent); }
.ic.proj { width: 12px; height: 12px; clip-path: none; background: none; border: 2px solid var(--ink); border-radius: 3px; }
.meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 0.8125rem; color: var(--ink-3); }
.meta b { margin-right: 14px; color: var(--ink); font: 500 0.8125rem/1 var(--mono); }
@keyframes pulse { 50% { opacity: 0.35; } }
.reel { width: 100%; aspect-ratio: 5 / 6; }
.video { position: relative; aspect-ratio: 16 / 9; background: #1c1b20 center / cover no-repeat; image-rendering: pixelated; overflow: hidden; }

/* ---- sections ---- */
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; font-weight: 640; letter-spacing: -0.032em; max-width: 18ch; }
.sec-head p { margin-top: 16px; max-width: 36rem; font-size: 1.125rem; color: var(--ink-2); }
.how { position: relative; padding: clamp(96px, 14vh, 150px) 0 clamp(56px, 8vh, 96px); background: linear-gradient(var(--page), var(--bg-2) 240px); border-top: 1px solid var(--line); overflow-x: clip; }  /* the feed's particles start off-screen */
/* the trail starts at the top of the section, leads into its heading, then runs down through every step */
.how::before { content: ""; position: absolute; left: 50%; top: 0; height: clamp(56px, 9vh, 96px); border-left: 2px dashed #d3d1cb; }
.how .sec-head { text-align: center; }
.how .sec-head h2, .how .sec-head p { margin-left: auto; margin-right: auto; }
.steps-wrap { position: relative; }
.trail { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(to bottom, #d3d1cb 0 6px, transparent 6px 12px); }
.trail i { display: block; width: 100%; height: var(--p, 0%); border-radius: 2px; background: var(--accent); }
.steps { margin: clamp(40px, 7vh, 80px) 0 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; column-gap: clamp(24px, 4vw, 64px); padding: clamp(40px, 6vh, 64px) 0; }
.step .copy { grid-column: 1; grid-row: 1; justify-self: end; max-width: 30rem; }
.step .visual { grid-column: 3; grid-row: 1; }
.step:nth-child(even) .copy { grid-column: 3; justify-self: start; }
.step:nth-child(even) .visual { grid-column: 1; }
.n { grid-column: 2; grid-row: 1; position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 2px solid #d3d1cb; color: var(--ink-3); font: 500 0.9375rem/1 var(--mono); transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s; }
.step.reached .n { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 6px rgba(240, 97, 46, 0.14); }
.copy h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.12; font-weight: 620; letter-spacing: -0.025em; max-width: 16ch; }
.copy p { margin-top: 14px; max-width: 30rem; font-size: 1.0625rem; color: var(--ink-2); }
.visual { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: clamp(24px, 3.4vw, 48px); border-radius: 22px; background: radial-gradient(circle at 1px 1px, rgba(20, 20, 22, 0.1) 1px, transparent 1.4px) 0 0 / 22px 22px, linear-gradient(160deg, #ffffff, #f6f4ef); border: 1px solid var(--line); box-shadow: 0 24px 50px -36px rgba(20, 20, 22, 0.3); }
.visual .card { width: 100%; max-width: 460px; padding: 18px; }
/* reveals: everything visible by default; a step not yet scrolled to waits, then comes in */
.r { transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.step.wait .r { opacity: 0; transform: translateY(8px); }

.ui-task header p { font-size: 0.8125rem; color: var(--ink-3); }
.ui-task header b { color: var(--ink); font-weight: 600; }
.desc { margin-bottom: 10px; font-size: 0.875rem; color: var(--ink-2); }
.assign { position: relative; margin-top: 12px; }
.field-lab { display: block; margin-bottom: 6px; font-size: 0.75rem; color: var(--ink-3); }
.select { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 0.875rem; }
.select b, .menu b { font-weight: 600; }
.select span, .menu span { margin-left: auto; font-size: 0.8125rem; color: var(--ink-3); }
.select::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg) translate(-2px, -2px); }
.menu { position: absolute; z-index: 3; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 5px; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.2s, transform 0.3s var(--ease); }
.menu.open { opacity: 1; transform: none; }
.menu li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; font-size: 0.875rem; }
.menu li.on { background: var(--accent-soft); }

.ui-lib .count, .ui-tools .count { margin-left: auto; font-size: 0.8125rem; color: var(--ink-3); }
.ui-lib .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.sources { margin: 12px 0 0; padding: 0; list-style: none; }
.sources li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 0.8125rem; color: var(--ink-3); }
.sources li > span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sources b { margin-right: 4px; font-weight: 600; color: var(--ink); }
.sources .av { width: 20px; height: 20px; border-radius: 5px; }
.src { flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--bg-3) center / 14px no-repeat; }
.src.drive { background-color: #e7f0e9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 4.5h4.2l1.3 1.5H14v6.5H2z' fill='%2316784a'/%3E%3C/svg%3E"); }
.src.link { background-color: #ecebfb; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 12V4M4.5 7.5 8 4l3.5 3.5' fill='none' stroke='%235e4fd1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.src.drop { background-color: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v7M4.5 6.5 8 10l3.5-3.5M3 13h10' fill='none' stroke='%23b8431a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sync-bar { flex: none; width: 84px; height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.sync-bar b { display: block; height: 100%; width: var(--w, 0); background: var(--accent); transition: width 1.6s var(--ease) 0.5s; }
.asset { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--bg) center / cover no-repeat; image-rendering: pixelated; overflow: hidden; }
.asset em { position: absolute; left: 5px; bottom: 5px; padding: 2px 5px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-ink); font: 500 0.625rem/1.2 var(--mono); font-style: normal; }
.asset em::before { content: "#"; }
.asset.sw div { display: flex; gap: 3px; margin-bottom: 14px; }
.asset.sw i { width: 12px; height: 26px; border-radius: 3px; }
.asset.logo b { margin-bottom: 14px; padding: 3px 6px; border: 1px dashed #b9b7b1; font: 400 1rem/1 var(--pixel); letter-spacing: 0.12em; }
.asset.type b { margin-bottom: 12px; font-size: 2rem; font-weight: 620; letter-spacing: -0.03em; }
.asset.tone q { margin: 0 8px 14px; font-size: 0.6875rem; font-weight: 600; line-height: 1.2; text-align: center; }

.plan { margin: 12px 0 0; padding: 0; list-style: none; }
.plan li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 0.875rem; }
.plan li b { font: 500 0.8125rem/1 var(--mono); }
.plan .chip { justify-self: end; min-width: 84px; justify-content: center; }
.plan .skip span, .plan .skip b { color: var(--ink-3); }
.plan li em { display: block; margin-top: 2px; font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
.ui-tools .gen { display: block; width: 100%; aspect-ratio: 960 / 430; margin-top: 12px; border-radius: 10px; background: #1c1b20; object-fit: cover; }
.budget { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-3); }
.budget b { color: var(--ink); font: 500 0.8125rem/1 var(--mono); }
.budget i { height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.budget i b { display: block; height: 100%; width: var(--w, 0); background: var(--accent); transition: width 1.2s var(--ease) 0.4s; }

.ui-edit .video, .ui-done .video { border-radius: 10px; }
.tl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; margin-top: 10px; }
.lane { display: flex; gap: 5px; height: 34px; }
.lane .clip { flex: 1; min-width: 0; border-radius: 5px; background: #2a2328 center / cover no-repeat; image-rendering: pixelated; }
.lane.caps { height: 24px; }
.lane.caps span { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 8px; border-radius: 5px; background: var(--ink); color: #fff; font: 500 0.6875rem/1 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 0.8125rem; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 5px; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ui-done header p { font-size: 0.875rem; color: var(--ink-3); }
.ui-done header b { color: var(--ink); font-weight: 600; }
.ui-done header .chip { margin-left: auto; }
.ui-done .video { margin: 14px 0 6px; }
.note { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 0.875rem; color: var(--ink-2); }

/* ---- the system ---- */
.system { padding: clamp(80px, 12vh, 140px) 0; background: var(--page); border-top: 1px solid var(--line); }
.sys-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.sticky { position: sticky; top: 104px; }
.caps-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin: 0; }
.caps-list div { padding: 24px 0 26px; border-top: 1px solid var(--line); }
.caps-list dt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.caps-list dd { margin: 8px 0 0; font-size: 0.9375rem; color: var(--ink-2); }
.caps-list dd .chip { margin-right: 4px; vertical-align: 1px; }

/* ---- the close ---- */
.close { padding-bottom: clamp(64px, 10vh, 120px); }
.close-in { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(28px, 5vw, 64px); padding: clamp(32px, 5vw, 64px); border-radius: 28px; color: #fff; background: radial-gradient(600px 380px at 85% 0%, rgba(240, 97, 46, 0.22), transparent 65%), radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 1.4px) 0 0 / 22px 22px, var(--night); }
.close-reel { width: clamp(130px, 14vw, 190px); }
.close h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; font-weight: 640; letter-spacing: -0.032em; }
.close p { margin: 12px 0 28px; font-size: 1.125rem; color: #b4b3ba; }
.close .btn { background: #fff; color: var(--ink); border-color: #fff; }
.close .btn:hover { background: #ececea; border-color: #ececea; }

.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; padding-top: clamp(48px, 7vh, 72px); padding-bottom: 40px; }
.foot-brand .mark { font-size: 1.125rem; }
.foot-brand p { max-width: 24rem; margin: 14px 0 22px; font-size: 0.9375rem; color: var(--ink-2); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 24px clamp(32px, 5vw, 72px); }
.foot-cols h4 { margin-bottom: 14px; font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.foot-cols a { display: block; padding: 4px 0; font-size: 0.875rem; color: var(--ink-3); transition: color 0.15s; }
.foot-cols a:hover { color: var(--ink); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-3); }
.totop:hover { color: var(--ink); }

/* ---- narrower ---- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .sys-in { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 760px) {
  .links { display: none; }
  .nav-in { justify-content: space-between; }
  h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
  .links { margin-right: 0; }
  .gh span { display: none; }
  /* the trail runs down the left edge; each step hangs off it */
  .how::before { left: calc(var(--gutter) + 15px); }
  .how .sec-head { text-align: left; padding-left: 40px; }
  .trail { left: 15px; }
  .step { grid-template-columns: minmax(0, 1fr); row-gap: 22px; padding-left: 44px; position: relative; }
  .step .copy, .step:nth-child(even) .copy { grid-column: 1; grid-row: 1; justify-self: start; }
  .step .visual, .step:nth-child(even) .visual { grid-column: 1; grid-row: 2; }
  .n { grid-column: auto; grid-row: auto; position: absolute; left: 0; top: clamp(40px, 6vh, 64px); width: 32px; height: 32px; font-size: 0.8125rem; }
  .visual { padding: 16px; }
  .visual .card { padding: 14px; }
  .ui-lib .grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .caps-list { grid-template-columns: 1fr; }
  .close-in { grid-template-columns: 1fr; justify-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ---- the margins: quiet finish around the product, never competing with it ----
   a fine paper grain over the page; two hairline rails down the content edges, with a small cross wherever a section
   rule meets them; and the wordmark set large and faint under the footer */
body::after { content: ""; position: fixed; inset: 0; z-index: 19; pointer-events: none; opacity: 0.5; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.42 0 0 0 0 0.38 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, .foot-band { position: relative; }
.rails { position: absolute; inset: calc(100svh - 64px) 0 0; z-index: 0; pointer-events: none; }   /* from under the hero: the film is wider than the page */
.rails::before, .rails::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, rgba(20, 20, 22, 0.07) 120px, rgba(20, 20, 22, 0.07) calc(100% - 80px), transparent); }
.rails::before { left: max(calc(var(--gutter) / 2), calc((100% - var(--wrap)) / 2 - 20px)); }
.rails::after { right: max(calc(var(--gutter) / 2), calc((100% - var(--wrap)) / 2 - 20px)); }
main > section { position: relative; z-index: 1; }
.cross { position: absolute; top: -6px; width: 11px; height: 11px; pointer-events: none;
  background: linear-gradient(rgba(20, 20, 22, 0.32), rgba(20, 20, 22, 0.32)) center / 1px 100% no-repeat, linear-gradient(rgba(20, 20, 22, 0.32), rgba(20, 20, 22, 0.32)) center / 100% 1px no-repeat; }
.cross.l { left: calc(max(calc(var(--gutter) / 2), calc((100% - var(--wrap)) / 2 - 20px)) - 5px); }
.cross.r { right: calc(max(calc(var(--gutter) / 2), calc((100% - var(--wrap)) / 2 - 20px)) - 5px); }
.foot-band { overflow: hidden; border-top: 1px solid var(--line); background: linear-gradient(var(--page), var(--bg-2)); }
.foot-band .foot { border-top: 0; position: relative; z-index: 1; }
.bigmark { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0.04em; height: clamp(110px, 16vw, 240px); font: 640 clamp(150px, 25vw, 370px)/0.74 var(--sans); letter-spacing: -0.06em; user-select: none; overflow: hidden; }
.bigmark span { color: transparent; -webkit-text-stroke: 1px rgba(20, 20, 22, 0.13); background: radial-gradient(circle at 1px 1px, rgba(20, 20, 22, 0.16) 1px, transparent 1.4px) 0 0 / 9px 9px; -webkit-background-clip: text; background-clip: text; }
.foot-reel { flex: none; align-self: flex-end; width: 0.34em; margin-bottom: -0.02em; }
@media (max-width: 760px) { .rails, .cross { display: none; } .foot { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: repeat(2, 1fr); } }

/* ---- Reel around the page: one at the corner of each step, doing that step's thing ---- */
.visual { position: relative; }
.cameo { position: absolute; z-index: 2; right: -18px; bottom: -22px; width: 92px; pointer-events: none; }
.step:nth-child(even) .cameo { right: auto; left: -18px; }
.feed { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 3; }
.feed i { position: absolute; left: -9px; top: -7px; width: 18px; height: 14px; border-radius: 3px; opacity: 0; background: var(--accent-soft); border: 1px solid #f4a587; box-shadow: 0 2px 6px rgba(20, 20, 22, 0.15); }
.feed i:nth-child(2) { background: #e7f0e9; border-color: #9fcdb2; }
.feed i:nth-child(3) { background: #ecebfb; border-color: #b9b2ef; }
.feed { transform: none; }
/* the step's number set large behind its words, in the footer wordmark's dotted outline */
.copy { position: relative; isolation: isolate; }
.copy::before { content: attr(data-n); position: absolute; z-index: -1; left: -0.04em; top: -0.62em; font: 640 clamp(110px, 11vw, 168px)/1 var(--sans); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(20, 20, 22, 0.1); background: radial-gradient(circle at 1px 1px, rgba(20, 20, 22, 0.14) 1px, transparent 1.4px) 0 0 / 8px 8px; -webkit-background-clip: text; background-clip: text; pointer-events: none; }
@media (max-width: 760px) {
  .cameo, .step:nth-child(even) .cameo { left: auto; right: -8px; bottom: -18px; width: 68px; }
  .copy::before { font-size: 96px; top: -0.5em; }
  .ui-tools .budget { padding-right: 52px; }          /* clear of the cameo at the card's corner */
  .plan .chip { min-width: 0; padding-inline: 10px; }
}

/* ---- the props: the empty space carries bits of the work, at three or four depths, moving at their own speed ---- */
.hero { position: relative; }
.hero > .pitch, .hero > .stage { position: relative; z-index: 1; }
.step { position: relative; }
.step > .copy, .step > .visual, .step > .n { z-index: 1; }
.step > .visual { position: relative; }
.drift { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.prop { position: absolute; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transform: translate(-50%, -50%); will-change: transform; font-size: 0.8125rem; color: var(--ink-2); }
.prop.chip, .prop.file, .prop.ok { height: 32px; padding: 0 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 20, 22, 0.05), 0 10px 24px -12px rgba(20, 20, 22, 0.25); }
.prop.file::before { content: ""; width: 11px; height: 13px; border-radius: 2px; background: var(--accent); clip-path: polygon(0 0, 65% 0, 100% 30%, 100% 100%, 0 100%); }
.prop.ok { color: var(--ok); background: var(--ok-soft); border-color: #bfe3cd; font-weight: 500; }
.prop.ok::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.prop.tag { padding: 5px 9px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); font: 500 0.75rem/1 var(--mono); box-shadow: 0 8px 18px -12px rgba(184, 67, 26, 0.5); }
.prop.price, .prop.time { padding: 7px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font: 500 0.8125rem/1 var(--mono); box-shadow: 0 10px 22px -14px rgba(20, 20, 22, 0.3); }
.prop.cap { padding: 7px 10px; border-radius: 6px; background: var(--ink); color: #fff; font: 500 0.75rem/1 var(--mono); box-shadow: 0 12px 24px -14px rgba(20, 20, 22, 0.5); }
.prop.thumb { width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; border: 3px solid #fff; background: #2a2328 center / cover no-repeat; image-rendering: pixelated; box-shadow: 0 1px 2px rgba(20, 20, 22, 0.08), 0 16px 30px -16px rgba(20, 20, 22, 0.45); }
.prop.tool { width: 30px; height: 30px; border-radius: 7px; background: center / cover no-repeat; image-rendering: pixelated; box-shadow: 0 10px 20px -10px rgba(20, 20, 22, 0.4); }
.prop.spark { width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%23f0612e' d='M4 0h1v3H4zM4 6h1v3H4zM0 4h3v1H0zM6 4h3v1H6zM3 3h3v3H3z'/%3E%3C/svg%3E") center / contain no-repeat; image-rendering: pixelated; }
@media (max-width: 760px) { .drift { display: none; } }

/* the editing kit: what a video editor's screen is made of, in small pieces */
.prop.film { padding: 9px 0; width: 124px; border-radius: 4px; background: #1c1b20 repeating-linear-gradient(90deg, transparent 0 5px, #f5f4f0 5px 9px, transparent 9px 14px) 0 3px / 100% 4px no-repeat; box-shadow: 0 16px 30px -16px rgba(20, 20, 22, 0.5); }
.prop.film::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 4px; background: repeating-linear-gradient(90deg, transparent 0 5px, #f5f4f0 5px 9px, transparent 9px 14px); }
.prop.film i { display: block; width: 100%; aspect-ratio: 16 / 9; background: #2a2328 center / cover no-repeat; image-rendering: pixelated; }
.prop.wave, .prop.key, .prop.clips, .prop.meter, .prop.curve, .prop.ratio, .prop.play, .prop.render, .prop.export { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(20, 20, 22, 0.05), 0 12px 26px -14px rgba(20, 20, 22, 0.3); }
.prop.wave { gap: 2px; width: 118px; height: 34px; padding: 0 9px; }
.prop.wave i { flex: 1; border-radius: 2px; background: var(--accent); opacity: 0.85; }
.prop.key { width: 116px; height: 28px; justify-content: space-between; padding: 0 12px; background: linear-gradient(var(--line), var(--line)) center / calc(100% - 24px) 1px no-repeat, var(--bg); }
.prop.key i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--bg); border: 1.5px solid var(--ink); }
.prop.key i.on { background: var(--accent); border-color: var(--accent); }
.prop.clips { flex-direction: column; align-items: stretch; gap: 4px; width: 156px; padding: 7px; }
.prop.clips .ln { display: flex; gap: 3px; height: 14px; }
.prop.clips .ln i { border-radius: 3px; background: #f7c3ae; border: 1px solid #ec9a7b; }
.prop.clips .ln i:nth-child(2) { background: #c9c4f4; border-color: #a49ce9; }
.prop.clips .ln.a { height: 10px; }
.prop.clips .ln.a i { background: #bfe3cd; border-color: #8ccaa5; }
.prop.clips b { position: absolute; left: 58%; top: 3px; bottom: 3px; width: 1.5px; background: var(--accent); }
.prop.clips b::before { content: ""; position: absolute; left: -3.5px; top: -2px; width: 8px; height: 6px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.prop.meter { gap: 3px; padding: 7px; }
.prop.meter span { display: flex; flex-direction: column-reverse; gap: 2px; }
.prop.meter i { width: 8px; height: 4px; border-radius: 1px; background: #46b07a; }
.prop.meter i:nth-child(n+6) { background: #e2b33c; }
.prop.meter i:nth-child(n+8) { background: #e2553c; }
.prop.meter span:first-child i:nth-child(n+8), .prop.meter span:last-child i:nth-child(n+7) { opacity: 0.18; }
.prop.curve { padding: 6px; }
.prop.curve svg { width: 64px; height: 44px; display: block; }
.prop.ratio { gap: 8px; padding: 8px 10px; align-items: flex-end; font: 500 0.625rem/1 var(--mono); color: var(--ink-3); }
.prop.ratio span { display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 3px; }
.prop.ratio .r169 { width: 46px; height: 26px; }
.prop.ratio .r916 { width: 22px; height: 38px; border-color: var(--accent); color: var(--accent-ink); }
.prop.ratio .r11 { width: 28px; height: 28px; }
.prop.play { gap: 10px; height: 34px; padding: 0 12px; }
.prop.play i { width: 10px; height: 11px; background: var(--ink); }
.prop.play .prev { clip-path: polygon(0 0, 20% 0, 20% 45%, 100% 0, 100% 100%, 20% 55%, 20% 100%, 0 100%); }
.prop.play .next { clip-path: polygon(0 0, 80% 45%, 80% 0, 100% 0, 100% 100%, 80% 100%, 80% 55%, 0 100%); }
.prop.play .go { width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3.5 2.5v5l4-2.5z' fill='%23fff'/%3E%3C/svg%3E") center / 100% no-repeat; }
.prop.render { gap: 8px; height: 34px; padding: 0 12px; font-size: 0.75rem; color: var(--ink-2); }
.prop.render .bar { width: 64px; height: 5px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.prop.render .bar b { display: block; height: 100%; background: var(--accent); animation: renderbar 3.2s var(--ease) infinite; }
.prop.render .pc { font: 500 0.6875rem/1 var(--mono); color: var(--ink); }
@keyframes renderbar { 0% { width: 6%; } 80%, 100% { width: 100%; } }
.prop.export { height: 32px; padding: 0 12px; font: 500 0.75rem/1 var(--mono); color: var(--ink); }
.prop.export::before { content: ""; width: 12px; height: 12px; margin-right: 2px; border-radius: 3px; border: 1.5px solid var(--ink); border-top-color: var(--accent); }
.prop.wheel { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle, #fff 0 8%, transparent 62%), conic-gradient(#e2553c, #e2b33c, #46b07a, #3fb0c9, #5e6ad2, #b05ec9, #e2553c); box-shadow: 0 12px 24px -12px rgba(20, 20, 22, 0.45); }
.prop.wheel i { position: absolute; left: 58%; top: 30%; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(20, 20, 22, 0.4); }

/* the film: a button in the hero, a player over the page */
.btn.play { gap: 10px; }
.btn.play .pl { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.btn.play .pl::after { content: ""; position: absolute; left: 7.5px; top: 6px; border-left: 7px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.btn.play .dur { color: var(--ink-3, #6e6d75); font: 500 0.8125rem/1 var(--mono, ui-monospace, monospace); }
.btn.play:hover .pl { transform: scale(1.08); }
.btn.play .pl { transition: transform 0.2s var(--ease); }
.foot-legal .credits { flex: 1; min-width: 0; color: var(--ink-3); font-size: 0.75rem; text-align: center; padding: 0 16px; }
@media (max-width: 720px) { .foot-legal .credits { order: 3; flex-basis: 100%; text-align: left; padding: 8px 0 0; } }
@media (max-width: 720px) { .foot-legal { flex-wrap: wrap; } }

/* the hero's film: the product, playing, on the right. Muted on a loop until asked for sound, then from the top */
.hero-film { position: relative; margin: 0; justify-self: end; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #141416; box-shadow: 0 0 0 1px rgba(20, 20, 22, 0.08), 0 2px 4px rgba(20, 20, 22, 0.06), 0 40px 80px -36px rgba(20, 20, 22, 0.45); isolation: isolate; }
.hero-film video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.hf-ui { position: absolute; left: 16px; right: 16px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.hf-ui button { pointer-events: auto; border: 0; cursor: pointer; color: #fff; background: rgba(20, 20, 22, 0.62); backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: background 0.2s, opacity 0.3s, transform 0.2s var(--ease); }
.hf-ui button:hover { background: rgba(20, 20, 22, 0.8); }
.hf-sound { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; font: 550 0.875rem/1 var(--sans); }
.hf-ic { width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='m22 9-6 6M16 9l6 6'/%3E%3C/svg%3E"); }
.hero-film.sound .hf-ic { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E"); }
.hf-dur { color: rgba(255, 255, 255, 0.62); font: 500 0.8125rem/1 var(--mono); }
.hero-film.sound .hf-dur { display: none; }
.hf-full { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.hf-full svg { width: 16px; height: 16px; }
.hero-film.sound:not(:hover) .hf-ui button { opacity: 0; }
.hero-film.paused .hf-ui button { opacity: 1; }
.hf-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.14); }
.hf-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); }
.hero-film.paused::after { content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; pointer-events: none;
  background: rgba(20, 20, 22, 0.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3.6 2.4v5.2l4.2-2.6z' fill='%23fff'/%3E%3C/svg%3E") center / 44% no-repeat; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
@media (max-width: 1100px) { .hero-film { justify-self: stretch; } }
@media (max-width: 760px) { .hero-film { border-radius: 14px; } .hf-ui { left: 10px; right: 10px; bottom: 12px; } .hf-sound { height: 36px; } .hf-full { width: 36px; height: 36px; } }
@media (max-width: 1100px) {
  /* stacked: the words, the buttons, then the film, then where it's assigned from */
  .hero { row-gap: 0; }
  .pitch { display: contents; }
  .hero-film { order: 1; margin-top: 36px; }
}
.nav .wrap { --wrap: 1400px; }   /* lined up with the hero */

/* where Reel is assigned from: one row of real marks under the hero, in ink, each in its own colour on hover */
.assign { --wrap: 1400px; display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); padding-top: 28px; padding-bottom: 28px; position: relative; z-index: 1; }
.assign::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--line); }
.assign-lab { flex: none; max-width: 15rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-3); }
.logos { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; margin: 0; padding: 0; list-style: none; }
.logos li { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 1.1875rem/1 var(--sans); letter-spacing: -0.02em; opacity: 0.72; transition: opacity 0.2s, color 0.2s; }
.logos svg { width: 26px; height: 26px; flex: none; fill: currentColor; transition: fill 0.2s; }
.logos li:hover { opacity: 1; }
.logos li:hover svg { fill: var(--brand); }
@media (max-width: 1100px) { .assign { flex-direction: column; align-items: flex-start; } .assign-lab { max-width: none; } .logos { width: 100%; } }
@media (max-width: 760px) { .logos { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px 28px; } .logos li { font-size: 1rem; } .logos svg { width: 22px; height: 22px; } }
