:root {
  --bg: #111113; --surface: #17171a; --surface-2: #1f1f23; --line: #2a2a30;
  --text: #f1efe9; --muted: #9a978f; --accent: #E5402A; --accent-ink: #ffffff; --action: #D93A24; --action-hover: #C23320;
  --danger: #ff7a6b; --ok: #7bd389; --radius: 14px;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0 0 .3em; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--accent); margin: 0 0 12px; }
.lede { font-size: 18px; color: var(--muted); max-width: 560px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--action); color: var(--accent-ink);
  border: 1px solid var(--action); padding: 10px 18px; border-radius: 999px; font: 500 14px var(--sans); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.ghost.light { border-color: rgba(255,255,255,.35); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.danger, .link.danger { color: var(--danger); }
.link { background: none; border: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(241,239,233,.35); cursor: pointer; font: inherit; padding: 0; }
.link:hover { text-decoration-color: currentColor; }

input, select, textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  padding: 10px 12px; font: 14px var(--sans); margin-top: 6px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
label { display: block; font-size: 13px; color: var(--text); margin-bottom: 14px; }
label.check { display: flex; gap: 10px; align-items: center; }
label.check input { width: auto; margin: 0; }
.stack { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row.form-end { display: flex; justify-content: flex-end; gap: 10px; }
.error { color: var(--danger); background: rgba(255,122,107,.08); padding: 10px 12px; border-radius: 10px; }
.ok { color: var(--ok); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 600 16px var(--sans); letter-spacing: -.01em; }
.logo-svg { display: block; height: 100%; width: auto; }
.brand .logo-svg { height: 26px; }
.auth-card .brand { color: var(--text); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 32px 28px 80px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.back { display: inline-block; color: var(--muted); margin-bottom: 18px; font-size: 14px; }
section { margin-bottom: 40px; }
.tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; margin-bottom: 10px; }

/* landing */

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.auth-card .brand { margin-bottom: 26px; }

/* dashboard */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .2s, transform .2s; }
.card:hover { border-color: #3a3a42; transform: translateY(-2px); }
.cover { aspect-ratio: 16/10; background: var(--surface-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-empty { width: 100%; height: 100%; background: radial-gradient(circle at 30% 20%, #2b2620, var(--surface-2)); }
.card-body { padding: 16px 18px 18px; }
.card-body p { margin: 2px 0; }
.empty { text-align: center; padding: 80px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 28px; width: min(520px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }

/* project page */
.share { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.share h3 { margin: 0; } .share p { margin: 2px 0 0; }
.copy { display: flex; gap: 8px; }
.copy input { margin: 0; font-family: ui-monospace, monospace; font-size: 13px; }
.stats { display: flex; gap: 22px; }
.stats div { display: flex; flex-direction: column; } .stats b { font-size: 18px; font-weight: 600; } .stats span { color: var(--muted); font-size: 12px; }
.drop { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 34px; text-align: center; transition: border-color .2s, background .2s; }
.drop.over { border-color: var(--accent); background: rgba(232,192,122,.05); }
.drop p { margin: 4px 0; }
#queue { margin-top: 14px; text-align: left; }
.q-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.q-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { grid-column: 1 / -1; height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.q-row.done .bar i { background: var(--ok); width: 100% !important; }
.q-row.failed .bar i { background: var(--danger); }
.q-error { grid-column: 1 / -1; margin: 2px 0 0; font: 400 13px/1.4 var(--geist); color: var(--danger); }
.q-summary { margin: 16px 0 4px; font: 400 14px var(--geist); color: var(--text); }
.q-summary a { color: var(--accent); }
.folder-head { display: flex; align-items: center; gap: 8px; margin: 28px 0 12px; font: 500 15px var(--geist); }
.folder-head:first-of-type { margin-top: 8px; }
.folder-ico { flex: none; opacity: .7; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.asset { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.thumb { position: relative; aspect-ratio: 4/3; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.badge.left { right: auto; left: 8px; background: var(--accent); color: var(--accent-ink); }
.file-icon { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font: 600 14px var(--sans); letter-spacing: .08em; padding: 12px; text-align: center; word-break: break-all; }
.file-icon.tall { aspect-ratio: 4/3; background: var(--surface-2); font-size: 26px; }
.asset-meta { padding: 10px 12px 4px; display: flex; flex-direction: column; }
.asset-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.asset-actions { display: flex; gap: 14px; padding: 0 12px 10px; }
.settings > form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.danger-zone { display: flex; gap: 10px; margin-top: 16px; }
.auto-delete { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 8%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }
.auto-delete p { margin: 0; font-size: 14px; }
.auto-delete b { color: var(--danger); }
.auto-delete-field { display: grid; gap: 8px; }
.auto-delete-field .days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 0 26px; font-weight: 400; font-size: 14px; color: var(--muted); }
.auto-delete-field .days input { width: 76px; margin: 0; }
.auto-delete-field:not(:has(input[name=auto_delete]:checked)) .days { opacity: .45; }
.card .deleting { margin: 4px 0 0; color: var(--danger); }
.share-mail { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.share-mail label { font-weight: 600; margin: 0; }
.share-mail .copy { max-width: 620px; }
.share-mail .copy input { flex: 1; font-family: inherit; font-size: 14px; }
.share-mail p { margin: 0; }
.share-mail.is-off { padding-top: 14px; }

@media (max-width: 760px) {
  .wrap { padding: 24px 16px 60px; }
  .row { grid-template-columns: 1fr; }
  .share { grid-template-columns: 1fr; }
}

/* ===== Navigation (adapted from 1367 Studio) ===== */
:root { --inout: cubic-bezier(.65, 0, .35, 1); --out: cubic-bezier(.215, .61, .355, 1); --geist: 'Geist', 'Inter', sans-serif; --mono: 'Geist Mono', ui-monospace, monospace; }
.hidden { display: none !important; }
body.has-nav .wrap { padding-top: 112px; }
.header-logo { font: 600 18px var(--geist); letter-spacing: -.02em; color: var(--hc); white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }

/* ===== Minimal fullscreen hero (adapted from 1367 Studio) ===== */
.fs-hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #111113; color: #fff;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 30px; }
.fs-hero.light { background: #e6e1cb; color: #111113; }
.fs-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.fs-hero:not(.light)::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 0; pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.fs-title { position: relative; z-index: 1; margin: 0; font: 400 clamp(24px, 2.05vw, 38px)/1.05 var(--geist); letter-spacing: -.01em; max-width: 640px; }
.fs-title span { color: rgba(255,255,255,.62); }
.fs-hero.light .fs-title span { color: #8d8a7e; }
.fs-aside { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; flex: none; }
.fs-mono { margin: 0; max-width: 210px; font: 400 10px/1.1 var(--mono); text-transform: uppercase; letter-spacing: .01em; }
.fs-cta { display: inline-flex; align-items: center; justify-content: center; min-width: 118px; height: 36px; padding: 0 22px; border-radius: 4px;
  background: var(--action); color: #fff; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; transition: background .2s; }
.fs-cta:hover { background: var(--action-hover); }
@media (max-width: 767px) {
  .fs-hero { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 20px; }
  .fs-aside { width: 100%; justify-content: space-between; }
}
@media (max-width: 767px) {
  .fs-hero.light .fs-media { object-fit: contain; object-position: center 32%; transform: scale(1.6);
    -webkit-mask-image: radial-gradient(closest-side, #000 75%, transparent); mask-image: radial-gradient(closest-side, #000 75%, transparent); }
}

/* ===== Landing sections ===== */
.lp { --lp-fg: #111113; --lp-muted: #615E55; --lp-line: rgba(0,0,0,.14); color: var(--lp-fg); padding: clamp(80px, 11vw, 160px) 30px; }
.lp-light { background: #e6e1cb; }
.lp-dark { background: #111113; --lp-fg: #f1efe9; --lp-muted: #9a978f; --lp-line: rgba(255,255,255,.12); }
.lp-inner { max-width: 1220px; margin: 0 auto; }
.lp-label { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--lp-muted); margin: 0 0 28px; }
.lp-statement { font: 400 clamp(30px, 4.3vw, 62px)/1.06 var(--geist); letter-spacing: -.025em; margin: 0; max-width: 1080px; color: var(--lp-fg); }
.lp-statement span { color: var(--lp-muted); }
.lp-heading { font: 400 clamp(28px, 3.2vw, 46px)/1.08 var(--geist); letter-spacing: -.02em; margin: 0 0 22px; max-width: 620px; color: var(--lp-fg); }
.lp-body { font: 400 17px/1.55 var(--geist); color: var(--lp-muted); max-width: 520px; margin: 0 0 28px; }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: clamp(56px, 7vw, 104px); }
.pillar { display: flex; flex-direction: column; scroll-margin-top: 110px; }
.pillar-num { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--lp-muted); }
.pillar h3 { font: 400 26px/1.15 var(--geist); letter-spacing: -.015em; margin: 14px 0 8px; color: var(--lp-fg); }
.pillar p { font: 400 15px/1.5 var(--geist); color: var(--lp-muted); margin: 0; }

/* Pillar visuals: small looping scenes, one cycle every 4.8s */
.pv { --cy: 4.8s; position: relative; aspect-ratio: 5 / 4; border-radius: 14px; background: #dcd6bd; overflow: hidden; margin-bottom: 24px;
  transition: transform .5s var(--spring); }
.pillar:hover .pv { transform: translateY(-6px); }

.pv-quality { display: flex; flex-direction: column; justify-content: center; padding: 0 22px; }
.pvq-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; padding: 14px; border-radius: 10px; background: #ece7d3;
  font: 400 11px var(--mono); color: #111113; }
.pvq-row em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--lp-muted); }
.pvq-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pvq-row b { font-weight: 400; font-variant-numeric: tabular-nums; }
.pvq-row.out { animation: pvq-hit var(--cy) infinite; }
.pvq-track { position: relative; height: 46px; }
.pvq-track::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(17,17,19,.25); }
.pvq-track i { position: absolute; left: calc(50% - 4px); top: 0; width: 9px; height: 9px; border-radius: 2.5px; background: #E5402A; animation: pvq-move var(--cy) cubic-bezier(.65,0,.35,1) infinite; }
.pvq-badge, .pvs-chip { position: absolute; left: 22px; bottom: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 4px;
  font: 400 10px var(--mono); text-transform: uppercase; letter-spacing: .04em; animation: pv-pop var(--cy) var(--spring) infinite; }
.pvq-badge { background: #E5402A; color: #fff; }
@keyframes pvq-move { 0%, 8% { transform: translateY(0); opacity: 0; } 14% { opacity: 1; } 44% { transform: translateY(37px); opacity: 1; } 50%, 100% { transform: translateY(37px); opacity: 0; } }
@keyframes pvq-hit { 0%, 44% { box-shadow: 0 0 0 0 rgba(229,64,42,0); } 50%, 86% { box-shadow: 0 0 0 1.5px #E5402A; } 96%, 100% { box-shadow: 0 0 0 0 rgba(229,64,42,0); } }
@keyframes pv-pop { 0%, 48% { transform: scale(.6); opacity: 0; } 56%, 88% { transform: none; opacity: 1; } 96%, 100% { transform: none; opacity: 0; } }

.pv-speed { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 0 22px 20px; }
.pvs-row { display: grid; gap: 8px; font: 400 11px var(--mono); color: #111113; }
.pvs-row i { position: relative; height: 4px; border-radius: 4px; background: rgba(17,17,19,.1); overflow: hidden; }
.pvs-row i::after { content: ''; position: absolute; inset: 0; background: #E5402A; transform-origin: left; transform: scaleX(0); }
.pvs-row:nth-child(1) i::after { animation: pvs-a var(--cy) infinite; }
.pvs-row:nth-child(2) i::after { animation: pvs-b var(--cy) infinite; }
.pvs-row:nth-child(3) i::after { animation: pvs-c var(--cy) infinite; }
@keyframes pvs-a { 0%, 4% { transform: scaleX(0); } 44% { transform: scaleX(1); } 88% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes pvs-b { 0%, 4% { transform: scaleX(0); } 28% { transform: scaleX(1); } 88% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes pvs-c { 0%, 4% { transform: scaleX(0); } 36% { transform: scaleX(1); } 88% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
.pvs-chip { background: #111113; color: #f1efe9; }
.pvs-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #E5402A; }

.pv-easy { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.pve-link { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px 14px; border-radius: 999px;
  background: #ece7d3; font: 400 11px var(--mono); color: #111113; animation: pve-press var(--cy) infinite; }
.pve-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; min-height: 0; }
.pve-grid i { position: relative; border-radius: 8px; background: #111113 url('/static/arch.jpg') 50% 52% / 240%; animation: pve-in var(--cy) cubic-bezier(.215,.61,.355,1) infinite; }
.pve-grid .g2 { background: #111113; animation-delay: .1s; }
.pve-grid .g2::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #f1efe9; }
.pve-grid .g3 { background: radial-gradient(circle at 62% 38%, #f3efe2 0 16%, transparent 17%), linear-gradient(165deg, #E5402A, #8f2314); animation-delay: .2s; }
.pve-grid .g4 { background: #111113 url('/static/arch.jpg') 8% 78% / 320%; animation-delay: .3s; }
.pve-tap { position: absolute; width: 14px; height: 14px; border-radius: 4px; background: #111113; left: 0; top: 0; animation: pve-tap var(--cy) cubic-bezier(.65,0,.35,1) infinite; }
@keyframes pve-tap {
  0% { transform: translate(260px, 200px); opacity: 0; }
  6% { opacity: 1; }
  20% { transform: translate(120px, 30px); opacity: 1; }
  23% { transform: translate(120px, 30px) scale(.75); }
  27% { transform: translate(120px, 30px) scale(1); opacity: 1; }
  40%, 100% { transform: translate(300px, 120px); opacity: 0; }
}
@keyframes pve-press { 0%, 21% { transform: none; background: #ece7d3; } 24% { transform: scale(.95); background: #f6f2e4; } 30%, 100% { transform: none; background: #ece7d3; } }
@keyframes pve-in { 0%, 26% { opacity: 0; transform: translateY(10px) scale(.96); } 36%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }

.reveal-on .pillar:not(.in) .pv *, .reveal-on .pillar:not(.in) .pv *::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .pv *, .pv *::after { animation: none !important; }
  .pvs-row i::after { transform: scaleX(1); }
  .pve-tap, .pvq-track i { display: none; }
}

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--lp-line); max-width: 520px; }
.check-list li { font: 400 15px var(--geist); padding: 14px 0 14px 30px; border-bottom: 1px solid var(--lp-line); position: relative; color: var(--lp-fg); }
.check-list li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 1.5px solid #E5402A; border-bottom: 1.5px solid #E5402A; transform: rotate(-45deg); }
.mock { background: #1a1a1d; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a40; }
.mock-bar em { font: normal 400 11px var(--mono); color: #8d8a82; margin-left: 10px; }
.mock-hero { aspect-ratio: 16 / 9.5; background: #e6e1cb url('/static/hero.jpg') center / cover; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px; color: #111; }
.mock-title { font: 400 clamp(13px, 1.3vw, 17px)/1.1 var(--geist); letter-spacing: -.01em; }
.mock-title span { color: #8d8a7e; }
.mock-cta { background: var(--action); color: #fff; font: 500 9px var(--mono); text-transform: uppercase; padding: 9px 14px; border-radius: 3px; white-space: nowrap; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.mock-stats div { padding: 14px 16px; border-right: 1px solid rgba(255,255,255,.06); display: grid; gap: 4px; }
.mock-stats div:last-child { border-right: 0; }
.mock-stats span { font: 400 10px var(--mono); text-transform: uppercase; color: #8d8a82; }
.mock-stats b { font: 400 13px var(--geist); color: #f1efe9; }

.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--lp-line); }
.fact-grid div { padding: 28px 24px 0 0; display: grid; gap: 8px; }
.fact-grid b { font: 400 clamp(40px, 5vw, 72px)/1 var(--geist); letter-spacing: -.03em; color: var(--lp-fg); }
.fact-grid span { font: 400 11px var(--mono); text-transform: uppercase; color: var(--lp-muted); }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: none; }
.steps li { border-top: 1px solid var(--lp-line); padding-top: 22px; }
.steps span { font: 400 11px var(--mono); color: var(--lp-muted); }
.steps h3 { font: 400 22px var(--geist); letter-spacing: -.01em; margin: 36px 0 10px; color: var(--lp-fg); }
.steps p { font: 400 15px/1.6 var(--geist); color: var(--lp-muted); margin: 0; }
#why, #how, #professional, #pricing { scroll-margin-top: 0; }

/* Home page pricing: Pro and Studio cards. Each square in a card's picture is 10 GB, the whole Free plan. */
.price-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.price-copy .lp-heading { max-width: 520px; }
.price-more { margin: 28px 0 0; font: 400 14px/1.7 var(--geist); color: var(--lp-muted); max-width: 520px; }
.price-more a { color: var(--lp-fg); text-decoration: underline; text-decoration-color: rgba(241,239,233,.3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.price-more a:hover { text-decoration-color: currentColor; }
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pcard { --sq: rgba(241,239,233,.8); display: flex; flex-direction: column; padding: 12px; background: #1a1a1d; border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); transition: border-color .3s; }
.pcard:hover { border-color: rgba(255,255,255,.16); }
.pcard.featured { --sq: #E5402A; border-color: rgba(229,64,42,.45); }
.pcard.featured:hover { border-color: rgba(229,64,42,.75); }
.pc-vis { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; height: 128px; padding: 14px; background: #141416; border: 1px solid rgba(255,255,255,.05); border-radius: 9px; }
.pc-cap { display: flex; justify-content: space-between; gap: 12px; font: 400 10px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: #8d8a82; }
.pc-key { display: inline-flex; align-items: center; gap: 6px; }
.pc-key i { width: 7px; height: 7px; border-radius: 2px; background: var(--sq); }
.pc-grid { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 3px; max-width: 340px; }
.pc-grid i { aspect-ratio: 1; border-radius: 1.5px; background: var(--sq);
  transition: opacity .35s var(--out) calc(300ms + var(--i) * 8ms), transform .5s var(--spring) calc(300ms + var(--i) * 8ms); }
.reveal-on .pcard:not(.in) .pc-grid i { opacity: 0; transform: scale(.3); }
.pc-body { display: flex; flex-direction: column; flex: 1; padding: 26px 12px 12px; }
.pcard h3 { font: 400 26px/1.1 var(--geist); letter-spacing: -.015em; margin: 0; color: var(--lp-fg); }
.pc-line { font: 400 14px/1.45 var(--geist); color: var(--lp-muted); margin: 8px 0 0; min-height: 2.9em; }
.pc-space { display: grid; gap: 10px; margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--lp-line); }
.pc-space b { font: 400 clamp(44px, 4.4vw, 64px)/1 var(--geist); letter-spacing: -.035em; color: var(--lp-fg); white-space: nowrap; }
.pc-space span { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--lp-muted); }
.pc-price { display: grid; gap: 4px; margin: 18px 0 28px; font: 400 15px var(--geist); color: var(--lp-muted); }
.pc-price b { font-weight: 500; font-size: 20px; letter-spacing: -.01em; color: var(--lp-fg); }
.pc-price small { font: 400 13px var(--geist); color: var(--lp-muted); }
.pc-cta { width: 100%; height: 42px; margin-top: auto; }
.pc-cta.light { background: #f1efe9; color: #111113; }
.pc-cta.light:hover { background: #fff; }
@media (max-width: 1100px) { .price-split { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .price-cards { grid-template-columns: 1fr; } .pc-line { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .pc-grid i { transition: none; } }


.reveal-on .reveal { opacity: 0; transform: translateY(var(--ry, 48px)); transition: opacity 1s cubic-bezier(.22, 1, .36, 1) var(--rd, 0ms), transform 1s cubic-bezier(.22, 1, .36, 1) var(--rd, 0ms); }
/* Fora's entrance offsets: headings travel furthest, labels least. */
.reveal-on .lp-heading.reveal, .reveal-on .lp-statement.reveal { --ry: 72px; }
.reveal-on .lp-label.reveal { --ry: 36px; }
.reveal-on .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .pillar-grid, .steps { grid-template-columns: 1fr; gap: 56px; }
  .split { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact-grid div { padding-bottom: 28px; }
}
@media (max-width: 767px) {
  .lp { padding: 80px 20px; }
  .mock-stats { grid-template-columns: 1fr; }
  .mock-stats div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
}
.lp, .fs-hero, .arch, .end { margin: 0; }
#site-header.is-scrolled .nav-side { gap: 24px; }

/* ===== Brand ===== */
.header-logo.is-brand { display: block; height: 22px; max-width: none; color: var(--hc); }
.foot-logo { display: block; height: 20px; color: #f1efe9; }
.foot-logo .logo-svg { height: 20px; }
.lp-light .lp-statement::selection, .lp-light ::selection { background: #E5402A; color: #fff; }
@media (max-width: 767px) { .header-logo.is-brand { height: 19px; } }

/* ===== Logo symbol motion =====
   The four squares sit on a 26-unit grid; the red one is pushed 6 units out of its slot.
   Intro: dark squares pop in, the red one appears in its grid slot and breaks out.
   Loop: the dark squares pulse one by one (files going up), the red one tucks back
   into the grid and springs out again (the delivery leaving the studio). */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); --cf-red: #E5402A; }
.cf-symbol { display: block; width: 100%; height: 100%; overflow: visible; color: #111113; }
.cf-symbol .sq { fill: currentColor; transform-box: fill-box; transform-origin: center; }
.cf-symbol .sq4 { fill: var(--cf-red); }

.fs-symbol { position: absolute; z-index: 0; left: 50%; top: 46%; width: min(40vh, 52vw); aspect-ratio: 1; transform: translate(-50%, -50%); }
.anim-hero .sq1 { animation: cf-pop .7s var(--spring) .15s both, cf-pulse 5s ease-in-out 2.6s infinite; }
.anim-hero .sq2 { animation: cf-pop .7s var(--spring) .25s both, cf-pulse 5s ease-in-out 2.78s infinite; }
.anim-hero .sq3 { animation: cf-pop .7s var(--spring) .35s both, cf-pulse 5s ease-in-out 2.96s infinite; }
.anim-hero .sq4 { animation: cf-arrive 1.5s .55s both, cf-flow 5s 2.6s infinite; }

@keyframes cf-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes cf-arrive {
  0% { transform: translate(-6px, -6px) scale(0); animation-timing-function: var(--spring); }
  45% { transform: translate(-6px, -6px) scale(1); animation-timing-function: var(--spring); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes cf-pulse {
  0%, 100% { transform: none; opacity: 1; }
  6% { transform: scale(.82); opacity: .45; }
  14% { transform: none; opacity: 1; }
}
@keyframes cf-flow {
  0%, 24% { transform: none; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  34%, 42% { transform: translate(-6px, -6px) scale(.9); animation-timing-function: var(--spring); }
  58%, 100% { transform: none; }
}

/* Loader: same story, faster and endless. */
.anim-loader .sq1 { animation: cf-pulse-fast 1.6s ease-in-out infinite; }
.anim-loader .sq2 { animation: cf-pulse-fast 1.6s ease-in-out .12s infinite; }
.anim-loader .sq3 { animation: cf-pulse-fast 1.6s ease-in-out .24s infinite; }
.anim-loader .sq4 { animation: cf-flow-fast 1.6s infinite; }
@keyframes cf-pulse-fast { 0%, 100% { transform: none; opacity: 1; } 15% { transform: scale(.78); opacity: .4; } 32% { transform: none; opacity: 1; } }
@keyframes cf-flow-fast {
  0%, 35% { transform: none; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  50%, 60% { transform: translate(-6px, -6px) scale(.88); animation-timing-function: var(--spring); }
  82%, 100% { transform: none; }
}
.uploading { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.uploading[hidden] { display: none; }
.uploading .cf-symbol { width: 22px; height: 22px; color: var(--text); }

/* Header logo: hover tucks the red square into the grid. */
.logo-svg rect[fill="#E5402A"] { transform-box: fill-box; transition: transform .55s var(--spring); }
.header-logo.is-brand:hover .logo-svg rect[fill="#E5402A"],
.header-logo.is-brand:focus-visible .logo-svg rect[fill="#E5402A"] { transform: translate(-6px, -6px); }

@media (max-width: 767px) { .fs-symbol { top: 40%; width: 56vw; } }
@media (prefers-reduced-motion: reduce) {
  .cf-symbol .sq { animation: none !important; }
  .logo-svg rect[fill="#E5402A"] { transition: none; }
}

/* ===== Arch transition + black ending (adapted from Hasan Wali) ===== */
.arch { position: relative; height: 1500px; overflow: hidden; background: linear-gradient(#e6e1cb 81%, #111113 84%); }
.arch-layer { position: absolute; inset: 0; z-index: 1; overflow: hidden; transform-origin: 50% 50%; will-change: transform; }
.arch-layer img { display: block; width: 100%; height: 100%; object-fit: fill; max-width: none; }
.end { position: relative; min-height: 100vh; min-height: 100svh; margin: 0; background: #111113; color: #f1efe9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 96px max(20px, env(safe-area-inset-right, 0px)) 120px max(20px, env(safe-area-inset-left, 0px)); }
.end-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 640px; }
.end .lp-label { color: rgba(241,239,233,.55); margin: 0; }
.end-title { font: 400 clamp(32px, 4.3vw, 58px)/1.05 var(--geist); letter-spacing: -.025em; margin: 0; color: #f1efe9; text-wrap: balance; }
.end-title span { color: rgba(241,239,233,.5); }
.end-sub { font: 400 15px/1.5 var(--geist); color: rgba(241,239,233,.6); margin: 0 0 6px; }
.end-rule { width: min(360px, 100%); height: 1px; background: rgba(255,255,255,.1); margin-top: 36px; }
.end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; opacity: .6; }
.end-links a { color: #f1efe9; font: 400 13px var(--geist); }
.end-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.end-foot { position: absolute; left: 30px; right: 30px; bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.end-foot .fs-mono { color: #8d8a82; max-width: none; }
.cursor-sq { position: fixed; left: 0; top: 0; width: 16px; height: 16px; border-radius: 4px; background: #fff; mix-blend-mode: difference;
  pointer-events: none; z-index: 70; opacity: 0; transition: opacity .2s ease; will-change: transform; }
.cursor-sq.on { opacity: 1; }
@media (max-width: 767px) {
  .arch { height: 900px; }
  .end-foot { position: static; flex-direction: column; margin-top: 64px; }
  .end { padding-bottom: 32px; }
}

/* ===== Cube spiral + drop zone (after fourmula.ai) =====
   Cubes ride three spiral arms from the edges into the centre, where the drop card sits.
   Dragging files over speeds the spiral up; each dropped file becomes a cube with its thumbnail. */
.spiral { position: absolute; inset: 0; overflow: hidden; perspective: 1100px; pointer-events: none; }
.spiral-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; z-index: 0; }
.cube { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  transform-style: preserve-3d; will-change: transform; }
.cube .f { position: absolute; inset: 0; border-radius: 14%; background: var(--c0); backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center; font: 500 calc(var(--s) * .2)/1 var(--mono); color: #fff; letter-spacing: .02em; }
.cube .f0 { transform: translateZ(calc(var(--s) / 2)); }
.cube .f1 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube .f2 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); background: var(--c2); }
.cube .f3 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); background: var(--c2); }
.cube .f4 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: var(--c1); }
.cube .f5 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: var(--c3); }
.cube.has-img .f { background: var(--c2) var(--img) center / cover; }
.cube.has-img .f2, .cube.has-img .f3, .cube.has-img .f5 { filter: brightness(.72); }

.flow-sec { position: relative; height: 100vh; height: 100svh; min-height: 600px; margin: 0; overflow: hidden; background: #111113; color: #f1efe9;
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.flow-core { position: relative; z-index: 2; }
.flow-halo { position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(17,17,19,.97) 50%, rgba(17,17,19,0)); }
.flow-pick { all: unset; box-sizing: border-box; position: relative; width: 200px; height: 200px; border-radius: 50%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.flow-pick::before, .flow-pick::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.flow-pick::before { border: 1px solid rgba(241,239,233,.16); animation: flow-breathe 3.2s ease-in-out infinite; transition: border-color .3s, transform .5s var(--spring); }
.flow-pick:hover::before { border-color: rgba(241,239,233,.4); }
.flow-sec.is-over .flow-pick::before { border-color: var(--accent); animation: none; transform: scale(1.22); }
.flow-sec.is-landed .flow-pick::after { animation: flow-ripple .9s cubic-bezier(.215,.61,.355,1); }
.flow-pick:focus-visible::before { border-color: var(--accent); }
@keyframes flow-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes flow-ripple { from { box-shadow: 0 0 0 0 rgba(229,64,42,.55); } to { box-shadow: 0 0 0 70px rgba(229,64,42,0); } }
.flow-icon { width: 44px; height: 44px; transition: transform .5s var(--spring); }
.flow-icon .cf-symbol { color: #f1efe9; }
.flow-icon .sq { animation-play-state: paused; }
.flow-pick:hover .flow-icon .sq, .flow-sec.is-over .flow-icon .sq { animation-play-state: running; }
.flow-sec.is-over .flow-icon { transform: scale(1.15); }
.flow-title { font: 400 22px/1.1 var(--geist); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.flow-sec.is-landed .flow-title { animation: flow-pop .45s var(--spring); }
@keyframes flow-pop { 40% { transform: scale(1.12); } }
.flow-ready { position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; white-space: nowrap; }
.flow-ready[hidden] { display: none; }
.flow-count { position: absolute; top: calc(50% + 52px); left: 0; right: 0; font: 400 10.5px var(--mono); text-transform: uppercase; letter-spacing: .03em; color: rgba(241,239,233,.55); }
.flow-count:empty { display: none; }
.flow-ready .fs-cta { height: 40px; min-width: 160px; animation: flow-rise .5s cubic-bezier(.215,.61,.355,1); }
@keyframes flow-rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .flow-pick::before, .flow-pick::after, .flow-title, .flow-ready .fs-cta { animation: none !important; } }

/* Spiral behind the upload area inside a project */
.drop.has-spiral { position: relative; overflow: hidden; min-height: 300px; display: flex; align-items: center; justify-content: center; background: #0c0c0e; }
.drop.has-spiral .spiral { perspective: 900px; }
.drop-body { position: relative; z-index: 1; padding: 22px 30px; border-radius: 12px; background: rgba(17,17,19,.78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); transition: transform .5s var(--spring), border-color .3s; }
.drop.over .drop-body { transform: scale(1.04); border-color: var(--accent); }
@media (max-width: 767px) { .pv { aspect-ratio: 16 / 11; margin-bottom: 20px; } }

/* ===== Marketing header (adapted from Antimetal) =====
   data-theme="light" means light text (dark section underneath), like #site-header. */
:root { --am-spring: cubic-bezier(.2, .9, .3, 1.15); }
@supports (transition-timing-function: linear(0, 1)) {
  /* spring stiffness 400, damping 22, mass 1, sampled over its 0.69s settle time */
  :root { --am-spring: linear(0, 0.072, 0.229, 0.422, 0.616, 0.789, 0.927, 1.026, 1.088, 1.118, 1.124, 1.112, 1.092, 1.067, 1.043, 1.023, 1.006, 0.995, 0.988, 0.985, 0.985, 0.986, 0.989, 0.992, 0.995, 0.998, 1, 1.001, 1.002, 1.002, 1.002, 1.002, 1.001, 1.001, 1.001, 1, 1); }
}
.am { padding-top: env(safe-area-inset-top, 0px); --amc: #111113; --am-muted: rgba(17,17,19,.55); --am-faint: rgba(17,17,19,.1); --am-card: #f4f0e3; --am-bg: rgba(230,225,203,.78); --am-solid: #e6e1cb;
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; color: var(--amc); border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, color .3s; }
.am[data-theme=light] { --amc: #f1efe9; --am-muted: rgba(241,239,233,.55); --am-faint: rgba(255,255,255,.1); --am-card: #19191c; --am-bg: rgba(17,17,19,.72); --am-solid: #111113; }
.am.is-scrolled, .am.drop-open { background: var(--am-bg); border-color: var(--am-faint); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.am-bar { position: relative; z-index: 2; max-width: 1280px; height: 60px; margin: 0 auto; padding: 0 30px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.am .am-logo { justify-self: start; --hc: var(--amc); color: var(--amc); height: 20px; }
.am-links { position: relative; display: flex; align-items: center; gap: 12px; }
.am-link { display: flex; align-items: center; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--amc);
  font: 400 14px var(--geist); cursor: pointer; user-select: none; }
.am-link:focus-visible, .am-row:focus-visible, .am-cta:focus-visible, .am-login:focus-visible, .am-burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.am-dot { --x: 0px; position: absolute; left: 0; top: calc(100% + 4px); width: 4px; height: 4px; border-radius: 50%; background: var(--amc); pointer-events: none;
  translate: var(--x) 0; opacity: 0; transform: scale(0); transition: opacity .3s, transform .3s; }
.am-dot.on { opacity: 1; transform: scale(1); }
.am-right { justify-self: end; display: flex; align-items: center; gap: 20px; }
.am-login { color: var(--amc); font: 400 14px var(--geist); }
.am-login:hover { opacity: .65; }
button.am-login, button.am-m-login { background: none; border: 0; padding: 0; cursor: pointer; }
.am-studio { color: var(--am-muted); font: 400 14px var(--geist); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-cta { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--action); color: #fff; font: 500 13px var(--geist); transition: background .2s; }
.am-cta:hover { background: var(--action-hover); }
.am-burger { display: none; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; background: none; color: var(--amc); cursor: pointer; }
.am-burger .am-i-close, .am.m-open .am-burger .am-i-open { display: none; }
.am.m-open .am-burger .am-i-close { display: block; }

.am-drop { position: absolute; top: 100%; left: 50%; width: 648px; padding-top: 16px; transform: translateX(-50%); pointer-events: none; }
.am-drop.open { pointer-events: auto; }
.am-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; background: var(--am-card); color: var(--amc);
  box-shadow: 0 0 0 1px var(--am-faint), 0 24px 60px rgba(0,0,0,.22); transform-origin: 50% 0;
  opacity: 0; transform: translateY(-12px) scale(.99); filter: blur(2px);
  transition: opacity .69s var(--am-spring), transform .69s var(--am-spring), filter .69s var(--am-spring); }
.am-drop.open .am-card { opacity: 1; transform: none; filter: blur(0); }
.am-col { padding: 16px 20px 8px; min-width: 0; }
.am-col-right { border-left: 1px solid var(--am-faint); }
.am-head { margin: 0 0 16px; font: 400 12px var(--geist); color: var(--am-muted); }
.am-row { display: flex; gap: 16px; align-items: center; padding: 12px 0; color: var(--amc); white-space: nowrap; }
.am-ic { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--am-faint); }
.am-ic svg { width: 24px; height: 24px; overflow: visible; }
.am-ic .ic-acc { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--spring); }
.am-row:hover .am-ic .ic-acc { transform: translate(-1.5px, -1.5px) scale(1.12); }
.am-row:hover .am-ic svg g.ic-acc { transform: translateY(-2.5px); }
.am-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.am-txt b { display: flex; align-items: center; gap: 2px; font: 500 14px var(--geist); }
.am-txt small { font: 400 12.5px var(--geist); color: var(--am-muted); }
.am-arrow { color: var(--am-muted); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.am-row:hover .am-arrow, .am-row:focus-visible .am-arrow { opacity: 1; transform: none; }

/* Mini drop zone in the menu: a few squares orbit the symbol, faster on hover */
.am-try { position: relative; display: grid; place-items: center; height: 112px; margin-bottom: 4px; border-radius: 14px; overflow: hidden; background: #111113;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.am-try i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 3px; background: #e6e1cb;
  animation: am-orbit 9s linear infinite; }
.am-try i:nth-child(2) { width: 8px; height: 8px; background: #E5402A; animation-delay: -1.8s; }
.am-try i:nth-child(3) { background: #3b3b42; animation-delay: -3.6s; }
.am-try i:nth-child(4) { width: 7px; height: 7px; animation-delay: -5.4s; }
.am-try i:nth-child(5) { background: #E5402A; animation-delay: -7.2s; }
.am-col-right:hover .am-try i { animation-duration: 3s; }
@keyframes am-orbit {
  0% { transform: rotate(0deg) translateX(118px) rotate(0deg) scale(1); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: rotate(540deg) translateX(18px) rotate(-540deg) scale(.4); opacity: 0; }
}
.am-try-core { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #f1efe9; }
.am-try-core .cf-symbol { width: 22px; height: 22px; color: #f1efe9; }
.am-try-core em { font: 400 12px var(--geist); font-style: normal; color: rgba(241,239,233,.7); }

/* Mobile: links fold into a full-screen drawer */
.am-mobile { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 96px 24px calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--am-solid); color: var(--amc); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.am.m-open .am-mobile { opacity: 1; visibility: visible; transition: opacity .3s; }
.am-m-links { display: flex; flex-direction: column; gap: 6px; }
.am-m-links a { color: var(--amc); font: 400 32px/1.25 var(--geist); letter-spacing: -.02em; opacity: 0; transform: translateY(12px);
  transition: opacity .4s, transform .5s cubic-bezier(.215,.61,.355,1); }
.am.m-open .am-m-links a { opacity: 1; transform: none; }
.am.m-open .am-m-links a:nth-child(2) { transition-delay: .04s; } .am.m-open .am-m-links a:nth-child(3) { transition-delay: .08s; }
.am.m-open .am-m-links a:nth-child(4) { transition-delay: .12s; } .am.m-open .am-m-links a:nth-child(5) { transition-delay: .16s; }
.am-m-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.am-m-login { color: var(--amc); font: 400 16px var(--geist); }
html.am-lock, html.am-lock body { overflow: hidden; }
@media (max-width: 900px) {
  .am-bar { grid-template-columns: 1fr auto; padding: 0 20px; height: 56px; }
  .am-links, .am-login, .am-studio { display: none; }
  .am-burger { display: grid; }
  .am-right { gap: 12px; }
}
@media (max-width: 420px) { .am-right .am-cta { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .am-card, .am-dot, .am-m-links a, .am-mobile { transition: none !important; }
  .am-try i { animation: none; display: none; }
}


/* ===== Client delivery page ===== */
.delivery { background: #111113; }
.am-logo.am-studio { font: 500 17px var(--geist); letter-spacing: -.01em; white-space: nowrap; height: auto; }
.am-cta svg { margin: 0 6px 0 -2px; }
/* A portrait or square cover on a wide screen would be cropped to a slice (a face cut off at the chin),
   so gallery.js switches the hero to show the whole frame, centred over a blurred, dimmed copy of itself. */
.fs-backdrop { display: none; position: absolute; inset: -60px; z-index: 0; background: center / cover no-repeat;
  filter: blur(40px) brightness(.55) saturate(1.1); }
.dl-hero.is-fit .fs-backdrop { display: block; }
.dl-hero.is-fit .fs-media { object-fit: contain; }
.dl-hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 160px; z-index: 0; pointer-events: none; background: linear-gradient(rgba(0,0,0,.45), transparent); }

.dl-intro .lp-inner { display: flex; flex-direction: column; }
.dl-note { max-width: 1100px; text-wrap: balance; }
.dl-note.is-long { font-size: clamp(24px, 2.8vw, 40px); line-height: 1.15; }
.dl-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: clamp(48px, 6vw, 88px) 0 0; border-top: 1px solid var(--lp-line); }
.dl-facts div { padding: 18px 20px 0 0; }
.dl-facts dt { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--lp-muted); }
.dl-facts dd { margin: 10px 0 0; font: 400 clamp(22px, 2.2vw, 30px)/1.1 var(--geist); letter-spacing: -.015em; color: var(--lp-fg); }

.dl-intro { padding-bottom: clamp(56px, 6vw, 96px); }
.dl-gallery { padding-top: 0; padding-bottom: clamp(56px, 6vw, 96px); }
.dl-intro + .dl-files, .dl-gallery + .dl-files { padding-top: 0; }
.dl-gallery .lp-label, .dl-files .lp-label { margin-bottom: 16px; }
/* The board: a sand panel holding the link pill and an even grid of rounded tiles (same look as the "One link" scene on the home page). */
.dl-board { background: #dcd6bd; border-radius: 22px; padding: 14px; }
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dl-link { display: inline-flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; height: 40px; padding: 0 7px 0 18px; border: 0; border-radius: 999px;
  background: #ece7d3; color: #111113; font: 400 13px var(--mono); cursor: pointer; transition: background .2s, transform .3s var(--spring); }
.dl-link:hover { background: #f4f0e1; }
.dl-link:active { transform: scale(.97); }
.dl-link:focus-visible, .dl-filter button:focus-visible { outline: 2px solid #111113; outline-offset: 2px; }
.dl-link-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-link-tip { flex: none; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: #111113; color: #f1efe9;
  font: 400 10px var(--mono); text-transform: uppercase; letter-spacing: .04em; transition: background .2s; }
.dl-link.copied .dl-link-tip { background: #E5402A; }
.dl-filter { position: relative; flex: none; display: flex; padding: 4px; border-radius: 999px; background: #ece7d3; }
.dl-filter button { position: relative; z-index: 1; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: #615E55; font: 400 14px var(--geist); cursor: pointer; transition: color .2s; }
.dl-filter button:hover, .dl-filter button.on { color: #111113; }
.dl-filter em { font: 400 11px var(--mono); font-style: normal; opacity: .6; margin-left: 4px; }
.dl-filter-dot { --x: 0px; --w: 0px; position: absolute; left: 0; top: 4px; width: var(--w); height: 32px; border-radius: 999px; background: #f8f5ea; box-shadow: 0 1px 2px rgba(17,17,19,.08);
  translate: var(--x) 0; transition: translate .5s cubic-bezier(.34, 1.3, .64, 1), width .5s cubic-bezier(.34, 1.3, .64, 1); }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dl-tile { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #111113; outline: none; transition: box-shadow .2s; }
.dl-tile:focus-visible { box-shadow: 0 0 0 3px #dcd6bd, 0 0 0 5px #111113; }
.dl-tile.is-out, .dl-group.is-out { display: none; }
.dl-group + .dl-group { margin-top: 28px; }
.dl-folder { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #111113; font: 500 15px var(--geist); }
.dl-files .dl-folder { margin-top: 24px; }
.dl-folder em { font: 400 11px var(--mono); font-style: normal; opacity: .55; }
.dl-folder-dl { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: #ece7d3; color: #111113; font: 500 13px var(--geist); text-decoration: none; }
.dl-folder-dl:hover { background: #e2dcc4; }
.dl-grid.is-masonry { display: block; position: relative; }
.dl-grid.is-masonry .dl-tile { position: absolute; aspect-ratio: auto; }
.dl-tile img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.215,.61,.355,1), filter .3s; }
.dl-tile:hover img { transform: scale(1.04); }
.dl-tile.video img { filter: brightness(.72); }
.dl-tile .dl-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.dl-tile .dl-preview.on { opacity: 1; }
.dl-noimg { position: absolute; inset: 0; display: grid; place-items: center; background: #111113 url('/static/arch.jpg') 50% 52% / 240%; font: 500 13px var(--mono); color: #f1efe9; }
.dl-play { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%); border-style: solid; border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #f1efe9; filter: drop-shadow(0 2px 10px rgba(0,0,0,.35)); transition: opacity .3s; pointer-events: none; }
.dl-tile:hover .dl-play { opacity: 0; }
.dl-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); font: 400 11px var(--mono); color: #f1efe9; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.dl-tile figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-tile:hover figcaption, .dl-tile:focus-within figcaption { opacity: 1; transform: none; }
.dl-down { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #f1efe9; color: #111113; transition: background .2s, color .2s; }
.dl-down:hover { background: var(--action); color: #fff; }
.dl-check { position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(17,17,19,.35); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .3s var(--spring), background .2s; }
.dl-check::after { content: ''; position: absolute; left: 9px; top: 6px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--spring); }
.dl-tile:hover .dl-check, .dl-tile:focus-within .dl-check, .is-picking .dl-check { opacity: 1; transform: none; }
.dl-tile.is-picked .dl-check { background: #E5402A; box-shadow: none; }
.dl-tile.is-picked .dl-check::after { transform: rotate(45deg) scale(1); }
.dl-tile.is-picked { box-shadow: 0 0 0 3px #dcd6bd, 0 0 0 5px #E5402A; }
.is-picking .dl-tile { cursor: pointer; }
@media (max-width: 1023px) { .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.dl-selbar { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(23,23,26,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.4); color: #f1efe9;
  transform: translate(-50%, calc(100% + 40px)); transition: transform .6s var(--am-spring); }
.dl-selbar.on { transform: translate(-50%, 0); }
.dl-selcount { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.dl-selclear { border: 0; background: none; color: rgba(241,239,233,.6); font: 400 13px var(--geist); cursor: pointer; padding: 0 4px; }
.dl-selclear:hover { color: #f1efe9; }
.dl-selbar .fs-cta { border-radius: 999px; height: 36px; }

.dl-list { list-style: none; margin: 0; padding: 4px 20px; border-radius: 22px; background: #dcd6bd; }
.dl-file { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(17,17,19,.08); }
.dl-file:last-child { border-bottom: 0; }
.dl-ext { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: #ece7d3; font: 500 11px var(--mono); color: #111113; letter-spacing: .03em; }
.dl-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-meta b { font: 400 17px var(--geist); color: var(--lp-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-meta small { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--lp-muted); }
.dl-player { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dl-pp { position: relative; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #111113; cursor: pointer; transition: background .2s, transform .3s var(--spring); }
.dl-pp:hover { background: var(--action); }
.dl-pp:active { transform: scale(.92); }
.dl-pp i { position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.dl-player.on .dl-pp i { transform: translate(-50%, -50%); width: 10px; height: 12px; border: solid #fff; border-width: 0 3px; }
.dl-track { position: relative; flex: 1; height: 24px; cursor: pointer; }
.dl-track::before, .dl-track i { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; }
.dl-track::before { background: rgba(17,17,19,.12); }
.dl-track i { background: #E5402A; transform-origin: left; transform: scaleX(0); }
.dl-time { font: 400 11px var(--mono); color: var(--lp-muted); min-width: 34px; font-variant-numeric: tabular-nums; }
.dl-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: #ece7d3;
  color: #111113; font: 400 14px var(--geist); transition: background .2s, color .2s, box-shadow .2s; }
.dl-btn:hover { background: var(--action); color: #fff; }

.dl-end-sym { width: 40px; height: 40px; margin-bottom: 8px; }
.dl-end-sym .cf-symbol { color: #f1efe9; }
.dl-made { display: inline-flex; align-items: center; gap: 10px; color: rgba(241,239,233,.55); font: 400 12px var(--geist); }
.dl-made .foot-logo { height: 16px; }
.dl-made:hover { color: #f1efe9; }
.dl-empty .lp-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.dl-empty-sym { width: 40px; height: 40px; margin-bottom: 28px; }
.dl-empty-sym .cf-symbol { color: #f1efe9; }

#lightbox { position: fixed; inset: 0; z-index: 60; background: #0b0b0d; outline: none; display: grid; grid-template-columns: 88px minmax(0, 1fr) 88px; grid-template-rows: auto minmax(0, 1fr); color: #f1efe9; }
#lightbox[hidden] { display: none; }
.lb-top { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px 24px; }
.lb-count { font: 400 12px var(--mono); letter-spacing: .04em; color: rgba(241,239,233,.6); }
.lb-name { font: 400 13px var(--geist); color: rgba(241,239,233,.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.lb-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.lb-actions .fs-cta { border-radius: 999px; }
.lb-close { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); color: #f1efe9; font: 400 13px var(--geist); cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.16); }
.lb-stage { grid-column: 2; grid-row: 2; display: grid; place-items: center; min-height: 0; padding: 4px 0 28px; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); border-radius: 8px; opacity: 0; transform: scale(.985);
  transition: opacity .35s, transform .5s cubic-bezier(.215,.61,.355,1); }
.lb-stage .in { opacity: 1; transform: none; }
.lb-stage video { width: min(100%, 1400px); background: #000; }
.lb-prev, .lb-next { grid-row: 2; align-self: center; justify-self: center; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #f1efe9; cursor: pointer; transition: background .2s; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.18); }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }

@media (max-width: 767px) {
  .am-logo.am-studio { font-size: 16px; }
  .dl-facts { grid-template-columns: 1fr 1fr; }
  .dl-facts div { padding-bottom: 18px; }
  .dl-board { padding: 8px; border-radius: 16px; }
  .dl-head { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 8px; }
  .dl-link { height: 38px; padding-left: 14px; font-size: 12px; justify-content: space-between; }
  .dl-filter button { flex: 1; padding: 0 8px; }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dl-tile { border-radius: 10px; }
  .dl-tile.is-picked { box-shadow: 0 0 0 2px #dcd6bd, 0 0 0 4px #E5402A; }
  .dl-tile figcaption { display: none; }
  .dl-check { width: 24px; height: 24px; }
  .dl-check::after { left: 8px; top: 5px; }
  .dl-list { padding: 2px 14px; border-radius: 16px; }
  .dl-tile figcaption { opacity: 1; transform: none; padding: 20px 8px 8px; }
  .dl-tile figcaption span { display: none; }
  .dl-tile figcaption { justify-content: flex-end; background: none; }
  .dl-down { width: 30px; height: 30px; }
  .dl-check { opacity: 1; transform: none; top: 8px; left: 8px; }
  .dl-play { border-width: 9px 0 9px 15px; }
  .dl-file { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; }
  .dl-ext { width: 44px; height: 44px; border-radius: 10px; }
  .dl-player, .dl-spacer { grid-column: 1 / -1; grid-row: 2; }
  .dl-spacer { display: none; }
  .dl-btn span { display: none; } .dl-btn { width: 38px; padding: 0; justify-content: center; }
  #lightbox { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lb-top { grid-template-columns: auto 1fr; padding: 12px 14px; }
  .lb-name { display: none; }
  .lb-prev, .lb-next { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
  .lb-prev { left: calc(50% - 54px); } .lb-next { left: calc(50% + 10px); }
  .lb-stage { padding-bottom: 80px; }
  .lb-stage img, .lb-stage video { max-height: calc(100dvh - 160px); border-radius: 4px; }
  .dl-selbar { left: 12px; right: 12px; transform: translateY(calc(100% + 40px)); padding-left: 16px; }
  .dl-selbar.on { transform: none; }
  .dl-selbar .fs-cta { margin-left: auto; padding: 0 16px; }
}
@media (max-width: 420px) { .delivery .am-right .am-cta { display: inline-flex; padding: 0 10px; } .delivery .am-cta span { display: none; } .delivery .am-cta svg { margin: 0; } }
.lb-dl[hidden] { display: none; }
.dl-gallery, .dl-files { scroll-margin-top: 104px; }

/* ===== Storage plans ===== */
.meter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 28px; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.meter-top b { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter-bar { height: 6px; margin-top: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: inherit; background: var(--text); transition: width .6s var(--out, ease); }
.meter.near .meter-bar i { background: #e8b04a; }
.meter.over .meter-bar i { background: var(--danger); }
.meter.over { border-color: rgba(255,122,107,.35); }
.meter-note { margin: 10px 0 0; color: var(--muted); }
.meter.over .meter-note { color: var(--danger); }
.q-error a, .meter-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.pricing-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.pricing-head .lede { margin: 10px auto 0; font-size: 17px; }
.notice { background: rgba(123,211,137,.08); color: var(--ok); padding: 10px 14px; border-radius: 10px; margin: 0 0 16px; }
.pricing .meter { max-width: 760px; margin: 0 auto 28px; }
.pricing > .error { max-width: 760px; margin: 0 auto 16px; }
.pricing > .notice { max-width: 760px; margin-left: auto; margin-right: auto; }

.iv-toggle { display: flex; width: max-content; margin: 0 auto 24px; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.iv-toggle label { position: relative; margin: 0; padding: 7px 16px; border-radius: 999px; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; display: flex; align-items: center; gap: 8px; }
.iv-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.iv-toggle label:has(input:checked) { background: var(--surface-2); color: var(--text); }
.iv-toggle label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.iv-toggle span { font-size: 12px; color: var(--ok); }
.pricing:not(:has(#iv-year:checked)) .iv-year, .pricing:has(#iv-year:checked) .iv-month { display: none; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.plan.featured { border-color: rgba(229,64,42,.45); }
.plan.current { border-color: var(--muted); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-top h2 { margin: 0; font-size: 24px; }
.plan-top .tag { margin: 0; color: var(--text); }
.plan-line { margin: 4px 0 22px; min-height: 2.8em; }
.plan-space { margin: 0; font-size: 15px; color: var(--muted); }
.plan-space b { display: block; font: 500 34px/1.1 var(--serif); color: var(--text); letter-spacing: -.02em; }
.plan-price { margin: 14px 0 24px; color: var(--muted); font-size: 14px; }
.plan-price b { color: var(--text); font-size: 18px; font-weight: 600; }
.plan-price small { display: block; font-size: 12px; margin-top: 2px; }
.plan-action { margin-top: auto; }
.plan-action form { margin: 0; }
.plan-action .btn[disabled] { opacity: .6; cursor: default; }
.plan-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.plans-all { text-align: center; max-width: 760px; margin: 20px auto 0; }
.billing-manage { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px auto 0; }
.billing-manage form { margin: 0; }

.faq { max-width: 760px; margin: 64px auto 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 620px; }

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  .plan-line { min-height: 0; }
}

/* Connect AI */
.connect .key-fresh { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; border-color: var(--brand, #E5402A); }
.connect .key-form { display: flex; align-items: flex-end; gap: 12px; }
.connect .key-form label { flex: 1; margin: 0; }
.connect .key-form input { margin-bottom: 0; }
.connect .key-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.connect .key-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.connect .key-row p { margin: 2px 0 0; }
.connect .mono { font-family: ui-monospace, monospace; }
.connect .how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.connect .how-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.connect .how-card h3 { margin-top: 0; }
.connect .how-card ol { padding-left: 18px; margin: 0; line-height: 1.6; }
.connect pre { white-space: pre-wrap; word-break: break-all; font-size: 12px; background: rgba(0,0,0,.05); padding: 10px 12px; border-radius: 8px; margin: 0; }
@media (max-width: 860px) { .connect .how-grid { grid-template-columns: 1fr; } .connect .key-row { flex-wrap: wrap; } }

/* ---------- project page: folders, picking several files, moving and deleting ---------- */
#files { scroll-margin-top: 90px; }
.files-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.files-head h2 { margin: 0; }
.files-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.new-folder { display: flex; gap: 8px; align-items: center; }
.new-folder input { width: 190px; padding: 7px 10px; font-size: 13px; }
.new-folder .folder-ico { opacity: 1; }
.files-notice { margin: 4px 0 8px; }
.file-group { border-radius: 14px; transition: background .15s, box-shadow .15s; }
.file-group .folder-head { margin: 24px 0 12px; }
.file-group:first-of-type .folder-head { margin-top: 8px; }
.folder-head .pick-group { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.folder-head .folder-actions { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.folder-empty { border: 1.5px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.file-group.drop-on { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: 0 0 0 2px var(--accent); }
.asset { position: relative; transition: border-color .15s, opacity .15s, transform .15s; }
.asset[draggable="true"] { cursor: grab; }
.asset.dragging { opacity: .45; }
.asset.picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.asset .pick { position: absolute; margin: 0; top: 8px; left: 8px; z-index: 2; width: 26px; height: 26px; display: grid; place-items: center;
  background: rgba(0,0,0,.55); border-radius: 7px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.asset .pick input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.asset:hover .pick, .asset .pick:focus-within, .asset.picked .pick, .picking .asset .pick { opacity: 1; }
@media (hover: none) { .asset .pick { opacity: 1; } }
.asset.picked .badge.left { left: 40px; }
.bulk-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center; max-width: calc(100% - 32px); padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.bulk-bar[hidden] { display: none; }
.bulk-count { font: 500 14px var(--geist); white-space: nowrap; }
.bulk-move { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.bulk-move select { width: auto; max-width: 200px; margin: 0; padding: 6px 10px; font-size: 13px; }
.bulk-bar input[name="new_folder"] { width: 160px; padding: 6px 10px; font-size: 13px; }
@media (max-width: 760px) {
  .new-folder input { width: 150px; }
  .bulk-bar { left: 12px; right: 12px; bottom: 12px; transform: none; max-width: none; gap: 8px 10px; padding: 10px 12px; }
  .bulk-count { flex-basis: 100%; text-align: center; }
  .folder-head { flex-wrap: wrap; }
  .folder-head .folder-actions { margin-left: 0; flex-basis: 100%; padding-left: 30px; }
}
#files.picking { padding-bottom: 110px; }

/* Folding a folder shut on the project page */
.folder-head .fold { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 -4px 0 0; padding: 0; border: 0; border-radius: 7px;
  background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.folder-head .fold:hover { background: var(--surface-2); color: var(--text); }
.folder-head .fold svg { transition: transform .2s; }
.folder-head .fold-name { cursor: pointer; }
.file-group.collapsed .fold svg { transform: rotate(-90deg); }
.file-group.collapsed > .asset-grid, .file-group.collapsed > .folder-empty { display: none; }
.file-group.collapsed .folder-head { margin-bottom: 4px; }

/* A folder's own share link */
.folder-link { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 14px 30px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.folder-link .copy { display: flex; gap: 8px; flex: 1; min-width: 220px; }
.folder-link .copy input { flex: 1; margin: 0; padding: 6px 10px; font-size: 13px; }
.folder-link form { margin: 0; }
@media (max-width: 760px) { .folder-link { margin-left: 0; } }

/* Renaming and ordering folders */
.folder-rename { display: flex; align-items: center; gap: 8px; margin: 0; }
.folder-rename[hidden] { display: none; }
.folder-rename input[name="name"] { width: 200px; margin: 0; padding: 5px 10px; font-size: 14px; }
.folder-order { display: inline-flex; gap: 4px; }
.folder-order form { margin: 0; }
.order-btn { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 7px;
  background: none; color: var(--text); font-size: 14px; line-height: 1; cursor: pointer; }
.order-btn:hover:not(:disabled) { border-color: var(--muted); }
.order-btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 760px) { .folder-rename input[name="name"] { width: 140px; } }
.folder-head:has(.folder-rename:not([hidden])) .fold-name + .muted { display: none; }

/* Client page: folding folders shut */
.dl-fold { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 -2px 0 -6px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: #111113; cursor: pointer; transition: background .15s; }
@media (hover: hover) { .dl-fold:hover { background: #ece7d3; } }
.dl-fold svg { transition: transform .2s; }
.dl-fold-name { cursor: pointer; }
.collapsed > .dl-folder .dl-fold svg { transform: rotate(-90deg); }
.dl-group.collapsed > .dl-grid, .dl-fgroup.collapsed > .dl-list { display: none; }
.dl-group.collapsed > .dl-folder { margin-bottom: 0; }

/* ===== Branding: creator logos on deliveries ===== */
.brand-mark { display: inline-flex; align-items: center; }
.brand-mark img { display: block; height: 28px; width: auto; max-width: 180px; object-fit: contain; }
.am .am-brand { height: auto; display: flex; align-items: center; }
.am .brand-mark .bm-light, .am[data-theme=light] .brand-mark .bm-dark { display: none; }
.am[data-theme=light] .brand-mark .bm-light { display: block; }
.brand-mark.on-dark .bm-dark { display: none; }
.unlock-brand { margin: 0 0 18px; }
.unlock-brand .brand-mark img { height: 36px; max-width: 220px; }
@media (max-width: 767px) { .brand-mark img { height: 24px; max-width: 140px; } }

.profile .settings + .settings { margin-top: 24px; }
.profile .settings > .error { margin: 0 0 12px; }
.profile .email-pass[hidden] { display: none; }
.profile-pass { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.profile-pass .span2, .profile-pass .form-end { grid-column: 1 / -1; }
@media (max-width: 640px) { .profile-pass { grid-template-columns: 1fr; } }
a.am-studio:hover { color: var(--amc); }
/* Signed-in header: the studio name opens an account dropdown, styled like the home page menu card */
.am-acct { position: relative; }
.am-acct-btn { display: flex; align-items: center; gap: 6px; height: 28px; max-width: 200px; padding: 0; border: 0; background: none; color: var(--amc);
  font: 400 14px var(--geist); cursor: pointer; }
.am-acct-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-acct-btn svg { flex: none; opacity: .6; transition: transform .45s var(--am-spring); }
.am-acct.open .am-acct-btn svg { transform: rotate(180deg); }
.am-acct-btn:hover span { opacity: .65; }
.am-acct-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.am-acct-drop { position: absolute; top: 100%; right: -14px; width: 252px; padding-top: 14px; pointer-events: none; }
.am-acct.open .am-acct-drop { pointer-events: auto; }
.am-acct-card { padding: 6px; border-radius: 18px; background: var(--am-card); color: var(--amc); box-shadow: 0 0 0 1px var(--am-faint), 0 24px 60px rgba(0,0,0,.22);
  transform-origin: 100% 0; opacity: 0; transform: translateY(-10px) scale(.98); filter: blur(2px); visibility: hidden;
  transition: opacity .69s var(--am-spring), transform .69s var(--am-spring), filter .69s var(--am-spring), visibility 0s .3s; }
.am-acct.open .am-acct-card { opacity: 1; transform: none; filter: blur(0); visibility: visible; transition-delay: 0s; }
.am-acct-who { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--am-faint); color: var(--amc); }
.am-acct-who b { font: 500 14px var(--geist); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-acct-who small { font: 400 12.5px var(--geist); color: var(--am-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-acct-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; background: none; color: var(--amc);
  font: 400 14px var(--geist); text-align: left; cursor: pointer; transition: background .15s; }
.am-acct-item:hover, .am-acct-item:focus-visible, .am-acct-who:hover, .am-acct-who:focus-visible { background: var(--am-faint); outline: none; }
.am-acct-who:hover { border-radius: 12px; }
.am-acct-item[aria-current] { background: var(--am-faint); }
.am-acct-item svg { flex: none; width: 18px; height: 18px; overflow: visible; }
.am-acct-item .ic-acc { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--spring); }
.am-acct-item:hover .ic-acc { transform: translate(-1px, -1px) scale(1.12); }
.am-acct-sep { display: block; height: 1px; margin: 4px 0; background: var(--am-faint); }
@media (max-width: 900px) { .am-acct { display: none; } }
@media (prefers-reduced-motion: reduce) { .am-acct-card, .am-acct-btn svg { transition: none !important; } }
.am-m-who { display: flex; align-items: center; gap: 20px; min-width: 0; }
.am-m-who a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-head { display: flex; align-items: center; gap: 12px; }
.brand-head .tag { margin: 0; }
.logo-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.logo-slot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.logo-preview { height: 120px; display: grid; place-items: center; padding: 20px; }
.logo-dark .logo-preview { background: #f4f1ea; color: #111113; }
.logo-light .logo-preview { background: #111113; color: #f1efe9; }
.logo-preview img { max-height: 56px; max-width: 80%; object-fit: contain; }
.logo-preview.empty span { font: 500 17px var(--geist); opacity: .45; }
.logo-info { padding: 16px; }
.logo-info h3 { margin: 0 0 4px; font-size: 15px; }
.logo-info .row { display: flex; flex-wrap: wrap; margin-top: 12px; gap: 8px; }
.logo-info form { margin: 0; }
.file-btn { cursor: pointer; }
.plan-brand { margin: -4px 0 12px; }
@media (max-width: 640px) { .logo-slots { grid-template-columns: 1fr; } }

/* Sorting the files in a folder: the Sort menu, and the arrows under each file in a custom order */
.folder-sort { margin: 0 0 0 auto; }
.folder-sort ~ .folder-actions { margin-left: 16px; }
.folder-sort label { display: flex; align-items: center; gap: 8px; margin: 0; }
.folder-sort select { width: auto; margin: 0; padding: 5px 28px 5px 10px; font: 400 13px var(--geist); }
.files-sort { display: flex; margin: 4px 0 12px; }
.asset-actions .nudge { display: inline-flex; gap: 4px; }
.asset-actions .nudge form { margin: 0; }
.asset-actions .nudge .order-btn { width: 24px; height: 22px; font-size: 13px; }
.asset-grid[data-custom] .asset[draggable="true"] { cursor: grab; }
@media (max-width: 760px) {
  .folder-sort ~ .folder-actions { margin-left: 0; }
  .folder-sort select { max-width: 140px; }
  .folder-sort .muted { display: none; }
}
.asset-actions:has(.nudge) { gap: 10px; align-items: center; flex-wrap: wrap; }
.asset-actions:has(.nudge) .link { white-space: nowrap; }

/* Files section: folder cards, one ⋯ menu per folder (a sheet on phones), and a floating select bar */
#files .files-head { margin-bottom: 14px; }
#files .files-tools { gap: 8px; flex-wrap: nowrap; }
.tool-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--text); font: 500 13px var(--geist); cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.tool-btn:hover { border-color: var(--muted); }
.tool-btn[aria-expanded="true"] { background: var(--surface-2); }
.tool-btn:focus-visible, .menu-btn:focus-visible, .menu-item:focus-visible, #files .chip:focus-visible, .bulk-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ui-ico { flex: none; display: block; }
#files .new-folder { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
#files .new-folder[hidden] { display: none; }
#files .new-folder input { flex: 1; width: auto; min-width: 0; margin: 0; padding: 9px 12px; font-size: 14px; }

#files .file-group.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
#files .file-group.fcard.loose-empty { display: none; }
#files.dragging-files .file-group.fcard.loose-empty { display: block; }
#files .file-group.fcard .folder-head { position: relative; margin: 0; padding: 8px 8px 8px 10px; min-height: 54px; gap: 10px; flex-wrap: nowrap; }
#files .file-group.fcard .folder-head .fold { width: 32px; height: 32px; margin: 0 -4px 0 0; border-radius: 9px; }
#files .file-group.fcard .fold-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#files .file-group.fcard .fold-count { flex: none; }
#files .folder-head .folder-rename { flex: 1; min-width: 0; }
#files .folder-head .folder-rename input[name="name"] { flex: 1; width: auto; min-width: 0; }
.menu-btn { margin-left: auto; flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.menu-btn[hidden] { display: none; }

#files .folder-meta { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 12px 52px; }
#files .chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--surface-2);
  color: var(--muted); font: 400 12px var(--geist); white-space: nowrap; }
#files button.chip { cursor: pointer; } #files button.chip:hover { color: var(--text); }
#files .chip .ui-ico { width: 13px; height: 13px; }
#files .chip.on { color: var(--ok); } #files .chip.on i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#files .file-group.fcard .folder-link { margin: 0 14px 12px; }
#files .file-group.fcard > .asset-grid, #files .file-group.fcard > .folder-empty { margin: 0 12px 12px; }
#files .file-group.fcard > .folder-empty { padding: 18px; font-size: 13px; }
#files .file-group.collapsed > .folder-meta, #files .file-group.collapsed > .folder-link { display: none; }
#files .file-group.fcard.drop-on { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: var(--accent); box-shadow: none; }

/* The ⋯ menu: a dropdown on a computer */
.folder-menu { position: absolute; z-index: 45; top: calc(100% - 4px); right: 8px; width: 300px; padding: 6px; background: var(--surface-2);
  border: 1px solid #34343b; border-radius: 16px; box-shadow: 0 18px 48px rgba(0,0,0,.5); }
.folder-menu[hidden] { display: none; }
.folder-menu form { margin: 0; }
.menu-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font: 400 13px var(--geist); }
.menu-head b { font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-head .muted { flex: none; }
.menu-head .folder-order { margin-left: auto; display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.menu-head .folder-order form + form { border-left: 1px solid var(--line); }
.menu-head .order-btn { width: 34px; height: 32px; border: 0; border-radius: 0; background: transparent; color: var(--text); }
.menu-head .order-btn:hover:not(:disabled) { background: var(--surface); }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text); font: 400 14px var(--geist); text-align: left; cursor: pointer; }
button.menu-item:hover { background: var(--surface); }
.menu-item > span { display: grid; flex: 1; min-width: 0; }
.menu-item small { color: var(--muted); font-size: 12px; }
.menu-item.danger { color: var(--danger); } .menu-item.danger small { color: inherit; opacity: .75; }
.menu-sort { cursor: default; }
.menu-sort .folder-sort { margin: 0; }
.menu-sort .folder-sort .muted { display: none; }
.menu-sort .folder-sort select { max-width: 150px; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.menu-scrim { display: none; }

/* The floating select bar */
#files .bulk-bar { gap: 8px; padding: 8px 8px 8px 16px; border-radius: 999px; border-color: #34343b; flex-wrap: nowrap; }
#files .bulk-count { padding-right: 4px; }
#files .bulk-move { position: relative; gap: 0; color: var(--text); }
#files .bulk-move .ui-ico { position: absolute; left: 12px; pointer-events: none; }
#files .bulk-move select { height: 38px; padding: 0 30px 0 36px; border-radius: 999px; font: 500 13px var(--geist); color: var(--text); background-color: var(--surface); }
#files .bulk-bar input[name="new_folder"] { margin: 0; height: 38px; border-radius: 999px; padding: 0 14px; }
#files .bulk-bar .btn.small { height: 38px; }
.bulk-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer; }
.bulk-icon:hover { border-color: var(--muted); }
.bulk-icon.danger { color: var(--danger); }

@media (max-width: 760px) {
  #files .tool-btn:not(.strong) { width: 38px; height: 38px; padding: 0; justify-content: center; }
  #files .tool-btn:not(.strong) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #files .tool-btn { height: 38px; }
  #files .file-group.fcard .folder-head { flex-wrap: nowrap; }
  #files .folder-meta { padding-left: 14px; }
  #files .file-group.fcard > .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 10px 10px; }
  #files .file-group.fcard .folder-link { margin: 0 10px 12px; }
  /* On a phone the ⋯ menu is a sheet from the bottom of the screen */
  .menu-scrim { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); }
  .menu-scrim[hidden] { display: none; }
  .folder-menu { position: fixed; z-index: 91; top: auto; left: 0; right: 0; bottom: 0; width: auto; padding: 8px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0; border-width: 1px 0 0; background: var(--surface); }
  .folder-menu::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 4px; background: #3a3a42; margin: 2px auto 10px; }
  .menu-head { padding: 0 4px 12px; }
  .menu-head b { font: 500 18px var(--serif, Georgia, serif); }
  .menu-item { min-height: 50px; padding: 8px 4px; }
  .menu-sort .folder-sort select { max-width: 160px; }
  #files .bulk-bar { left: 10px; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 8px 8px 8px 14px; gap: 6px; border-radius: 20px; }
  #files .bulk-count { flex: 1; flex-basis: auto; text-align: left; font-size: 13px; }
  #files .bulk-move select { max-width: 150px; }
  #files .bulk-bar:has(input[name="new_folder"]:not([hidden])) { flex-wrap: wrap; }
  #files .bulk-bar input[name="new_folder"]:not([hidden]) { order: 5; flex: 1 1 60%; width: auto; }
  #files .bulk-bar [data-move-go] { order: 6; }
}
html.sheet-open, html.sheet-open body { overflow: hidden; }
#files .bulk-bar [hidden] { display: none; }

/* Folder tabs: "All" or one folder at a time */
.folder-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; padding: 2px; scroll-behavior: smooth; }
.folder-tabs::-webkit-scrollbar { display: none; }
.ftab { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--text); font: 500 13px var(--geist); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.ftab span { color: var(--muted); font-weight: 400; }
.ftab:hover { border-color: var(--muted); }
.ftab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: #111113; }
.ftab[aria-selected="true"] span { color: #55534d; }
.ftab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ftab.loose-empty { display: none; }
#files.dragging-files .ftab.loose-empty { display: inline-flex; border-style: dashed; }
.ftab.drop-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); }
#files .file-group.tab-off { display: none !important; }
/* A single folder: its header becomes a plain bar above its files */
#files.tab-folder .file-group.fcard { background: none; border: 0; border-radius: 0; }
#files.tab-folder .file-group.fcard .folder-head { padding: 0 0 10px; min-height: 0; }
#files.tab-folder .file-group.fcard .fold { display: none; }
#files.tab-folder .file-group.fcard .fold-name { font: 500 22px/1.2 var(--serif); }
#files.tab-folder .folder-meta { padding: 0 0 14px; }
#files.tab-folder .file-group.fcard > .asset-grid, #files.tab-folder .file-group.fcard > .folder-empty, #files.tab-folder .file-group.fcard .folder-link { margin-left: 0; margin-right: 0; }
#files.tab-folder .file-group.collapsed > .asset-grid { display: grid; }
#files.tab-folder .file-group.collapsed > .folder-empty, #files.tab-folder .file-group.collapsed > .folder-meta { display: flex; }
#files.tab-folder .file-group.collapsed > .folder-empty { display: block; }
#files.tab-folder .file-group.collapsed > .folder-link { display: flex; }
#files.tab-folder [data-fold-all] { display: none; }
#files.tab-folder .file-group.fcard.drop-on { background: none; box-shadow: none; }
@media (max-width: 760px) {
  .folder-tabs { margin: 0 -16px 14px; padding: 2px 16px; }
  #files.tab-folder .file-group.fcard > .asset-grid { margin: 0; }
}

/* Files view: large thumbnails (default), small thumbnails, or a list with full names */
.files-bar { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 14px; }
.files-bar:empty { display: none; }
.files-bar .folder-sort { margin: 0; }
.view-switch { display: flex; align-items: center; gap: 8px; }
.view-btns { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.view-btn { width: 34px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.view-btn:hover { color: var(--text); }
.view-btn[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.view-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.asset .a-cols, .asset .a-ext, .asset .nudge .v { display: none; }
#files:not([data-view="list"]) .a-name wbr { display: none; }

/* Small thumbnails: more files on screen */
#files[data-view="small"] .asset-grid, #files[data-view="small"] .file-group.fcard > .asset-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
#files[data-view="small"] .asset { border-radius: 10px; }
#files[data-view="small"] .asset-meta { padding: 7px 8px 3px; }
#files[data-view="small"] .asset-meta .a-name { font-size: 12px; }
#files[data-view="small"] .asset-meta .a-sub { font-size: 11px; }
#files[data-view="small"] .asset-actions { gap: 6px 7px; padding: 0 8px 8px; flex-wrap: wrap; align-items: center; }
#files[data-view="small"] .asset-actions .link { font-size: 12px; }
#files[data-view="small"] .asset-actions .nudge { gap: 3px; }
#files[data-view="small"] .asset-actions .nudge .order-btn { width: 20px; height: 20px; font-size: 12px; }
#files[data-view="small"] .badge { right: 6px; bottom: 6px; font-size: 10px; padding: 1px 6px; }
#files[data-view="small"] .badge > span { display: none; }
#files[data-view="small"] .badge.left { left: 6px; right: auto; }
#files[data-view="small"] .asset.picked .badge.left { left: 38px; }
#files[data-view="small"] .file-icon { font-size: 12px; }

/* List: one file per row, the whole name, then kind, size, downloads and date */
#files[data-view="list"] .asset-grid, #files[data-view="list"] .file-group.fcard > .asset-grid { grid-template-columns: minmax(0, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
#files[data-view="list"] .asset { display: grid; grid-template-columns: 26px 64px minmax(0, 1fr) 96px 76px 104px 96px 196px; align-items: center; gap: 14px;
  padding: 8px 14px 8px 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; overflow: visible; }
#files[data-view="list"] .asset:first-child { border-top: 0; }
#files[data-view="list"] .asset:hover { background: var(--surface-2); }
#files[data-view="list"] .asset.picked { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: none; }
#files[data-view="list"] .asset .pick { position: static; opacity: 1; background: none; }
#files[data-view="list"] .thumb { width: 64px; border-radius: 6px; overflow: hidden; }
#files[data-view="list"] .file-icon { font-size: 10px; padding: 4px; letter-spacing: .04em; }
#files[data-view="list"] .badge { right: 3px; bottom: 3px; font-size: 9px; padding: 0 5px; }
#files[data-view="list"] .badge > span { display: none; }
#files[data-view="list"] .badge.left, #files[data-view="list"] .asset.picked .badge.left { left: 3px; right: auto; bottom: auto; top: 3px; }
#files[data-view="list"] .asset-meta { padding: 0; min-width: 0; }
#files[data-view="list"] .asset-meta .a-name { white-space: normal; overflow: visible; overflow-wrap: break-word; font-size: 14px; line-height: 1.35; }
#files[data-view="list"] .asset-meta .a-sub { display: none; }
#files[data-view="list"] .a-cols { display: contents; }
#files[data-view="list"] .a-cols > span { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#files[data-view="list"] .asset-actions { padding: 0; gap: 12px; flex-wrap: nowrap; justify-content: flex-end; }
#files[data-view="list"] .asset-actions .nudge .h { display: none; }
#files[data-view="list"] .asset-actions .nudge .v { display: inline; }
@media (max-width: 1100px) {
  #files[data-view="list"] .asset { grid-template-columns: 26px 56px minmax(0, 1fr) 90px 72px 100px 190px; }
  #files[data-view="list"] .a-cols .a-date { display: none; }
  #files[data-view="list"] .thumb { width: 56px; }
}
@media (max-width: 760px) {
  .files-bar { justify-content: space-between; }
  .files-bar .view-switch:only-child { margin-left: auto; }
  .view-switch > .muted { display: none; }
  .view-btn { width: 36px; height: 30px; }
  #files[data-view="small"] .asset-grid, #files[data-view="small"] .file-group.fcard > .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #files[data-view="small"] .asset-meta { padding: 6px 7px 2px; }
  #files[data-view="small"] .asset-meta .a-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #files[data-view="small"] .asset-actions { padding: 0 7px 7px; gap: 4px 8px; }
  #files[data-view="list"] .asset { grid-template-columns: 22px 56px minmax(0, 1fr); grid-template-areas: "pick thumb meta" "pick thumb actions"; gap: 4px 12px; padding: 10px 12px 10px 8px; }
  #files[data-view="list"] .asset .pick { grid-area: pick; width: 22px; }
  #files[data-view="list"] .thumb { grid-area: thumb; width: 56px; align-self: start; }
  #files[data-view="list"] .asset-meta { grid-area: meta; }
  #files[data-view="list"] .asset-meta .a-sub { display: block; margin-top: 2px; }
  #files[data-view="list"] .asset-meta .a-ext { display: inline; }
  #files[data-view="list"] .a-cols { display: none; }
  #files[data-view="list"] .asset-actions { grid-area: actions; justify-content: flex-start; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; }
}

/* Vault: connect form and the "Add from Vault" picker */
.connect .vault-steps { margin: 8px 0 16px; padding-left: 20px; }
.connect .vault-form label:nth-child(2) { flex: 1.3; }
@media (max-width: 860px) { .connect .vault-form { flex-direction: column; align-items: stretch; } }
.vault-open-row { margin: 10px 0 0; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
dialog.vault-picker { width: min(720px, calc(100% - 32px)); max-height: min(86vh, 760px); padding: 0; display: none; flex-direction: column; overflow: hidden; }
dialog.vault-picker[open] { display: flex; }
.vault-picker .vp-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 8px; }
.vault-picker .vp-head h3 { margin: 0; }
.vault-picker .vp-path { padding: 0 22px 10px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--muted); border-bottom: 1px solid var(--line); }
.vault-picker .vp-path button { background: none; border: 0; color: var(--accent); padding: 2px 0; cursor: pointer; font: inherit; }
.vault-picker .vp-path span:last-child { color: var(--text); }
.vault-picker .vp-list { overflow: auto; flex: 1; min-height: 200px; padding: 8px 12px; }
.vault-picker .vp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; background: none; border: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.vault-picker .vp-row:hover { background: var(--surface-2); }
.vault-picker .vp-row.picked { background: var(--surface-2); outline: 1px solid var(--accent); }
.vault-picker .vp-row input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.vault-picker .vp-thumb { width: 56px; height: 36px; border-radius: 6px; background: var(--surface-2); flex: none; object-fit: cover; display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.vault-picker .vp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault-picker .vp-size { color: var(--muted); font-size: 13px; flex: none; }
.vault-picker .vp-empty { color: var(--muted); padding: 24px 10px; text-align: center; }
.vault-picker .vp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.vault-picker .vp-folder { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.vault-picker .vp-folder select { margin: 0; width: auto; max-width: 260px; }
.vault-picker .vp-progress[hidden] { display: none; }
.vault-picker .vp-progress { padding: 0 22px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; max-height: 40vh; overflow: auto; }
.vault-picker .vp-progress .vp-item { display: flex; justify-content: space-between; gap: 12px; }
.vault-picker .vp-progress .vp-item .vp-name { flex: 1; }
.vault-picker .vp-progress .st-done { color: #4fbf7f; } .vault-picker .vp-progress .st-failed { color: var(--accent); }
.vault-picker .vp-progress .vp-err { color: var(--accent); font-size: 13px; margin: -2px 0 4px; }
@media (max-width: 600px) { .vault-picker .vp-thumb { width: 44px; height: 30px; } .vault-picker .vp-foot { flex-direction: column; align-items: stretch; } }

/* "New" tag and the dashboard card that tells creators about Add from Vault. */
.new-pill { display: inline-block; font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent); padding: 4px 7px 3px; border-radius: 999px; vertical-align: 1px; }
.vault-promo { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; margin-bottom: 28px;
  padding: 22px 56px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, rgba(229,64,42,.13), transparent 55%), var(--surface); }
.vault-promo .vp-mark { width: 56px; height: 56px; padding: 13px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.vault-promo .vp-mark .cf-symbol { color: var(--text); }
.vault-promo .vp-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vault-promo h2 { margin: 0 0 6px; font: 500 21px/1.25 var(--sans); letter-spacing: -.01em; }
.vault-promo p.muted { margin: 0; max-width: 620px; }
.vault-promo p.muted b { color: var(--text); font-weight: 500; }
.vault-promo .vp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.vault-promo .vp-close { position: absolute; top: 12px; right: 12px; margin: 0; }
.vault-promo .vp-x { width: 32px; height: 32px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted);
  font: 400 22px/1 var(--sans); cursor: pointer; }
.vault-promo .vp-x:hover { color: var(--text); border-color: var(--line); }
.vault-open-row .new-pill { margin-right: 2px; }
@media (max-width: 600px) {
  .vault-promo { grid-template-columns: 1fr; gap: 14px; padding: 18px 48px 18px 18px; }
  .vault-promo .vp-mark { width: 44px; height: 44px; padding: 10px; border-radius: 13px; }
  .vault-promo h2 { font-size: 19px; }
  .vault-promo .vp-actions .btn { flex: 1 1 auto; }
}

/* Deliveries page as a profile: header photo, round profile photo, name, bio and the creator's numbers. */
.ph { margin-bottom: 36px; }
.ph-cover { position: relative; height: clamp(180px, 26vw, 320px); border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); }
.ph-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-cover::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(17,17,19,0) 45%, rgba(17,17,19,.55) 100%); }
.ph-cover.empty { background:
  radial-gradient(70% 120% at 85% 0%, rgba(229,64,42,.28), transparent 60%),
  radial-gradient(60% 90% at 0% 100%, rgba(241,239,233,.07), transparent 60%),
  repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 14px), var(--surface); }
.ph-cover-edit { position: absolute; top: 14px; right: 14px; z-index: 2; margin: 0; }
.photo-pick { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font: 500 13px var(--sans); color: #fff;
  background: rgba(17,17,19,.55); border: 1px solid rgba(255,255,255,.18); padding: 8px 14px; border-radius: 999px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, border-color .2s; }
.photo-pick:hover { background: rgba(17,17,19,.75); border-color: rgba(255,255,255,.35); }
.photo-form.busy .photo-pick { opacity: .6; pointer-events: none; }
.photo-form.busy .photo-pick span::after { content: '…'; }

.ph-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start; padding: 0 28px; margin-top: -64px; position: relative; z-index: 1; }
.ph-avatar { position: relative; width: 136px; height: 136px; border-radius: 50%; background: var(--surface-2); border: 5px solid var(--bg);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.ph-avatar > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ph-initials { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; font: 500 44px var(--serif); color: var(--text);
  background: radial-gradient(100% 100% at 30% 20%, #2b2b31, #19191c); }
.ph-avatar-edit { position: absolute; right: 2px; bottom: 4px; margin: 0; }
.ph-avatar-edit .photo-pick { width: 38px; height: 38px; padding: 0; justify-content: center; background: var(--action); border-color: var(--bg); border-width: 3px; }
.ph-avatar-edit .photo-pick:hover { background: var(--action-hover); }
.ph-avatar-edit .photo-pick span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ph-id { padding-top: 78px; min-width: 0; }
.ph-id h1 { margin: 0 0 4px; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.ph-bio { margin: 0; color: var(--text); opacity: .82; max-width: 560px; }
.ph-bio.muted { color: var(--muted); opacity: 1; }
.ph-actions { display: flex; gap: 10px; padding-top: 84px; }
.ph-stats { list-style: none; margin: 26px 0 0; padding: 18px 28px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ph-stats li { display: flex; flex-direction: column; gap: 2px; padding: 0 18px; border-left: 1px solid var(--line); }
.ph-stats li:first-child { border-left: 0; padding-left: 0; }
.ph-stats b { font: 500 24px/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.ph-stats span { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ph-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.ph-section-head h2 { margin: 0; font-size: 26px; }
@media (max-width: 760px) {
  .ph-cover { border-radius: 16px; height: 170px; }
  .ph-cover-edit { top: 10px; right: 10px; }
  .ph-cover-edit .photo-pick { padding: 7px 11px; font-size: 12px; }
  .ph-bar { grid-template-columns: 1fr; gap: 12px; padding: 0 4px; margin-top: -56px; align-items: start; }
  .ph-avatar { width: 108px; height: 108px; border-width: 4px; }
  .ph-initials { font-size: 34px; }
  .ph-id { padding-top: 0; }
  .ph-actions { padding: 0; }
  .ph-actions .btn { flex: 1; }
  .ph-stats { grid-template-columns: repeat(2, 1fr); padding: 6px 0; margin-top: 20px; }
  .ph-stats li { padding: 12px 18px; border-left: 0; }
  .ph-stats li:first-child { padding-left: 18px; }
  .ph-stats li:nth-child(even) { border-left: 1px solid var(--line); }
  .ph-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Profile page: the photos for the Deliveries page. */
.look-slots { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin: 18px 0; }
.look-slot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.look-preview { height: 150px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.look-preview { position: relative; overflow: hidden; }
.look-header .look-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.look-avatar .look-preview img { object-fit: cover; display: block; }
.look-avatar .look-preview img, .look-avatar .look-preview span { width: 110px; height: 110px; border-radius: 50%; }
.look-avatar .look-preview span { display: grid; place-items: center; font: 500 36px var(--serif); color: var(--text); background: #26262b; }
.look-slot .logo-info { padding: 14px 16px; }
.look-slot .logo-info h3 { margin: 0 0 2px; font: 500 15px var(--sans); }
.look-slot .row { display: flex; gap: 8px; margin-top: 10px; }
.look-slot form { margin: 0; }
@media (max-width: 640px) { .look-slots { grid-template-columns: 1fr; } }

/* Home page: (04) New in ContentFlows. Connect AI and the Vault, each with a small product picture. */
.lp-new .lp-heading { max-width: 760px; }
.lp-new .lp-heading span { color: var(--lp-muted); }
.lp-new + .lp-dark { border-top: 1px solid rgba(255,255,255,.08); }
.new-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 72px); }
.new-card { display: flex; flex-direction: column; align-items: flex-start; scroll-margin-top: 110px; }
.new-card .pillar-num { display: inline-flex; align-items: center; gap: 10px; }
.new-card h3 { font: 400 clamp(24px, 2.2vw, 30px)/1.15 var(--geist); letter-spacing: -.015em; margin: 14px 0 10px; color: var(--lp-fg); }
.new-card p { font: 400 15px/1.55 var(--geist); color: var(--lp-muted); margin: 0 0 24px; max-width: 520px; }
.new-cta.ghost { background: transparent; color: var(--lp-fg); border: 1px solid rgba(255,255,255,.25); }
.new-cta.ghost:hover { background: rgba(255,255,255,.06); }
.nv { width: 100%; aspect-ratio: 16 / 10.5; margin-bottom: 28px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); overflow: hidden;
  background: radial-gradient(90% 80% at 100% 0%, rgba(229,64,42,.16), transparent 60%), #19191c; padding: clamp(18px, 2.4vw, 30px);
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
/* Connect AI: a short chat. */
.nv-ai { justify-content: center; }
.nva-msg { font: 400 14px/1.5 var(--geist); border-radius: 14px; padding: 12px 15px; max-width: 86%; }
.nva-msg.you { align-self: flex-end; background: #2a2a30; color: #f1efe9; border-bottom-right-radius: 4px; }
.nva-msg.ai { align-self: flex-start; background: #e6e1cb; color: #111113; border-bottom-left-radius: 4px; display: grid; gap: 8px; }
.nva-msg.ai p { margin: 0; color: #111113; font-size: 14px; }
.nva-tool { display: flex; align-items: center; gap: 8px; font: 400 10px var(--mono); text-transform: uppercase; color: #615E55; }
.nva-tool .cf-symbol { width: 14px; height: 14px; color: #111113; }
.nva-tool em { font-style: normal; color: #111113; } .nva-tool b { font-weight: 400; margin-left: auto; }
.nva-link { font: 400 12px var(--mono); color: #C23320; background: rgba(229,64,42,.1); padding: 7px 10px; border-radius: 6px; justify-self: start; }
/* Vault: the Add from Vault picker. */
.nvv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.nvv-head em { font: normal 500 15px var(--geist); color: #f1efe9; } .nvv-head span { font: 400 11px var(--mono); color: #8d8a82; }
.nvv-row { display: grid; grid-template-columns: 16px 1fr auto; gap: 12px; align-items: center; font: 400 13px var(--geist); color: #c9c6be; }
.nvv-row i { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #4a4a52; position: relative; }
.nvv-row.on i { background: #E5402A; border-color: #E5402A; }
.nvv-row.on i::after { content: ''; position: absolute; left: 4px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.nvv-row b { font: 400 11px var(--mono); color: #8d8a82; }
.nvv-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.nvv-foot span { font: 400 11px var(--mono); color: #8d8a82; text-transform: uppercase; }
.nvv-foot b { font: 500 11px var(--mono); text-transform: uppercase; background: var(--action); color: #fff; padding: 9px 14px; border-radius: 4px; }
@media (max-width: 860px) {
  .new-grid { grid-template-columns: 1fr; gap: 64px; }
  .nv { aspect-ratio: auto; min-height: 260px; }
  .nva-msg { font-size: 13px; max-width: 92%; }
}

/* Vault logo: stacked layers and the "vault contentflows." wordmark. Inherits the text colour. */
.vault-logo { display: inline-flex; align-items: center; gap: .42em; height: 100%; color: currentColor; white-space: nowrap; }
.vault-mark { height: 1.1em; width: auto; flex: none; }
.vault-word { font: 600 1em/1 var(--geist), var(--sans); letter-spacing: -.035em; }

/* (04) New: the two products side by side, above the cards. */
.new-brands { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 18px; margin-top: clamp(36px, 4vw, 56px); }
.nb-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: clamp(28px, 3.4vw, 44px) 24px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px; color: #f1efe9; text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)), #151517; transition: border-color .25s, transform .25s; }
.nb-tile:hover { border-color: rgba(229,64,42,.55); transform: translateY(-2px); }
.nb-logo { display: block; height: clamp(26px, 2.6vw, 36px); font-size: clamp(26px, 2.6vw, 36px); }
.nb-logo .logo-svg { height: 100%; }
.nb-cap { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: #8d8a82; text-align: center; }
.nb-plus { align-self: center; font: 300 28px var(--geist); color: #8d8a82; }
.foot-vault { display: block; height: 20px; font-size: 19px; color: #f1efe9; margin-right: auto; margin-left: 10px; padding-left: 26px; border-left: 1px solid rgba(255,255,255,.15); }
@media (max-width: 860px) {
  .new-brands { grid-template-columns: 1fr; gap: 10px; }
  .nb-plus { justify-self: center; font-size: 22px; line-height: 1; }
  .foot-vault { display: none; }
}

/* Home page dusk scene (after the hero), after Fora's landscape hero: far and near ridges and the
   delivery preview drift up slower than the page (speeds 69, 83, 80), while the foreground ridge
   scrolls normally, rises over the preview and runs into the dark section below. */
.scene { position: relative; overflow: hidden; margin: 0; background: #111113; color: #f1efe9; text-align: center;
  padding: clamp(120px, 17vh, 190px) 24px 0; isolation: isolate; }
.scene-sky { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 45% at 50% 78%, rgba(240,146,72,.55), transparent 70%),
    linear-gradient(180deg, #15131c 0%, #241d2d 28%, #4a2e3e 52%, #9a4b3a 72%, #d77a3f 84%, #3b2a3a 100%); }
.scene-layer { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.scene-layer svg { display: block; width: 100%; height: 100%; }
.scene-px { height: 100%; will-change: transform; }
.scene-far { height: 58%; z-index: 0; }
.scene-near { height: 46%; z-index: 1; }
.scene-fore { height: 30%; z-index: 3; }
.scene-fore::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: #111113; }
.scene-copy { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.scene-chip { font: 400 13px var(--geist); color: rgba(241,239,233,.82); padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(241,239,233,.18); background: rgba(17,17,19,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.scene-title { margin: 22px 0 16px; font: 400 clamp(34px, 4.6vw, 64px)/1.06 var(--geist); letter-spacing: -.03em; color: #f6f3ec; }
.scene-sub { margin: 0 0 30px; max-width: 460px; font: 400 16px/1.55 var(--geist); color: rgba(241,239,233,.68); }
.scene-mock-wrap { position: relative; z-index: 2; width: min(1040px, 100%); margin: clamp(48px, 7vh, 80px) auto 0; padding-bottom: clamp(150px, 20vw, 300px); }
.scene-mock { height: auto; border-radius: 16px; overflow: hidden; background: #1a1a1d; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.75); text-align: left; }
.scene-mock img { display: block; width: 100%; height: auto; }
/* Entrance: ridges rise 72, 48 and 36px into place over a second, without overshoot. */
.scene-anim .scene-far, .scene-anim .scene-near, .scene-anim .scene-fore {
  transition: transform 1s cubic-bezier(.22, 1, .36, 1), opacity 1s ease; }
.scene-anim:not(.in) .scene-far { transform: translateY(72px); opacity: 0; }
.scene-anim:not(.in) .scene-near { transform: translateY(48px); opacity: 0; }
.scene-anim:not(.in) .scene-fore { transform: translateY(36px); }
@media (max-width: 760px) {
  .scene { padding-top: 110px; }
  .scene-sub { font-size: 15px; }
  .scene-mock-wrap { margin-top: 40px; padding-bottom: 120px; }
  .scene-mock { border-radius: 10px; }
  .scene-far { height: 46%; } .scene-near { height: 36%; } .scene-fore { height: 22%; }
}

/* Intro text: words light up with scroll (landing.js 2c). */
.words-on .w { opacity: .16; transition: opacity .25s linear; }
[data-speed] { will-change: translate; }

/* Why ContentFlows: SOHub-style pinned card stack (landing.js 2e). Without JS the cards stay a grid. */
.pillar-track.stack-on { position: relative; height: calc(100vh + var(--stages, 2) * 60vh); margin-top: clamp(40px, 5vw, 72px); }
.pillar-track.stack-on .pillar-grid { position: sticky; top: 0; height: 100vh; margin: 0; display: block; padding: 96px 0 32px; box-sizing: border-box; }
.pillar-track.stack-on .pillar-grid::before { content: ''; display: block; height: 100%; }
.stack-on .pillar { position: absolute; left: 0; right: 0; top: calc(96px + max(0px, (100% - 728px) / 2)); height: calc(100% - 128px); max-height: 600px; margin: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: 1fr auto auto auto; column-gap: clamp(32px, 5vw, 80px);
  padding: clamp(36px, 4.5vw, 64px); box-sizing: border-box; border-radius: 32px; background: #111113; overflow: hidden;
  transform-origin: 50% 0; will-change: transform; backface-visibility: hidden; --lp-fg: #f1efe9; --lp-muted: #9a978f; }
.stack-on .pillar:nth-child(2) { background: #1e1e21; }
.stack-on .pillar:nth-child(3) { background: #2c2c30; }
.stack-on .pillar:nth-child(1) { z-index: 1; } .stack-on .pillar:nth-child(2) { z-index: 2; } .stack-on .pillar:nth-child(3) { z-index: 3; }
.stack-on .pillar .pv { grid-column: 2; grid-row: 1 / 5; margin: 0; aspect-ratio: auto; height: 100%; }
.stack-on .pillar .pillar-num { grid-column: 1; grid-row: 2; }
.stack-on .pillar h3 { grid-column: 1; grid-row: 3; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.03em; margin: 18px 0 16px; }
.stack-on .pillar p { grid-column: 1; grid-row: 4; font-size: 17px; max-width: 420px; }
.stack-on .pillar:hover .pv { transform: none; }
@media (max-width: 767px) {
  .pillar-track.stack-on .pillar-grid { padding: 84px 0 20px; }
  .stack-on .pillar { top: 84px; height: calc(100% - 104px); max-height: none; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto auto auto;
    padding: 20px 20px 26px; border-radius: 24px; }
  .stack-on .pillar .pv { grid-column: 1; grid-row: 1; height: auto; min-height: 0; margin-bottom: 20px; }
  .stack-on .pillar .pillar-num, .stack-on .pillar h3, .stack-on .pillar p { grid-column: 1; }
  .stack-on .pillar h3 { font-size: 32px; margin: 12px 0 10px; }
  .stack-on .pillar p { font-size: 15px; }
}

/* Sections (01)-(05) stack as cards (landing.js 2f). */
.sec-stack.stack-on { background: #0a0a0b; }
.stack-on > section.lp { position: sticky; border-radius: 32px 32px 0 0; }
.stack-on > section.lp:first-child { border-radius: 0; }
.stack-on > section.lp:not(:first-child) { box-shadow: 0 -20px 40px -24px rgba(0,0,0,.4); }
@media (max-width: 767px) { .stack-on > section.lp { border-radius: 22px 22px 0 0; } }

/* Compositor-driven deck where the browser supports scroll-driven animations: the cards move in step
   with the scroll itself instead of a frame later from JS. The range is the time the deck is pinned. */
@supports (animation-timeline: view()) {
  .pillar-track.stack-css { view-timeline: --deck block; }
  .stack-css .pillar { animation-timing-function: linear; animation-fill-mode: both; animation-duration: 1ms;
    animation-timeline: --deck; animation-range: contain 0% contain 100%; }
  .stack-css .pillar:nth-child(1) { animation-name: deck-a; }
  .stack-css .pillar:nth-child(2) { animation-name: deck-b; }
  .stack-css .pillar:nth-child(3) { animation-name: deck-c; }
}
@keyframes deck-a { 0% { transform: none; } 50% { transform: translate3d(0, -60px, 0) scale(.95); } 100% { transform: translate3d(0, -120px, 0) scale(.9); } }
@keyframes deck-b { 0% { transform: translate3d(0, 120%, 0); } 50% { transform: none; } 100% { transform: translate3d(0, -60px, 0) scale(.95); } }
@keyframes deck-c { 0% { transform: translate3d(0, 120%, 0); } 50% { transform: translate3d(0, 120%, 0); } 100% { transform: none; } }

/* Save to Photos (iPhone and iPad delivery pages): a sheet that loads the originals, then opens the share sheet. */
.sp-lock, .sp-lock body { overflow: hidden; }
.sp-sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.sp-sheet[hidden] { display: none; }
.sp-card { width: min(100%, 440px); max-height: calc(100dvh - 40px); overflow: auto; padding: 18px 18px 16px; border-radius: 22px; background: #17171a; color: #f1efe9;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.5); animation: sp-in .45s var(--am-spring) both; }
@keyframes sp-in { from { transform: translateY(40px); opacity: 0; } }
.sp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-title { font: 500 17px var(--geist); }
.sp-close { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); color: #f1efe9; font: 400 13px var(--geist); cursor: pointer; }
.sp-what { margin: 10px 0 14px; font: 400 12px var(--mono); letter-spacing: .02em; color: rgba(241,239,233,.6); overflow-wrap: anywhere; }
.sp-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.sp-bar[hidden] { display: none; }
.sp-bar i { display: block; height: 100%; background: #E5402A; transform: scaleX(0); transform-origin: left; transition: transform .2s linear; }
.sp-status { min-height: 1.4em; margin: 10px 0 14px; font: 400 14px/1.4 var(--geist); color: rgba(241,239,233,.85); overflow-wrap: anywhere; }
.sp-go { width: 100%; height: 48px; border: 0; border-radius: 999px; font-size: 12px; cursor: pointer; }
.sp-go[hidden] { display: none; }
.sp-go:disabled { opacity: .45; cursor: default; }
.sp-rest { list-style: none; margin: 14px 0 0; padding: 0; font: 400 13px/1.4 var(--geist); color: rgba(241,239,233,.7); }
.sp-rest:empty { display: none; }
.sp-rest li + li { margin-top: 6px; }
.sp-rest a { color: #f1efe9; overflow-wrap: anywhere; }
.sp-alt { display: block; margin-top: 14px; text-align: center; font: 400 13px var(--geist); color: rgba(241,239,233,.7); text-decoration: underline; text-underline-offset: 3px; }
.sp-alt[hidden] { display: none; }
