/* Tokens mirror the dashboard (DESIGN.md, Quiet v3): flat neutral dark, one geometric face, hairlines. */
:root {
  --bg: #0b0b0b;
  --surface: #141413;
  --surface-raised: #1c1c1b;
  --border: #2a2a28;
  --text: #faf6f2;
  --text-dim: #bdb8b1;
  --text-muted: #8a857e;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: 24px;
}
@media (max-width: 760px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

.bar {
  position: sticky; top: 0; z-index: 10; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgb(11 11 11 / .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; }
.bar nav { display: flex; gap: 24px; font-size: 14px; color: var(--text-dim); }
.bar nav a:hover { color: var(--text); }
@media (max-width: 560px) { .bar nav { display: none; } }

main, footer { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.hero { padding: 120px 0 96px; max-width: 820px; }
.eyebrow { margin: 0 0 16px; font: 400 13px var(--mono); color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
h1 { margin: 0; font-weight: 600; font-size: clamp(36px, 6vw, 64px); line-height: 1.08; letter-spacing: -.02em; }
.lead { margin: 28px 0 0; font-size: 19px; color: var(--text-dim); max-width: 620px; }
@media (max-width: 760px) { .hero { padding: 72px 0 56px; } .lead { font-size: 17px; } }

.block { padding: 72px 0; border-top: 1px solid var(--border); }
h2 { margin: 0 0 40px; font-weight: 600; font-size: 28px; letter-spacing: -.01em; }
h3 { margin: 0 0 6px; font-weight: 600; font-size: 16px; }
p { margin: 0; color: var(--text-dim); }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
@media (max-width: 900px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }
.grid3 article { display: flex; flex-direction: column; min-width: 0; }
.frame { width: 100%; }
.frame {
  margin-bottom: 20px; border: 1px solid var(--border); border-radius: 10px;
  background: linear-gradient(160deg, var(--surface-raised), var(--surface));
  height: 220px; position: relative; overflow: hidden;
}
.frame img, .frame video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.f169 { aspect-ratio: 16 / 9; height: auto; }
/* Short-form is 9:16: shown tall on a 16:9 stage so the three cards stay level. */
.stage { background: var(--surface); }
.frame video.tall { position: absolute; top: 0; bottom: 0; left: 50%; translate: -50% 0; width: auto; height: 100%; aspect-ratio: 9 / 16; }
.frame img, .frame video { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.grid3 article:hover .frame img, .grid3 article:hover .frame video { transform: scale(1.03); }
.frame { overflow: hidden; }

/* Quiet motion: content eases in once; nothing loops except the preview clips. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .grid3 .reveal:nth-child(2) { transition-delay: .08s; }
  .grid3 .reveal:nth-child(3) { transition-delay: .16s; }
  .rise > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .rise > :nth-child(2) { animation-delay: .08s; }
  .rise > :nth-child(3) { animation-delay: .16s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.intro { margin: -24px 0 32px; max-width: 52ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }
.steps li { display: flex; gap: 16px; }
.n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border);
  display: grid; place-items: center; font: 400 13px var(--mono); color: var(--text-dim);
}

.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.facts div { padding: 20px 0; border-top: 1px solid var(--border); }
.facts dt { font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--text-dim); }

footer {
  display: flex; justify-content: space-between; padding-top: 32px; padding-bottom: 48px;
  background: linear-gradient(var(--border), var(--border)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; color: var(--text-muted); font-size: 14px;
}
.mono { font-family: var(--mono); }

/* Template shelf: one row of looks. Without script (or with reduced motion) it is a
   plain scrollable, snap-aligned row; with motion allowed it drifts slowly and pauses
   under the pointer or keyboard focus. */
.shelf-wrap { margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.shelf { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; }
.shelf li { flex: none; width: clamp(220px, 26vw, 300px); margin-right: 20px; }
.shelf li img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border); border-radius: 10px; transition: border-color .3s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.shelf li span { display: block; margin-top: 10px; font-size: 14px; color: var(--text-dim); transition: color .3s ease; }
.shelf li:hover img { border-color: var(--text-muted); transform: translateY(-4px); }
.shelf li:hover span { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .shelf-wrap { overflow-x: auto; scroll-snap-type: x proximity; }
  .shelf li { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .shelf-wrap.run .shelf { animation: drift 70s linear infinite; }
  .shelf-wrap.run:hover .shelf, .shelf-wrap.run:focus-within .shelf { animation-play-state: paused; }
}
@keyframes drift { to { transform: translateX(-50%); } }
