/* MotionStyles (working name): shared site styles.
   Warm paper, one ink, one accent. Type does the work; motion explains changes. */
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --paper: #efece6; --paper-2: #e7e3db; --card: #f7f5f1; --ink: #141311; --soft: #6f6a62; --mute: #a29d94; --line: #d6d0c6;
  --accent: #d0532a; --dark: #121110; --dark-2: #1c1a18;
  --ease: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --display: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", Georgia, serif;
  --max: 1440px; --gut: clamp(16px, 3vw, 40px);
  --field: #fff; --hdr: rgb(239 236 230 / .82); --mark: #151412; --mark-ink: #f2efe9; --edge: transparent; --shadow: rgb(30 25 20 / .5);
  --ink-2: #2f2c28; --thumb: #e4dfd7; --warn: #9a5b2a; --on-dark: #141311;
  --dlg: #efece6; --backdrop: rgb(20 18 16 / .45); --feature-edge: #121110;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121110; --paper-2: #1b1a18; --card: #1d1b19; --ink: #f2efe9; --soft: #a9a399; --mute: #8e887e; --line: #2e2b27;
    --accent: #ff6a3d; --dark: #1b1a18; --dark-2: #24221f;
    --field: #262320; --hdr: rgb(18 17 16 / .8); --mark: #f2efe9; --mark-ink: #151412; --edge: #2e2b27; --shadow: rgb(0 0 0 / .7);
    --ink-2: #d9d4cb; --thumb: #2a2724; --warn: #e3a476;
    --dlg: #1d1b19; --backdrop: rgb(0 0 0 / .62); --feature-edge: #6f6a62;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121110; --paper-2: #1b1a18; --card: #1d1b19; --ink: #f2efe9; --soft: #a9a399; --mute: #8e887e; --line: #2e2b27;
  --accent: #ff6a3d; --dark: #1b1a18; --dark-2: #24221f;
  --field: #262320; --hdr: rgb(18 17 16 / .8); --mark: #f2efe9; --mark-ink: #151412; --edge: #2e2b27; --shadow: rgb(0 0 0 / .7);
    --ink-2: #d9d4cb; --thumb: #2a2724; --warn: #e3a476;
    --dlg: #1d1b19; --backdrop: rgb(0 0 0 / .62); --feature-edge: #6f6a62;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mask { overflow: hidden; display: grid; } .mask > * { grid-area: 1 / 1; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--hdr); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s; }
.hdr.scrolled { border-color: var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 16px; white-space: nowrap; }
.logo svg { width: 28px; height: 28px; flex: none; }
.logo svg rect { fill: var(--mark); } .logo svg .mm-path { stroke: var(--mark-ink); }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; transition: border-color .2s; }
.theme:hover, .theme:focus-visible { border-color: var(--ink); }
.theme svg { width: 17px; height: 17px; } .theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; } :root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: block; } :root:not([data-theme="light"]) .theme .moon { display: none; } }
.logo .mm-word { font-weight: 500; letter-spacing: -.03em; font-size: 17px; }
.logo .mm-word b { font-weight: 700; }
.logo .mm-path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.logo:hover .mm-path { animation: mm-draw .9s cubic-bezier(.65, 0, .35, 1); }
@keyframes mm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .logo:hover .mm-path { animation: none; } }
.logo .wn { font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 2px 7px; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { text-decoration: none; font-size: 14px; color: var(--soft); position: relative; padding: 4px 0; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ink); }
.hdr .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font-size: 14px; cursor: pointer; transition: transform .3s var(--ease), background .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn svg { transition: transform .35s var(--ease); } .btn:hover svg { transform: translateX(3px); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: transform .35s var(--ease); }
@media (max-width: 900px) {
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 18px; margin: 0; clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); }
  .nav.open { clip-path: inset(0 0 0 0); }
  .nav a { font-size: 22px; padding: 10px 0; color: var(--ink); }
  .burger { display: block; }
  .hdr .right .btn.ghost { display: none; } .hdr .wrap { gap: 14px; } .hdr .right { gap: 6px; } .theme { width: 34px; height: 34px; }
  .logo .wn { display: none; }
}

