/* base.css */
/* LoopForge FX: foundation. Brand "Onion Skin": Key Blue colour blocks, Frame White type, Tick Yellow
   only as a small accent (progress, focus, the recommended file). Effects always sit on pure black. */

@font-face {
  font-family: 'Anybody';
  src: url('/assets/fonts/anybody.041c675622.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 50% 150%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Anybody';
  src: url('/assets/fonts/anybody-italic.8d531b48d9.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 50% 150%; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Azeret Mono';
  src: url('/assets/fonts/azeret-mono-400.83f738bd44.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Azeret Mono';
  src: url('/assets/fonts/azeret-mono-600.0193889b0c.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --key: #1F3DFF;        /* Key Blue: the brand block colour */
  --key-hi: #3A55FF;     /* hover step on Key Blue */
  --deep: #0B1A99;       /* Deep Key: second block colour */
  --frame: #F4F6FF;      /* Frame White: type */
  --tick: #FFD60A;       /* Tick Yellow: progress, focus, small accents */
  --black: #000;         /* behind every effect */
  --ground: #07080D;     /* page ground, one step off black so black monitors read as screens */
  --panel: #10121C;      /* raised surface */
  --panel-2: #191C2B;    /* control surface */
  --dim: rgba(244, 246, 255, .70);   /* secondary text, 10:1 on ground */
  --faint: rgba(244, 246, 255, .50); /* disabled and fine print */
  --head-h: 64px;

  --display: 'Anybody', 'Arial Black', sans-serif;
  --body: 'Anybody', system-ui, sans-serif;
  --mono: 'Azeret Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --t-fast: 140ms;
  --t-med: 320ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip; background: var(--ground); color: var(--frame);
  font: 400 1.0625rem/1.55 var(--body); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
main { overflow-x: clip; }   /* light layers may reach past the side edges; they never widen the page */
img, video, svg, canvas { display: block; max-width: 100%; }
video { background: var(--black); }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--tick); color: var(--black); }

:focus-visible { outline: 3px solid var(--tick); outline-offset: 3px; }
.on-key :focus-visible, .on-key:focus-visible { outline-color: var(--frame); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--tick); color: var(--black); padding: 14px 16px; font: 600 .875rem var(--mono);
}
.skip-link:focus { top: 12px; }

/* Type roles */
.display {
  font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 118%;
  letter-spacing: -.01em; line-height: .92; text-wrap: balance;
}
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: .02em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke-width: 2.25; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* layout.css */
/* Page frame: header, sections, footer, page transitions. */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }
::view-transition-group(fx-stage) { animation-duration: 380ms; animation-timing-function: var(--ease); }
::view-transition-group(*.card) { animation-duration: 300ms; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--ground); border-bottom: 1px solid rgba(244,246,255,.08); }
.head-row { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; flex: none; }
.brand img { width: 36px; height: 36px; }
.brand-word { font-size: 1.375rem; line-height: 1; }
.head-nav { margin-left: auto; }
.head-nav ul { display: flex; gap: 4px; list-style: none; }
.head-nav a {
  position: relative; display: inline-flex; align-items: center; height: var(--head-h); padding: 0 12px;
  font-weight: 600; font-stretch: 108%; font-size: .9375rem; text-decoration: none; color: var(--dim);
  transition: color var(--t-fast);
}
.head-nav a:hover, .head-nav a[aria-current] { color: var(--frame); }
.head-nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 4px; background: var(--key); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-med) var(--ease); }
.head-nav a:hover::after { transform: scaleX(1); }
.head-nav a[aria-current]::after { transform: scaleX(1); background: var(--key); }
.head-search { display: flex; align-items: center; background: var(--panel-2); height: 44px; width: 220px; }
.head-search input, .menu-search input {
  flex: 1; min-width: 0; height: 100%; padding: 0 0 0 14px; border: 0; background: transparent; color: var(--frame);
  font: 500 .9375rem var(--body);
}
.head-search input::placeholder, .menu-search input::placeholder { color: var(--faint); }
.head-search input:focus-visible, .menu-search input:focus-visible { outline: none; }
.head-search:focus-within, .menu-search:focus-within { outline: 3px solid var(--tick); outline-offset: 2px; }
.head-search button, .menu-search button { display: grid; place-items: center; width: 44px; height: 100%; border: 0; background: transparent; cursor: pointer; color: var(--dim); }
.head-menu { display: none; margin-left: auto; }
.head-menu summary { list-style: none; display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer; background: var(--panel-2); }
.head-menu summary::-webkit-details-marker { display: none; }
.head-menu .i-close, .head-menu[open] .i-menu { display: none; }
.head-menu[open] .i-close { display: block; }
.head-menu-panel {
  position: fixed; left: 0; right: 0; top: var(--head-h); bottom: 0; z-index: 60; overflow-y: auto;
  background: var(--key); padding: 20px var(--gutter) 40px;
}
.head-menu-panel ul { list-style: none; margin-top: 18px; }
.head-menu-panel a.display { display: block; padding: 10px 0; font-size: 2.5rem; line-height: 1; text-decoration: none; }
.head-menu-panel a[aria-current] { color: var(--tick); }
.menu-search { display: flex; height: 52px; background: var(--deep); }
@media (max-width: 1100px) { .head-search { display: none; } }
@media (max-width: 900px) {
  :root { --head-h: 60px; }
  .head-nav { display: none; }
  .head-menu { display: block; }
  .brand-word { font-size: 1.25rem; }
}

