/* /motion — Motion Graphics showcase. Static page, brand: night / ink / cream / paper / gold, Italiana + Cormorant + Jost.
   The one bold device is the beat ruler: the real soundtrack of a film, measured beat by beat, with a live playhead. */
@font-face { font-family: Italiana; src: url(/assets/motion/italiana-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; src: url(/assets/motion/cormorant-500i.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Jost; font-weight: 400; src: url(/assets/motion/jost-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Jost; font-weight: 500; src: url(/assets/motion/jost-500.woff2) format('woff2'); font-display: swap; }

:root {
  --night: #0c121e; --ink: #1e2638; --cream: #f5efe4; --paper: #fbf7ef; --gold: #c39b5e; --pale: #e8cfa3; --gold-ink: #7a5a2c; --legal: #c9c3b8;
  --line: rgba(232, 207, 163, .16); --ease: cubic-bezier(.22, 1, .36, 1); --rh: 430px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 17px/1.65 Jost, system-ui, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: var(--pale); }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pale); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pale); color: var(--night); }
.wrap { width: min(1240px, 100% - clamp(32px, 6vw, 96px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 300; background: var(--cream); color: var(--night); padding: 8px 14px; border-radius: 8px; }
h1, h2, h3 { font-family: Italiana, Georgia, serif; font-weight: 400; margin: 0; line-height: 1.05; text-wrap: balance; }
p, li { text-wrap: pretty; }
.num { font-family: Jost, system-ui, sans-serif; font-weight: 400; font-size: .8em; letter-spacing: -.01em; }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(12, 18, 30, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; white-space: nowrap; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm-1 { font-family: Italiana, Georgia, serif; font-size: 1.125rem; text-transform: uppercase; letter-spacing: .2em; }
.wm-2 { margin-top: 4px; font-size: .58rem; text-transform: uppercase; letter-spacing: .52em; color: var(--gold); }
.top nav { display: flex; align-items: center; gap: 20px; font-size: .92rem; }
.top nav a:not(.btn) { color: var(--cream); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.top nav a:not(.btn):hover { color: var(--pale); }
.top nav a[aria-current] { color: var(--pale); border-bottom-color: var(--gold); }
.narrow-only { display: none; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold); color: var(--night); font-weight: 500; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.btn:hover { background: var(--pale); border-color: var(--pale); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(245, 239, 228, .35); }
.btn-ghost:hover { background: rgba(245, 239, 228, .08); border-color: var(--pale); color: var(--pale); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .85rem; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── hero ── */
.hero { position: relative; padding: clamp(28px, 6vh, 64px) 0 clamp(48px, 8vh, 88px); background: radial-gradient(70% 60% at 82% 18%, rgba(195, 155, 94, .16), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(51, 70, 95, .45), transparent 70%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.crumbs { font-size: .85rem; color: var(--legal); margin-bottom: clamp(20px, 4vh, 40px); }
.crumbs a { color: var(--legal); }
h1 { font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: .96; letter-spacing: -.01em; }
h1 .l1 { display: block; }
h1 .l2 { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; color: var(--pale); font-size: .86em; margin-top: .08em; }
.hero .lead { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); line-height: 1.4; margin: clamp(20px, 3vh, 32px) 0 0; max-width: 26ch; }
.hero .sub { color: var(--legal); max-width: 50ch; margin: 16px 0 0; }
.hero-film { margin: 0; justify-self: center; }
.frame { position: relative; display: block; padding: 0; border: 1px solid rgba(232, 207, 163, .22); border-radius: 22px; overflow: hidden; background: var(--ink); cursor: pointer; height: min(66vh, 640px); aspect-ratio: var(--ar); box-shadow: 0 50px 90px -50px rgba(195, 155, 94, .55), 0 0 0 8px rgba(245, 239, 228, .03); }
.frame img, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame video { opacity: 0; transition: opacity .5s var(--ease); }
.frame video.on { opacity: 1; }
.watch { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; background: rgba(12, 18, 30, .78); border: 1px solid rgba(232, 207, 163, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .88rem; font-weight: 500; white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease); }
.watch svg { width: 16px; height: 16px; fill: currentColor; }
.frame:hover .watch, .frame:focus-visible .watch { background: var(--gold); color: var(--night); }
.hero-film figcaption { margin-top: 14px; text-align: center; font-size: .9rem; color: var(--legal); }
.hero-film figcaption b { font-weight: 500; color: var(--cream); }

/* ── the beat ruler ── */
.timeline { margin-top: clamp(36px, 6vh, 64px); }
.ruler-box { position: relative; height: 84px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ruler { display: block; width: 100%; height: 100%; overflow: visible; }
.ruler .env rect { fill: var(--pale); opacity: .22; }
.ruler .bt { stroke: var(--cream); stroke-opacity: .32; stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .5s var(--ease), stroke-opacity .5s var(--ease), stroke-width .5s var(--ease); }
.ruler .bt.db { stroke: var(--gold); stroke-opacity: .9; stroke-width: 1.5; }
.ruler .bt.hit { stroke: var(--pale); stroke-opacity: 1; stroke-width: 3; transition: none; }
.ruler .ph { stroke: var(--cream); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; }
.ruler.live .ph { opacity: 1; }
.timeline-cap { margin: 14px 0 0; max-width: 78ch; font-size: .95rem; color: var(--legal); }
.timeline-cap b { color: var(--cream); font-weight: 500; }

/* ── library ── */
.lib { padding: clamp(72px, 11vh, 128px) 0; border-top: 1px solid var(--line); }
.lib-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; }
h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.02; }
.lib-head p { margin: 0; max-width: 52ch; color: var(--legal); }
.filters { margin-top: clamp(32px, 5vh, 48px); display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; }
.fgroup { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.flabel { font-size: .85rem; color: var(--legal); padding-top: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(245, 239, 228, .22); background: transparent; color: var(--cream); font-size: .88rem; cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.chip .n { font-size: .75rem; color: var(--pale); font-variant-numeric: tabular-nums; }
.chip:hover:not(:disabled) { border-color: rgba(245, 239, 228, .6); }
.chip[aria-pressed='true'] { background: var(--cream); border-color: var(--cream); color: var(--night); }
.chip[aria-pressed='true'] .n { color: var(--gold-ink); }
.chip:disabled { opacity: .38; cursor: default; }
.is-collapsed .more-chip:not([aria-pressed='true']) { display: none; }
.chip-more { border-style: dashed; color: var(--pale); }
.lib-bar { display: flex; align-items: center; gap: 16px; margin: 26px 0 18px; min-height: 40px; }
.lib-status { margin: 0; font-size: .92rem; color: var(--legal); }
.clear { background: none; border: 0; padding: 6px 0; color: var(--pale); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: .92rem; }
.empty .clear { text-decoration: none; padding: 12px 24px; }
.empty { padding: 48px 0; text-align: center; color: var(--legal); }

/* justified rows: every card keeps its true aspect ratio; each row grows to the full width */
.grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 36px 20px; }
.grid::after { content: ''; flex: 99999 1 0; } /* a short last row keeps its natural size instead of stretching */
.card { flex-basis: calc(var(--ar) * var(--rh)); flex-shrink: 1; min-width: 0; max-width: calc(var(--ar) * var(--rh) * 1.45); display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-media { position: relative; display: block; width: 100%; aspect-ratio: var(--ar); padding: 0; border: 1px solid rgba(232, 207, 163, .16); border-radius: 16px; overflow: hidden; background: var(--ink); cursor: pointer; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media video { opacity: 0; transition: opacity .45s var(--ease); }
.card-media video.on { opacity: 1; }
.tc { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(12, 18, 30, .72); font-size: .74rem; font-variant-numeric: tabular-nums; color: var(--cream); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.play { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(12, 18, 30, .72); border: 1px solid rgba(232, 207, 163, .35); transition: background-color .25s var(--ease), color .25s var(--ease); }
.play svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.card-media:hover .play, .card-media:focus-visible .play { background: var(--gold); color: var(--night); }
.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; }
.card h3 { font-size: clamp(1.3rem, 1.6vw, 1.6rem); line-height: 1.1; }
.for { margin: 0; font-size: .9rem; color: var(--legal); }
.tag { margin: 0; font-size: .76rem; font-weight: 500; letter-spacing: .04em; color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
.tag .client { padding: 1px 9px; border-radius: 999px; background: var(--gold); color: var(--night); font-size: .7rem; }
.pills { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { font-size: .74rem; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(245, 239, 228, .2); color: var(--legal); white-space: nowrap; }
.get { margin-top: auto; padding: 10px 0 0; background: none; border: 0; color: var(--pale); font-size: .9rem; font-weight: 500; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(232, 207, 163, .4); text-underline-offset: 5px; }
.get:hover { text-decoration-color: var(--pale); }

/* ── how we make them (paper) ── */
.how { background: var(--paper); color: var(--night); padding: clamp(72px, 11vh, 128px) 0; }
.how a { color: var(--gold-ink); }
.steps { list-style: none; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); position: relative; }
/* the steps sit on a beat line: small ticks between, one gold downbeat per step */
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 14px; background: repeating-linear-gradient(90deg, rgba(12, 18, 30, .18) 0 1px, transparent 1px calc(25% / 4)); border-bottom: 1px solid rgba(12, 18, 30, .2); }
.steps li { position: relative; padding-top: 0; }
.beat { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--night); font-family: Jost, system-ui, sans-serif; font-weight: 500; font-size: 1rem; margin-bottom: 26px; box-shadow: 0 0 0 6px var(--paper); }
.steps h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.1; }
.steps p { margin: 12px 0 0; color: var(--ink); max-width: 34ch; }

/* ── what you can order ── */
.order { padding: clamp(72px, 11vh, 128px) 0; background: var(--ink); }
.order-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; }
.order-head p { margin: 0; color: var(--legal); max-width: 52ch; }
.tiles { list-style: none; margin: clamp(36px, 5vh, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile { padding: 22px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.tile h3 { font-size: 1.45rem; }
.tile p { margin: 0; font-size: .92rem; color: var(--legal); }
.tile-ex { margin-top: auto; padding: 8px 0 0; align-self: flex-start; background: none; border: 0; color: var(--pale); font-size: .85rem; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(232, 207, 163, .4); }
.sub-h { margin-top: clamp(48px, 7vh, 72px); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.fmts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fmt { padding: 24px; border-radius: 18px; background: rgba(12, 18, 30, .55); border: 1px solid var(--line); }
.fmt h3 { font-size: 1.5rem; margin-top: 18px; }
.fmt p { margin: 8px 0 0; font-size: .92rem; color: var(--legal); }
.fmt .px { font-size: .8rem; color: var(--pale); font-variant-numeric: tabular-nums; }
.shape { display: flex; align-items: flex-end; height: 92px; }
.shape i { display: block; height: 100%; border: 1.5px solid var(--gold); border-radius: 8px; background: linear-gradient(180deg, rgba(195, 155, 94, .18), transparent); }
.fmt-9-16 .shape i { aspect-ratio: 9 / 16; }
.fmt-16-9 .shape i { aspect-ratio: 16 / 9; height: 58%; }
.fmt-1-1 .shape i { aspect-ratio: 1; height: 76%; }
.fmt-16-9-rotate .shape { position: relative; }
.fmt-16-9-rotate .shape i { aspect-ratio: 16 / 9; height: 58%; }
.fmt-16-9-rotate .shape::after { content: ''; position: absolute; left: 6px; bottom: 0; height: 92px; aspect-ratio: 9 / 16; border: 1.5px dashed rgba(232, 207, 163, .45); border-radius: 8px; }
.bundles { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; gap: 16px 40px; align-items: center; padding: 28px clamp(22px, 3vw, 36px); border-radius: 20px; border: 1px solid rgba(195, 155, 94, .45); background: radial-gradient(80% 140% at 0% 0%, rgba(195, 155, 94, .16), transparent 70%); }
.bundles-h { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--pale); white-space: nowrap; }
.bundles p:not(.bundles-h) { margin: 0; color: var(--cream); max-width: 56ch; }

/* ── call to action ── */
.cta { padding: clamp(72px, 11vh, 128px) 0; background: radial-gradient(60% 60% at 12% 10%, rgba(195, 155, 94, .18), transparent 70%), var(--night); border-top: 1px solid var(--line); }
.cta h2 em { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; color: var(--pale); }
.cta .lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem); max-width: 56ch; margin: 20px 0 0; }
.diary { margin: 20px 0 0; max-width: 60ch; font-size: .92rem; color: var(--legal); }
.foot { padding: 32px 0 44px; font-size: .88rem; color: var(--legal); border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.foot a { color: var(--cream); }
.foot a[aria-current] { color: var(--pale); }

/* ── player overlay ── */
.player { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 9, 16, .94); color: var(--cream); overscroll-behavior: contain; }
.player::backdrop { background: rgba(6, 9, 16, .7); }
.player[open] { display: block; animation: pl-in .35s var(--ease); }
@keyframes pl-in { from { opacity: 0; } }
.pl { display: grid; grid-template-columns: minmax(0, 1fr) min(440px, 36vw); height: 100%; }
.pl-stage { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: clamp(20px, 4vh, 40px) clamp(20px, 3vw, 48px); min-width: 0; }
.pl-screen { aspect-ratio: var(--par, .5625); height: min(78vh, 100%); max-width: 100%; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.player.is-wide .pl-screen { height: auto; width: 100%; max-height: 78vh; }
.pl-screen video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.pl-ruler { width: min(100%, 900px); height: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pl-ruler:empty { display: none; }
.pl-side { position: relative; overflow-y: auto; padding: clamp(28px, 6vh, 64px) clamp(22px, 2.6vw, 40px) 40px; background: var(--night); border-left: 1px solid var(--line); }
.pl-close { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(232, 207, 163, .35); background: transparent; cursor: pointer; }
.pl-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.pl-close:hover { background: var(--cream); color: var(--night); }
.pl-side h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin-top: 10px; padding-right: 48px; }
.pl-idea { margin: 12px 0 0; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.35rem; line-height: 1.35; color: var(--pale); }
.pl-variants { display: inline-flex; margin-top: 20px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.pl-variants[hidden] { display: none; }
.pl-variants button { min-height: 38px; padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: .86rem; }
.pl-variants button[aria-pressed='true'] { background: var(--cream); color: var(--night); }
.pl-details { margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; border-top: 1px solid var(--line); }
.pl-details div { padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.pl-details dt { font-size: .78rem; color: var(--legal); }
.pl-details dd { margin: 2px 0 0; font-size: .95rem; }
.pl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.prompt { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.prompt-how { margin: 0; color: var(--cream); font-size: .95rem; }
.prompt-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 12px; }
.copy-status { font-size: .85rem; color: var(--pale); }
.prompt-text { margin: 0; max-height: 46vh; overflow: auto; padding: 16px 18px; border-radius: 12px; background: #070b14; border: 1px solid var(--line); color: #e9e3d8; font: 400 .8rem/1.6 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.prompt-soon p { margin: 14px 0 0; color: var(--legal); }
.prompt-soon b { color: var(--cream); font-weight: 500; }
.gate { margin-top: 14px; }
.gate label { display: block; font-size: .88rem; margin-bottom: 6px; }
.gate-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gate input { flex: 1 1 200px; min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(245, 239, 228, .3); background: transparent; color: var(--cream); font: inherit; }
.gate-note { font-size: .85rem; color: var(--legal); margin: 8px 0 0; }

/* ── responsive ── */
@media (max-width: 1100px) {
  :root { --rh: 360px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fmts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundles { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-film { justify-self: start; }
  .frame { height: auto; width: min(68vw, 330px); }
  .lib-head, .order-head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .steps::before { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl { grid-template-columns: 1fr; height: auto; min-height: 100%; }
  .player { overflow-y: auto; }
  .pl-stage { padding: 60px 16px 12px; }
  .pl-screen { height: auto; width: min(100%, calc(64vh * var(--par, .5625))); }
  .player.is-wide .pl-screen { width: 100%; }
  .pl-side { border-left: 0; border-top: 1px solid var(--line); overflow: visible; padding: 24px 16px 40px; }
  .prompt { scroll-margin-top: 64px; }
  .prompt-how { padding-right: 52px; }
  .pl-close { position: fixed; right: 12px; top: 12px; z-index: 2; background: rgba(12, 18, 30, .8); }
  .prompt-text { max-height: none; }
}
@media (max-width: 640px) {
  :root { --rh: 270px; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .top nav { gap: 14px; }
  .top nav a[href="/work/"], .top nav a[href="/#services"] { display: none; }
  .brand { gap: 10px; }
  .brand .mark { width: 30px; height: 30px; }
  .wm-1 { font-size: 1rem; letter-spacing: .16em; }
  .wide-only { display: none; } .narrow-only { display: inline; }
  .frame { width: min(76vw, 300px); }
  .actions .btn { flex: 1 1 100%; }
  .ruler-box { height: 64px; }
  .fgroup { grid-template-columns: 1fr; gap: 6px; }
  .flabel { padding-top: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .grid { gap: 28px 12px; }
  .card h3 { font-size: 1.2rem; }
  .pills { display: none; }
  .steps { grid-template-columns: 1fr; }
  .tiles, .fmts { grid-template-columns: 1fr; }
  .pl-details { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