/* footer */
.ftr { margin-top: 120px; background: var(--dark); color: #d9d4cb; border-top: 1px solid var(--edge); }
.ftr .wrap { padding-top: 72px; padding-bottom: 40px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.ftr h3 { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8d877d; font-weight: 500; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.ftr a { text-decoration: none; color: #d9d4cb; } .ftr a:hover { color: #fff; }
.ftr .big { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.02em; color: #f2efe9; margin: 0 0 18px; max-width: 14ch; }
.ftr .base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #2c2926; padding-top: 22px; font-size: 12px; color: #8d877d; }
@media (max-width: 760px) { .ftr .wrap { grid-template-columns: 1fr 1fr; } .ftr .wrap > :first-child { grid-column: 1 / -1; } }

/* page heads */
.phead { padding: clamp(56px, 9vw, 120px) 0 clamp(28px, 4vw, 48px); }
.phead .kick { color: var(--soft); margin-bottom: 18px; }
.phead h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 7vw, 108px); line-height: .98; letter-spacing: -.03em; max-width: 14ch; }
.phead p { margin: 22px 0 0; font-size: clamp(16px, 1.4vw, 19px); color: var(--soft); max-width: 52ch; }

/* gallery cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px 20px; }
.card { position: relative; text-decoration: none; display: block; }
.card .frame { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--paper-2); transform: translateZ(0); }
.card .frame img, .card .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.card .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.card .frame video.on { opacity: 1; }
.card .frame iframe { width: 1440px; height: 900px; transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .5s; }
.card .frame iframe.ready { opacity: 1; }
.card .frame .live { position: absolute; left: 12px; top: 12px; z-index: 2; background: rgb(20 19 17 / .78); color: #fff; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; opacity: 0; transform: translateY(-4px); transition: .35s var(--ease); display: flex; gap: 6px; align-items: center; }
.card .frame .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff6a3d; }
.card:hover .frame .live, .card:focus-visible .frame .live { opacity: 1; transform: none; }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.card .meta h3 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.card .meta .cat { font-size: 12px; color: var(--soft); white-space: nowrap; }
.card .job { margin: 3px 0 0; font-size: 13px; color: var(--soft); }
.card .num { position: absolute; right: 12px; top: 12px; z-index: 2; font-size: 11px; color: #fff; mix-blend-mode: difference; font-variant-numeric: tabular-nums; }

.card[hidden] { display: none !important; }

/* chips */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; font-size: 13px; cursor: pointer; color: var(--soft); transition: color .2s, border-color .2s, background .2s; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip sup { font-size: 9px; opacity: .7; }

/* prose (learn and licence pages) */
.prose { max-width: 760px; font-size: 16px; line-height: 1.7; }
.prose h1 { font-size: 40px; font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 24px; }
.prose h2 { font-size: 26px; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; margin: 56px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 18px; font-weight: 500; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .86em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; color: var(--soft); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.prose a { text-underline-offset: 3px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 99px; font-size: 14px; transition: .45s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.lic { max-width: min(560px, calc(100vw - 32px)); border-radius: 18px; text-align: center; line-height: 1.45; pointer-events: auto; }
.toast a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lic-note { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--soft); }
.lic-note a { color: var(--ink); }

/* reveal on scroll: a short rise, once */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } .card .frame iframe { display: none; } }

/* Pro mark: every Pro design and element carries it on its card and page. Free items carry nothing. */
.pro-mark { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px 0 6px; border-radius: 99px; background: linear-gradient(100deg, #c2421c, #ff6a2b 60%, #ffa266); color: #fff; font: 600 11px/1 var(--body, inherit); letter-spacing: .04em; vertical-align: middle; white-space: nowrap; flex: none; }
.pro-mark svg { width: 10px; height: 10px; }

/* ---- account (header) ---- */
.acct { position: relative; display: flex; align-items: center; }
.acct-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; display: inline-grid; place-items: center; transition: border-color .2s; }
.acct-btn:hover, .acct-btn:focus-visible, .acct-btn[aria-expanded="true"] { border-color: var(--ink); }
.acct-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); z-index: 60; }
.acct-menu[hidden] { display: none; }
.acct-who { margin: 0 0 4px; display: grid; gap: 2px; font-size: 14px; }
.acct-who span { color: var(--soft); font-size: 13px; overflow-wrap: anywhere; }
.acct-plan { margin: 0 0 10px; font-size: 12px; color: var(--soft); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.acct-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--ink); font: inherit; font-size: 14px; padding: 8px 0; cursor: pointer; }
.acct-menu button:hover, .acct-menu button:focus-visible { text-decoration: underline; }
.acct-menu .acct-del { color: var(--soft); font-size: 13px; }
.nav .nav-acct { display: none; }
@media (max-width: 900px) { .nav .nav-acct { display: block; } }
/* phones: no room for both, and Pricing in the menu leads to the waiting list */
@media (max-width: 480px) { .hdr .right.has-acct > a.btn:not(.ghost) { display: none; } }