/* ---------- sections ---------- */
.sect { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.sect-head { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.sect-title { font-size: clamp(2.5rem, 6vw, 5.25rem); }
.sect-lede { flex: 1 1 320px; max-width: 46ch; color: var(--dim); }
.sect-head .link-arrow { margin-left: auto; }
.block-h { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 18px; }

/* Key Blue page band: the title block on every inner page. */
.band { background: var(--key); }
.band-in { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-title { font-size: clamp(3.25rem, 11vw, 10rem); line-height: .86; margin-left: -.04em; }
.band-p { max-width: 54ch; margin-top: 20px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.band-p--big { font-size: clamp(1.375rem, 2.6vw, 2.125rem); line-height: 1.2; font-weight: 600; font-stretch: 108%; max-width: 30ch; }
.crumbs { font-size: .8125rem; margin-bottom: 18px; color: var(--dim); }
.band .crumbs { color: rgba(244,246,255,.82); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- compact page header for tool pages: the tool starts in the first screen ---------- */
.ph { position: relative; background: var(--key); }
.ph-in { position: relative; padding-top: clamp(20px, 2.6vw, 34px); padding-bottom: clamp(20px, 2.4vw, 30px); }
.ph-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 32px; }
.ph-title { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-left: -.03em; }
.ph-sub { flex: 1 1 280px; max-width: 56ch; color: rgba(244,246,255,.92); }
.ph .crumbs { margin-bottom: 4px; color: rgba(244,246,255,.86); }
.ph--tool { background: var(--ground); border-bottom: 1px solid rgba(244,246,255,.1); }
.ph--tool .ph-title { color: var(--key-hi); }
.ph--tool .ph-sub { color: var(--dim); }
.cat-fx { right: 0; top: -55%; bottom: -55%; width: min(46%, 640px); }
@media (max-width: 900px) { .cat-fx { right: -24%; width: 82%; top: -30%; bottom: -30%; } .ph-title { font-size: clamp(2.25rem, 10vw, 3rem); } }

/* ---------- follow strip ---------- */
.follow { position: relative; background: var(--key); }
.follow-in { position: relative; }
.follow-fx { left: -8%; top: -16%; width: min(72%, 1100px); aspect-ratio: 16 / 9; }
@media (max-width: 800px) { .follow-fx { left: -30%; top: -22%; width: 150%; } }
.follow-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.follow-h { font-size: clamp(2.5rem, 6vw, 5.25rem); }
.follow-p { margin-top: 18px; max-width: 40ch; }
.follow-links { list-style: none; align-self: end; }
.follow-a {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 18px 0;
  border-top: 2px solid var(--frame); text-decoration: none;
}
.follow-links li:last-child .follow-a { border-bottom: 2px solid var(--frame); }
.follow-n { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; }
.follow-a .icon { width: 28px; height: 28px; transition: transform var(--t-med) var(--ease); }
.follow-a:hover { color: var(--black); background: var(--frame); padding-left: 12px; padding-right: 12px; }
.follow-a { transition: padding var(--t-med) var(--ease), background-color var(--t-fast), color var(--t-fast); }
.follow-a:hover .icon { transform: translate(3px, -3px); }
@media (max-width: 800px) { .follow-in { grid-template-columns: minmax(0, 1fr); } .follow-a .mono { display: none; } }

/* ---------- footer ---------- */
.site-foot { background: var(--ground); padding: clamp(48px, 6vw, 80px) 0 32px; }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.foot-brand { grid-column: 1 / -1; }
.foot-word { white-space: nowrap; font-size: clamp(2.25rem, 9.4vw, 10rem); color: var(--key); line-height: .82; margin-left: -.05em; }
.foot-sub { margin-top: 14px; color: var(--dim); font-size: .875rem; }
.foot-col { grid-column: span 4; }
.foot-col:first-of-type { grid-column: span 6; }
.foot-col:not(:first-of-type) { grid-column: span 3; }
.foot-h { font-size: .75rem; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.foot-col ul { list-style: none; display: grid; gap: 0; }
.foot-col:first-of-type ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; text-decoration: none; color: var(--dim); }
.foot-col a:hover { color: var(--frame); text-decoration: underline; text-underline-offset: 4px; }
.foot-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(244,246,255,.12); }
.foot-base .mono { font-size: .75rem; color: var(--faint); }
@media (max-width: 800px) {
  .foot-col:first-of-type { grid-column: 1 / -1; }
  .foot-col:not(:first-of-type) { grid-column: span 6; }
}

/* components.css */
/* Reusable parts: buttons, switches, chips, filter options, monitors, cards, player bar, licence chip. */

/* ---------- buttons: flat, square, one fill ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border: 0; border-radius: 0; cursor: pointer;
  font: 700 1rem/1.1 var(--body); font-stretch: 110%; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn-key { background: var(--key); color: var(--frame); }
.btn-key:hover { background: var(--key-hi); }
.btn-frame { background: var(--frame); color: var(--key); }
.btn-frame:hover { background: #fff; color: var(--deep); }
.btn-ink { background: var(--black); color: var(--frame); }
.btn-ink:hover { background: var(--deep); }
.btn-dark { background: var(--panel-2); color: var(--frame); }
.btn-dark:hover { background: #262a3e; }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-line:hover { background: var(--frame); color: var(--black); box-shadow: inset 0 0 0 2px var(--frame); }
.btn .icon { transition: transform var(--t-fast) var(--ease); }
.btn:hover .lucide-arrow-right { transform: translateX(3px); }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; cursor: pointer;
  background: var(--panel-2); color: var(--frame); transition: background-color var(--t-fast);
}
.icon-btn:hover { background: #262a3e; }
.icon-btn .icon { width: 20px; height: 20px; }
.i-pause, [aria-pressed="true"] > .i-play { display: none; }
[aria-pressed="true"] > .i-pause { display: block; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; font-stretch: 108%; text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.link-arrow .icon { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- segmented switches (radio groups) ---------- */
.switch { display: inline-flex; background: var(--panel-2); padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.switch::-webkit-scrollbar { display: none; }
.switch button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: transparent; border: 0; cursor: pointer; white-space: nowrap;
  font: 600 .9375rem var(--body); font-stretch: 104%; color: var(--dim);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.switch button:hover { color: var(--frame); }
.switch button:focus-visible { outline-offset: -3px; }
.switch button[aria-checked="true"] { background: var(--frame); color: var(--black); }
.switch .icon { width: 1em; height: 1em; }
.switch--apps { flex-wrap: wrap; overflow: visible; }
.swatch { width: 12px; height: 12px; flex: none; box-shadow: inset 0 0 0 1px rgba(244,246,255,.45); }
.swatch-black { background: #000; }
.swatch-light { background: #efece4; box-shadow: none; }
.swatch-green { background: #00b140; box-shadow: none; }
.swatch-footage { background: linear-gradient(135deg, #2b3550 0 50%, #c98a4b 50%); box-shadow: none; }
.swatch-checker { background: repeating-conic-gradient(#9a9aa3 0 25%, #4a4a52 0 50%) 0 0 / 6px 6px; box-shadow: none; }
.switch button[aria-checked="true"] .swatch-black { box-shadow: inset 0 0 0 1px rgba(0,0,0,.5); }

.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; font: 500 .875rem var(--body); color: var(--dim); }
.toggle-dot { position: relative; width: 36px; height: 20px; background: var(--panel-2); box-shadow: inset 0 0 0 1px rgba(244,246,255,.3); transition: background-color var(--t-fast); }
.toggle-dot::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--dim); transition: transform var(--t-med) var(--ease), background-color var(--t-fast); }
.toggle[aria-pressed="true"] .toggle-dot { background: var(--key); box-shadow: none; }
.toggle[aria-pressed="true"] .toggle-dot::after { transform: translateX(16px); background: var(--frame); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: var(--panel-2); color: var(--frame); text-decoration: none; white-space: nowrap;
  font-weight: 600; font-stretch: 106%; font-size: .9375rem; transition: background-color var(--t-fast);
}
.chip .mono { font-size: .75rem; color: var(--dim); }
.chip:hover { background: var(--key); }
.chip:hover .mono { color: var(--frame); }

/* ---------- filter options (toggle buttons that look like checkboxes) ---------- */
.opt {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; width: 100%;
  min-height: 44px; padding: 0 10px; border: 0; background: none; cursor: pointer; text-align: left;
  font: 500 .9375rem var(--body); color: var(--frame); transition: background-color var(--t-fast);
}
.opt:hover { background: var(--panel-2); }
.opt-box { display: grid; place-items: center; width: 20px; height: 20px; box-shadow: inset 0 0 0 2px var(--dim); }
.opt-box .icon { width: 14px; height: 14px; stroke-width: 3.5; opacity: 0; transform: scale(.4); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease); }
.opt[aria-pressed="true"] .opt-box { background: var(--key); box-shadow: none; }
.opt[aria-pressed="true"] .opt-box .icon { opacity: 1; transform: none; }
.opt-l { display: inline-flex; align-items: center; gap: 8px; }
.opt-n { font-size: .75rem; color: var(--dim); }
.opt-heart { width: 16px; height: 16px; }

/* ---------- monitors: black screens the effects play on ---------- */
.monitor { position: relative; background: var(--black); overflow: hidden; isolation: isolate; }
.monitor > video, .monitor > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.monitor > img.mon-poster { z-index: 1; transition: opacity 180ms linear; }
.monitor.is-live > img.mon-poster { opacity: 0; }

/* ---------- effect cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(14px, 1.6vw, 24px); list-style: none; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1001px) {
  .grid--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 66%; }
}
/* Title and meta on the left, the download button on the right, under the preview. */
.card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; align-content: start; column-gap: 12px; }
.card-mon { grid-column: 1 / -1; aspect-ratio: 16 / 9; isolation: auto; }   /* buttons inside must sit above the card link overlay */
.grid--9x16 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--9x16 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid--9x16 .card-mon { aspect-ratio: 9 / 16; }
.grid--9x16 .card-dl { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
.mon-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 3; background: var(--tick);
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
/* Small dark play button: shows on hover or keyboard focus with a mouse, always on touch screens. */
.mon-play {
  position: absolute; left: 8px; bottom: 10px; z-index: 4;
  display: grid; place-items: center; width: 36px; height: 36px; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .62); color: var(--frame); opacity: 0; transition: opacity var(--t-fast), background-color var(--t-fast);
}
.mon-play::before { content: ""; position: absolute; inset: -4px; }
.mon-play:hover { background: rgba(0, 0, 0, .85); }
.mon-play .icon { width: 16px; height: 16px; }
.mon-play:focus-visible, .card:hover .mon-play, .card.is-playing .mon-play { opacity: 1; }
@media (hover: none) { .mon-play { opacity: 1; } }
.save {
  position: absolute; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; border: 0; cursor: pointer;
  background: var(--black); color: var(--frame); transition: background-color var(--t-fast), color var(--t-fast);
}
.save .icon { width: 20px; height: 20px; transition: transform var(--t-med) var(--ease); }
.save:hover { background: var(--panel-2); }
.save[aria-pressed="true"] { color: var(--tick); }
.save[aria-pressed="true"] .icon { fill: currentColor; transform: scale(1.08); }
.save--card { right: 0; top: 0; }
.card-body { display: contents; }
.card-title { grid-column: 1 / -1; padding-top: 14px; font-size: 1.1875rem; font-weight: 800; font-stretch: 112%; line-height: 1.2; }
.card-link { display: inline-block; padding: 11px 0; margin: -11px 0; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card:hover .card-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.card-meta { grid-column: 1; align-self: center; margin-top: 8px; font-size: .75rem; color: var(--dim); white-space: nowrap; }
.card-dl {
  grid-column: 2; position: relative; z-index: 3; align-self: start; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  background: var(--panel-2); color: var(--frame); text-decoration: none; font-weight: 700; font-size: .875rem; white-space: nowrap;
  transition: background-color var(--t-fast);
}
.card-dl .mono { font-size: .75rem; font-weight: 400; color: var(--dim); }
.card-dl:hover { background: var(--key); }
.card-dl:hover .mono { color: var(--frame); }

/* Phones: two compact columns, so a screen shows four effects instead of one and a half. */
@media (max-width: 600px) {
  .grid, .grid--9x16 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; }
  .card-meta { grid-column: 1 / -1; align-self: start; margin-top: 2px; }
  .card-dl, .grid--9x16 .card-dl { grid-column: 1 / -1; }
  .card-dl, .grid--9x16 .card-dl { align-self: end; }
  .card-title { padding-top: 8px; font-size: .9375rem; line-height: 1.2; }
  .card-link { padding: 12px 0; margin: -12px 0; }
  .card-meta { font-size: .75rem; }
  .card-dl, .grid--9x16 .card-dl { justify-self: stretch; justify-content: center; margin-top: 8px; padding: 0 8px; gap: 6px; font-size: .8125rem; }
  .card-dl .icon { width: 15px; height: 15px; }
  .card-dl .mono { font-size: .6875rem; }
  .save--card { width: 44px; height: 44px; }
  .save--card .icon { width: 18px; height: 18px; }
  .grid--bento .card--feature { grid-column: 1 / -1; }
  .grid--bento > li:nth-child(6) { display: none; }   /* feature + four keeps the rows even */
  .grid--trio > li:nth-child(3) { display: none; }
}
@media (max-width: 360px) { .card-dl .card-dl-f { display: none; } }

/* Filters with no matches stay visible but quiet. */
.opt:disabled { cursor: default; color: var(--faint); }
.opt:disabled:hover { background: none; }
.opt:disabled .opt-box { box-shadow: inset 0 0 0 2px rgba(244, 246, 255, .25); }
.fcat.is-zero { color: var(--faint); }

/* Sideways-scrolling rows fade out at the edge that has more. */
.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }

/* A short ring when the app choice changes the advice. */
@keyframes lf-flash { from { box-shadow: 0 0 0 3px var(--tick); } to { box-shadow: 0 0 0 3px rgba(255, 214, 10, 0); } }
.is-flash { animation: lf-flash 900ms var(--ease); }

/* ---------- light layers: an effect's black version laid over the page with Screen blend ----------
   Black drops out and light adds, so sparks and glow cross the edges of blocks and type. The layer must
   not sit inside another stacking context, or it would only blend with that box. */
.fx-layer { position: absolute; z-index: 2; pointer-events: none; mix-blend-mode: screen; }
.fx-layer > img, .fx-layer > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-layer > img { z-index: 1; transition: opacity 200ms linear; }
.fx-layer.is-live > img { opacity: 0; }

/* Section edge cut from the hexagon wipe's own matte: the next block arrives in hexes. */
.hex-edge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: var(--hex-h); pointer-events: none;
  -webkit-mask: url('/media/hex-edge.png') 0 100% / 100% auto no-repeat; mask: url('/media/hex-edge.png') 0 100% / 100% auto no-repeat;
}
.hex-edge--deep { background: var(--deep); }
.hex-edge--key { background: var(--key); }
.hex-edge--flip { transform: scaleX(-1); }

/* ---------- player bar and seek ---------- */
.stage-bar { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.stage-time { font-size: .8125rem; color: var(--dim); font-variant-numeric: tabular-nums; min-width: 9ch; text-align: right; }
.seek { flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.seek::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(var(--tick), var(--tick)) 0 0 / var(--p, 0%) 100% no-repeat, rgba(244,246,255,.22); }
.seek::-moz-range-track { height: 4px; background: rgba(244,246,255,.22); }
.seek::-moz-range-progress { height: 4px; background: var(--tick); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; background: var(--frame); border: 0; border-radius: 0; }
.seek::-moz-range-thumb { width: 18px; height: 18px; background: var(--frame); border: 0; border-radius: 0; }
.seek:focus-visible { outline-offset: 0; }
input[type="range"]:not(.seek) { width: 100%; margin: 0; accent-color: var(--key); height: 44px; }

/* ---------- app picker ---------- */
.app-pick { display: grid; gap: 10px; justify-items: start; }
.app-pick-l { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }

/* ---------- licence chip: three facts and the link to the full page ---------- */
.lic { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 16px; background: var(--panel); text-decoration: none; font-size: .9375rem; font-weight: 600; font-stretch: 104%; transition: background-color var(--t-fast); }
a.lic:hover { background: var(--panel-2); }
.lic-i { display: inline-flex; align-items: center; gap: 8px; }
.lic-i .icon { color: var(--tick); }
.lic--band { background: transparent; padding: 0; margin-top: 28px; font-size: 1.0625rem; }
.lic--band .icon { color: var(--frame); }

.dash-list { list-style: none; display: grid; gap: 10px; }
.dash-list li { position: relative; padding-left: 26px; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 3px; background: var(--key); }

/* pages.css */
/* Page compositions: home, library, effect page, try-on, guide, documents. */

/* ===================== home ===================== */

/* Hero: a Key Blue block. Copy on the left; on the right a black screen as tall as the block, where the
   showcase plays. The effect is a Screen-blend layer wider than the screen, so its light runs past the
   screen's edge over the blue and the headline. */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  min-height: min(720px, calc(100svh - var(--head-h) - 72px));
  background: var(--key);
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.hero-copy { position: relative; align-self: center; padding: clamp(40px, 5vw, 80px) clamp(24px, 3vw, 48px) clamp(40px, 5vw, 80px) var(--edge); }
.hero-title { font-size: clamp(3.25rem, 6.4vw, 6.75rem); margin-left: -.04em; }
.hero-sub { max-width: 40ch; margin-top: 28px; font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); }
.hero-search {
  position: relative; display: flex; margin-top: 32px; max-width: 520px; background: var(--frame);
}
.hero-search-i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--key); width: 22px; height: 22px; }
.hero-search input {
  flex: 1; min-width: 0; height: 60px; padding: 0 12px 0 50px; border: 0; background: transparent;
  font: 600 1.0625rem var(--body); color: var(--black);
}
.hero-search input::placeholder { color: #5b6080; }
.hero-search input:focus-visible { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--tick); outline-offset: 3px; }
.hero-search .btn { min-height: 60px; padding: 0 24px; }
.hero-links { margin-top: 14px; }

.hero-show { display: flex; flex-direction: column; min-width: 0; }
.show-screen { position: relative; flex: 1 1 auto; min-height: 360px; background: var(--black); }   /* no isolation: the layer blends with the hero */
.show-fx { top: -4%; bottom: -4%; left: -52%; right: 8%; }
.show-screen.is-live .show-fx > img { opacity: 0; }
.show-bar { position: absolute; left: 0; bottom: 0; z-index: 3; display: flex; gap: 2px; max-width: 100%; }
.show-get { min-height: 56px; max-width: calc(100% - 58px); }
.show-get-l { font-family: var(--mono); font-weight: 400; font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; }
.show-get-t { overflow: hidden; text-overflow: ellipsis; }
.show-pause { width: 56px; height: 56px; background: var(--black); }
.show-tabs { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; list-style: none; padding-right: var(--edge); }
.show-tab {
  display: grid; gap: 10px; min-height: 44px; padding: 14px 12px 18px 0; text-decoration: none;
  font-weight: 700; font-stretch: 106%; font-size: .875rem; line-height: 1.2; color: rgba(244,246,255,.92);
  transition: color var(--t-fast);
}
.show-tab:hover, .show-tab[aria-current] { color: var(--frame); }
.show-tab-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-tab-bar { position: relative; height: 4px; background: rgba(244,246,255,.3); }
.show-tab-bar span { position: absolute; inset: 0; background: var(--frame); transform-origin: 0 50%; transform: scaleX(0); }
.show-tab[aria-current] .show-tab-bar span { background: var(--tick); }
.show-tab.is-done .show-tab-bar span { transform: scaleX(1); }
.show-tab:focus-visible { outline-offset: -3px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 32px var(--gutter) 28px; }
  .hero-sub { margin-top: 16px; }
  .hero-search { margin-top: 22px; }
  .hero-search input { height: 56px; }
  .hero-search .btn { min-height: 56px; padding: 0 18px; }
  .show-screen { flex: none; min-height: 0; aspect-ratio: 4 / 5; }
  .show-fx { top: -18%; bottom: 0; left: 0; right: 0; }
  .show-tabs { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter); gap: 12px; }
  .show-tabs::-webkit-scrollbar { display: none; }
  .show-tabs li { flex: 0 0 132px; }
}

/* Newest: one feature card over two columns and two rows. The section ends in a hexagon edge that
   brings in the Deep Key of the next block. */
.newest, .tt { position: relative; --hex-h: clamp(72px, 11vw, 190px); padding-bottom: calc(var(--hex-h) + clamp(16px, 3vw, 40px)); }
.grid--bento .card--feature { grid-column: span 2; grid-row: span 2; }
.grid--bento .card--feature .card-title { font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 118%; font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1; }
@media (max-width: 1000px) { .grid--bento .card--feature { grid-row: auto; } }
@media (max-width: 600px) { .grid--bento .card--feature .card-title { font-size: 1.375rem; } }

/* Three steps on Deep Key, with the app picker living inside step two. */
.steps { background: var(--deep); }
.steps .sect-title { max-width: 14ch; }
.steps-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 48px); margin-top: clamp(32px, 4vw, 56px); }
.step { display: grid; align-content: start; gap: 14px; padding-top: 20px; border-top: 2px solid var(--frame); }
.step-h { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; }
.step-n { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; background: var(--tick); color: var(--black); font-style: normal; font-weight: 600; font-size: .9375rem; font-stretch: 100%; translate: 0 -3px; }
.step p { max-width: 38ch; color: rgba(244,246,255,.85); }
.step .switch, .fx-try .switch, .page-tryon .switch { background: rgba(0,0,0,.28); }
.step .switch button, .fx-try .switch button, .page-tryon .switch button { color: rgba(244,246,255,.82); }
.step .switch button[aria-checked="true"], .fx-try .switch button[aria-checked="true"], .page-tryon .switch button[aria-checked="true"] { color: var(--deep); }
.which-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); margin-top: clamp(40px, 5vw, 64px); }
.which-mon { aspect-ratio: 16 / 9; }
.which-card { margin: 0; }
.which-card figcaption { display: grid; gap: 8px; padding-top: 14px; }
.which-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; }
.which-f span { color: var(--tick); }
.which-step { font-size: 1.0625rem; max-width: 52ch; min-height: 3.1em; }
.which-more { margin-top: 32px; color: rgba(244,246,255,.85); }
.which-more a { font-weight: 700; }
@media (max-width: 900px) { .steps-list, .which-cards { grid-template-columns: minmax(0, 1fr); } }

/* Category rows. */
.cat-list { list-style: none; }
.cat-row a {
  display: grid; grid-template-columns: 176px minmax(0, 1.1fr) minmax(0, 1.4fr) auto 28px; align-items: center; gap: 28px;
  padding: 14px 0; border-top: 1px solid rgba(244,246,255,.14); text-decoration: none;
  transition: background-color var(--t-fast), padding var(--t-med) var(--ease);
}
.cat-row:last-child a { border-bottom: 1px solid rgba(244,246,255,.14); }
.cat-thumb { display: block; aspect-ratio: 16 / 9; }
.cat-name { font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1; }
.cat-desc { color: var(--dim); }
.cat-count { font-size: .8125rem; color: var(--dim); white-space: nowrap; }
.cat-arrow { width: 26px; height: 26px; transition: transform var(--t-med) var(--ease); }
.cat-row a:hover { background: var(--key); padding-left: 14px; padding-right: 14px; }
.cat-row a:hover .cat-desc, .cat-row a:hover .cat-count { color: var(--frame); }
.cat-row a:hover .cat-arrow { transform: translateX(4px); }
@media (max-width: 900px) {
  .cat-row a { grid-template-columns: 112px minmax(0, 1fr) 24px; gap: 4px 16px; }
  .cat-thumb { grid-row: span 2; }
  .cat-name { font-size: 1.375rem; }
  .cat-desc { display: none; }
  .cat-count { grid-column: 2; grid-row: 2; }
  .cat-arrow { grid-column: 3; grid-row: 1 / span 2; }
}

/* Try-on teaser: the one Frame White block; the monitor overlaps the block above it. */
.tt { background: var(--frame); color: var(--black); }
.tt-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.tt .sect-title { color: var(--key); }
.tt-p { margin: 22px 0 30px; max-width: 42ch; font-size: 1.125rem; }
.tt-stack { position: relative; z-index: 1; margin-top: calc(clamp(56px, 8vw, 112px) * -1.6); }
.tt-mon { aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -20px rgba(7, 8, 13, .55); }
.tt-cap { margin-top: 10px; font-size: .75rem; color: #3b4060; }
@media (max-width: 900px) { .tt-grid { grid-template-columns: minmax(0, 1fr); } .tt-stack { order: -1; margin-top: -64px; } }

/* ===================== library ===================== */
.lib { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: clamp(28px, 3vw, 48px); padding-top: 24px; padding-bottom: 24px; }
.filters { position: sticky; top: calc(var(--head-h) + 20px); align-self: start; max-height: calc(100svh - var(--head-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filters-h { font-size: 1.75rem; line-height: 1; }
.fgroup { margin-bottom: 26px; }
.fgroup-h { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid rgba(244,246,255,.14); }
.fcats { list-style: none; }
.fcat { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; text-decoration: none; font-weight: 600; font-stretch: 104%; font-size: .9375rem; transition: background-color var(--t-fast); }
.fcat .mono { font-size: .75rem; color: var(--dim); font-weight: 400; }
.fcat:hover { background: var(--panel-2); }
.fcat[aria-current] { background: var(--key); }
.fcat[aria-current] .mono { color: var(--frame); }
.fgroup--preview { display: grid; gap: 8px; }
.lib-main { min-width: 0; }
.lib-bar { display: flex; gap: 8px; }
.lib-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 18px; background: var(--panel-2); }
.lib-search .icon { width: 22px; height: 22px; color: var(--dim); }
.lib-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--frame); font: 600 1.125rem var(--body); }
.lib-search input::placeholder { color: var(--faint); }
.lib-search input:focus-visible { outline: none; }
.lib-search:focus-within { outline: 3px solid var(--tick); outline-offset: 2px; }
.lib-filter-btn { min-height: 60px; }
.lib-filter-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; background: var(--tick); color: var(--black); font-size: .75rem; }
.lib-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 18px 0 24px; }
.lib-count { font-size: .8125rem; color: var(--dim); }
.lib-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { padding: 56px 0; display: grid; gap: 16px; justify-items: start; }
.empty-t { font-size: clamp(2rem, 4vw, 3rem); }

@media (min-width: 901px) { .fgroup--preview { display: none; } }
@media (max-width: 900px) {
  .lib { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .lib-preview { display: none; }
  .lib-preview--show { display: flex; }
  .lib-search { height: 56px; padding: 0 14px; gap: 10px; }
  .lib-search input { font-size: 1rem; }
  .lib-filter-btn { min-height: 56px; padding: 0 16px; }
  .lib-status { margin: 12px 0 16px; }
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; max-height: 86svh;
    padding: 20px var(--gutter) 0; background: var(--ground); box-shadow: 0 0 0 100vmax rgba(0,0,0,.66);
    transform: translateY(105%); visibility: hidden; transition: transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform var(--t-med) var(--ease); }
  .filters-foot { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--ground); }
  .fcats { display: flex; flex-wrap: wrap; gap: 4px; }
  .fcat { background: var(--panel-2); padding: 0 12px; }
}
@media (min-width: 901px) { .filters-foot, .filters-close { display: none !important; } }

/* Category: Key Blue header with the category's own light running through it. */
.cat-body { padding-top: 8px; padding-bottom: 24px; }
.other-cats .sect-title { margin-bottom: 24px; }

/* ===================== effect page ===================== */
.fx-slim { display: none; }
.fx-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 3.5vw, 56px); padding-top: 28px; padding-bottom: clamp(48px, 6vw, 88px); align-items: start; }
/* Desktop: the player stays in view while the file list scrolls past it. */
.fx-media { position: sticky; top: calc(var(--head-h) + 16px); }
.stage { width: 100%; aspect-ratio: 16 / 9; view-transition-name: fx-stage; }
.stage.is-9x16 { aspect-ratio: auto; height: min(70svh, 760px); }
.stage > video, .stage > img { object-fit: contain; }
.stage-poster { z-index: 1; transition: opacity 160ms linear; }
.stage.is-live .stage-poster { opacity: 0; }
.stage-play {
  position: absolute; left: 50%; top: 50%; z-index: 3; translate: -50% -50%;
  display: grid; place-items: center; width: 84px; height: 84px; border: 0; cursor: pointer;
  background: var(--key); color: var(--frame); transition: opacity var(--t-fast), transform var(--t-fast);
}
.stage-play .icon { width: 34px; height: 34px; fill: currentColor; }
.stage-play[aria-pressed="true"] { opacity: 0; pointer-events: none; }
.stage-play:hover { transform: scale(1.04); }
.stage-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.moments { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.moments-l { font-size: .75rem; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; margin-right: 6px; }
.moment { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; cursor: pointer; background: transparent; box-shadow: inset 0 0 0 1px rgba(244,246,255,.3); font: 600 .875rem var(--body); transition: background-color var(--t-fast); }
.moment .mono { font-size: .75rem; color: var(--tick); font-weight: 400; }
.moment:hover { background: var(--panel-2); }

.fx-info { display: grid; gap: 18px; }
.fx-info .crumbs { margin-bottom: -8px; }
.fx-title-row { display: flex; align-items: start; gap: 16px; justify-content: space-between; }
.fx-title { font-size: clamp(2.375rem, 4.4vw, 4.25rem); }
.save--detail { position: relative; flex: none; background: var(--panel-2); width: 48px; height: 48px; }
.fx-meta { font-size: .8125rem; color: var(--dim); }
.fx-blurb { max-width: 52ch; }
.dl { display: grid; gap: 18px; margin-top: 6px; }
.dl-main { display: grid; gap: 8px; }
.dl-best { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tick); }
.dl-primary { justify-content: flex-start; gap: 16px; min-height: 72px; padding: 14px 22px; text-align: left; white-space: normal; }
.dl-primary .icon { width: 26px; height: 26px; }
.dl-primary-l { display: grid; gap: 4px; font-size: 1.1875rem; }
.dl-primary-s { font-size: .8125rem; font-weight: 400; color: rgba(244,246,255,.86); }
.dl-file { font-size: .75rem; color: var(--faint); word-break: break-all; }
.dl-how { padding-left: 14px; box-shadow: inset 3px 0 0 var(--tick); }
.ios-tip { display: flex; gap: 10px; font-size: .875rem; color: var(--dim); }
.ios-tip .icon { margin-top: 3px; }
.files-h { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-top: 8px; }
.files { list-style: none; display: grid; gap: 6px; }
.file { display: grid; gap: 8px; padding: 16px; background: var(--panel); transition: background-color var(--t-fast); }
.file.is-rec { background: var(--panel-2); }
.file-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.file-name { font-size: 1.0625rem; font-weight: 800; font-stretch: 110%; }
.file-tag { padding: 4px 8px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; background: var(--tick); color: var(--black); }
.file-how { font-size: .9375rem; color: var(--dim); }
.file-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.file-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--ground); text-decoration: none; font-weight: 700; transition: background-color var(--t-fast); }
.file-btn .file-s { font-size: .75rem; font-weight: 400; color: var(--dim); }
.file-btn:hover { background: var(--key); }
.file-btn:hover .file-s { color: var(--frame); }

.dock { display: none; }
@media (max-width: 900px) {
  /* Phones: a slim title line, the player, then the bottom download bar is already in reach. */
  .fx-slim { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .fx-slim-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-stretch: 112%; font-size: 1.0625rem; }
  .fx-slim .mono { flex: none; font-size: .75rem; color: var(--dim); }
  .fx-top { grid-template-columns: minmax(0, 1fr); padding-top: 0; gap: 20px; }
  .fx-media { position: static; margin: 0 calc(var(--gutter) * -1); }
  .stage.is-9x16 { height: min(64svh, 177.7vw); }
  .stage-bar, .stage-controls, .moments { padding-left: var(--gutter); padding-right: var(--gutter); }
  .stage-controls { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .stage-controls .switch { flex: none; }
  .fx-media .stage-bar > .icon-btn:first-child { display: none; }
  .dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--ground);
    border-top: 1px solid rgba(244,246,255,.12); transform: translateY(110%); transition: transform var(--t-med) var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock-btn { width: 100%; min-height: 56px; justify-content: flex-start; gap: 14px; padding: 8px 16px; white-space: normal; text-align: left; }
  .dock-l { display: grid; gap: 2px; }
  .dock-best { font-size: .75rem; font-weight: 400; color: rgba(244,246,255,.88); }
  .page-detail .site-foot { padding-bottom: 104px; }
}

.fx-try { background: var(--deep); }
.fx-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); padding-top: clamp(56px, 7vw, 96px); }
.specs dl { display: grid; }
.specs dl > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid rgba(244,246,255,.14); }
.specs dt { font-size: .75rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.howto .link-arrow { margin-top: 12px; }
@media (max-width: 900px) { .fx-more { grid-template-columns: minmax(0, 1fr); } .specs dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ===================== try-on ===================== */
.tryon { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.to-stage-wrap { min-width: 0; }
.to-stage { width: 100%; aspect-ratio: 16 / 9; touch-action: none; }
.to-stage.is-9x16 { width: auto; max-width: 100%; height: min(70svh, 740px); aspect-ratio: 9 / 16; margin: 0 auto; }
.to-stage > .to-sample, .to-stage > .to-sample-poster { object-fit: cover; }
.to-sample-poster { z-index: 1; transition: opacity 180ms linear; }
.to-stage.is-live .to-sample-poster { opacity: 0; }
.to-badge { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 6px 10px; background: var(--black); font-size: .75rem; }
.to-stage .to-user { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.to-fx { position: absolute; inset: 0; z-index: 1; cursor: grab; touch-action: none; transform-origin: 50% 50%; }
.to-fx:active { cursor: grabbing; }
.to-fx video { width: 100%; height: 100%; object-fit: cover; background: transparent; pointer-events: none; }
.to-fx.is-screen { mix-blend-mode: screen; }
.to-fx.is-screen video { background: var(--black); }
.to-fx:focus-visible { outline: 3px solid var(--tick); outline-offset: -3px; }
.to-drop { position: absolute; left: 50%; top: 16px; z-index: 2; translate: -50% 0; width: min(88%, 340px); cursor: pointer; }
.to-drop-in { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 16px; background: var(--key); text-align: center; font-weight: 700; font-stretch: 108%; transition: background-color var(--t-fast); }
.to-drop:hover .to-drop-in, .to-stage.is-over .to-drop-in { background: var(--key-hi); }
.to-drop-i { width: 22px; height: 22px; }
.to-drop:focus-within { outline: 3px solid var(--tick); outline-offset: 2px; }
.to-panel { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field-l { display: flex; justify-content: space-between; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.field-l output { color: var(--frame); }
.field select { height: 52px; padding: 0 14px; border: 0; border-radius: 0; background: var(--panel-2); color: var(--frame); font: 600 1rem var(--body); }
input[type="range"]:disabled { opacity: .4; cursor: not-allowed; }
.field-note { font-size: .9375rem; color: var(--dim); }
.to-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.to-pick { cursor: pointer; }
.to-pick:focus-within { outline: 3px solid var(--tick); outline-offset: 2px; }
.fx-try .to-stage-wrap .stage-bar .icon-btn, .fx-try .field select,
.page-tryon .to-stage-wrap .stage-bar .icon-btn, .page-tryon .field select { background: rgba(0,0,0,.3); }
.fx-try .sect-lede, .page-tryon .field-note, .page-tryon .field-l { color: rgba(244,246,255,.85); }
/* The try-on page is one Deep Key plane: header and tool together. */
.page-tryon .ph { background: var(--deep); border-bottom: 0; }
.page-tryon .ph-title { color: var(--frame); }
.page-tryon .ph-sub { color: rgba(244,246,255,.85); }
.tool-body { padding-top: 8px; padding-bottom: clamp(72px, 9vw, 136px); }
.page-tryon .tool-body { max-width: none; background: var(--deep); padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
@media (max-width: 900px) {
  .tryon { grid-template-columns: minmax(0, 1fr); }
  .to-stage.is-9x16 { height: min(62svh, 160vw); }
}

/* ===================== guide ===================== */
.guide-toc { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 18px; }
.guide-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--panel-2); text-decoration: none; font-weight: 700; font-stretch: 106%; transition: background-color var(--t-fast), color var(--t-fast); }
.guide-toc a:hover { background: var(--key); }
.guide-bar { position: sticky; top: var(--head-h); z-index: 40; background: var(--ground); padding: 12px 0; border-bottom: 1px solid rgba(244,246,255,.1); }
.guide-bar .app-pick { grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.guide-sect { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); padding: clamp(48px, 6vw, 88px) 0; border-bottom: 1px solid rgba(244,246,255,.12); scroll-margin-top: calc(var(--head-h) + 72px); }
.guide-intro { max-width: 56ch; font-size: 1.125rem; }
.guide-note { max-width: 56ch; margin-top: 14px; color: var(--dim); }
.app-steps { display: grid; gap: 28px; margin-top: 32px; }
.js .app-step[data-dim] { display: none; }
.app-name { font-size: 1.125rem; font-weight: 800; font-stretch: 112%; margin-bottom: 12px; }
.app-step ol { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.app-step li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.app-step li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; background: var(--key); font: 600 .875rem var(--mono); }
.guide-mon { aspect-ratio: 16 / 9; position: sticky; top: calc(var(--head-h) + 96px); align-self: start; }
.guide-cap { position: absolute; left: 0; bottom: 0; z-index: 3; padding: 7px 10px; background: var(--black); font-size: .75rem; }
.guide-extra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: clamp(48px, 6vw, 88px) 0; }
.extra-h { font-size: 1.625rem; line-height: 1; margin-bottom: 12px; }
.extra p { color: var(--dim); }
@media (max-width: 900px) {
  .guide-sect { grid-template-columns: minmax(0, 1fr); }
  .guide-mon { position: relative; top: 0; order: -1; }
  .guide-extra { grid-template-columns: minmax(0, 1fr); }
  .guide-bar .app-pick { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .guide-bar .switch--apps { flex-wrap: nowrap; overflow-x: auto; }
  .guide-toc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}

/* ===================== documents: licence, privacy ===================== */
.lic-band { position: relative; }
.lic-band .band-in { position: relative; }
.lic-fx { right: -4%; top: -12%; width: min(58%, 860px); aspect-ratio: 16 / 9; }
@media (max-width: 900px) { .lic-fx { right: -45%; top: 8%; width: 120%; } }
.doc { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 96px); }
.doc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.doc-col { padding: clamp(24px, 3vw, 40px); background: var(--panel); }
.doc-col--yes { background: var(--deep); }
.doc-h { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 20px; }
.ticks, .crosses { list-style: none; display: grid; gap: 16px; }
.ticks li, .crosses li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.ticks .icon { color: var(--tick); width: 22px; height: 22px; margin-top: 2px; }
.crosses .icon { color: var(--dim); width: 22px; height: 22px; margin-top: 2px; }
.doc-sect { max-width: 760px; margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 14px; }
.doc-sect .doc-h { margin-bottom: 4px; }
.credit { padding: 16px 18px; background: var(--panel-2); font-size: .9375rem; }
.doc--prose { max-width: calc(820px + var(--gutter) * 2); margin-left: 0; margin-right: auto; }
@media (min-width: 1440px) { .doc--prose { margin-left: calc((100vw - var(--max)) / 2); } }
.doc-date { font-size: .8125rem; color: var(--dim); }
.doc--prose .doc-sect:first-of-type { margin-top: 24px; }
.doc a { text-underline-offset: 3px; }
@media (max-width: 800px) { .doc-cols { grid-template-columns: minmax(0, 1fr); } }

/* ===================== 404 ===================== */
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Without JavaScript the effect page falls back to the browser's own video controls. */
html:not(.js) .stage-poster, html:not(.js) .stage-play, html:not(.js) .stage-bar, html:not(.js) .stage-controls, html:not(.js) .moments { display: none; }
@media (min-width: 901px) { .lib-filter-btn { display: none !important; } }
.stage:fullscreen { height: 100%; aspect-ratio: auto; }

