/* Paintpam Library — R1 stylesheet
   Dark, serif, cinematic. One file, no build step. */

:root {
  --bg: #0B0B0C;
  --bg-2: #0F0F11;
  --surface: #151517;
  --surface-2: #1C1C1F;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --text: #F4F2EE;
  --muted: #B0AAA1;
  --dim: #8F897F;
  --accent: #F5A524;
  --accent-2: #FFC35E;
  --accent-ink: #1B1304;
  --accent-tint: rgba(245, 165, 36, .1);
  --case: #C9BBFF;
  --case-tint: rgba(167, 139, 250, .12);
  --danger: #FF8E7F;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hdr-h: 64px;
  --test-h: 0px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + var(--test-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: rgba(245, 165, 36, .5); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .86em; background: rgba(255, 255, 255, .06); padding: .1em .38em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(245, 165, 36, .35); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.ext { display: inline-block; margin-left: 4px; font-size: .9em; opacity: .75; }
.opt { color: var(--dim); font-weight: 400; font-size: .9em; }
.req { color: var(--accent); }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: transparent;
  font: 600 .97rem/1.1 var(--body); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease);
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .05); }
.btn--quiet { color: var(--muted); padding: 0 12px; }
.btn--quiet:hover { color: var(--text); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── header ──────────────────────────────────────────────────────────── */
.hdr { position: sticky; top: var(--test-h); z-index: 50; background: rgba(11, 11, 12, .82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; }
.brand__sub { font-family: var(--display); font-size: 1.12rem; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line-2); line-height: 1.2; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: .94rem; }
.nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--text); }
.hdr__cta { flex: none; }

/* ── index hero ──────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 64px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(245, 165, 36, .12), transparent 70%); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-family: var(--display); font-size: clamp(2.35rem, 4.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.022em; font-weight: 500; text-wrap: balance; }
.hero__sub { margin-top: 20px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 34em; text-wrap: pretty; }
.trio { margin: 28px 0 0; border-top: 1px solid var(--line); }
.trio > div { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.trio dt { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.trio dd { margin: 0; font-size: .98rem; color: var(--text); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Tiles keep the card's own 16:10 ratio, so a card image is never cropped (no cut-off game text). */
.mosaic { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: center; }
.mosaic__tile { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r); background: var(--surface); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); outline: 1px solid var(--line); outline-offset: -1px; }
.mosaic--1 .mosaic__tile, .mosaic--3 .mosaic__tile:first-child { grid-column: 1 / -1; }
.mosaic__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic__tile:hover img { transform: scale(1.03); }

/* ── sections ────────────────────────────────────────────────────────── */
.sec { padding: clamp(48px, 7vw, 96px) 0 0; }
.sec--tight { padding-top: clamp(24px, 3vw, 40px); }
.sec__head { margin-bottom: clamp(20px, 3vw, 32px); max-width: 720px; }
.sec__title { font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: -.016em; text-wrap: balance; }
.sec__lead { margin-top: 12px; color: var(--muted); font-size: 1.04rem; max-width: 40em; text-wrap: pretty; }

/* use tiles */
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.use { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 20px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease), background-color .2s var(--ease); }
.use:hover { border-color: rgba(245, 165, 36, .45); background: #18181A; transform: translateY(-2px); }
.use__icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 6px; }
.use__label { font-family: var(--display); font-size: 1.22rem; line-height: 1.2; }
.use__blurb { font-size: .92rem; color: var(--muted); line-height: 1.45; }
.use__count { margin-top: auto; padding-top: 8px; font-size: .8rem; color: var(--dim); letter-spacing: .02em; }

/* library + filters */
.lib__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.lib__top .sec__head { margin-bottom: 20px; }
.lib__sort { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: .9rem; color: var(--muted); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select, .field select { appearance: none; -webkit-appearance: none; }
.select select { height: 40px; padding: 0 38px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 500 .92rem var(--body); cursor: pointer; }
.filters { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters__row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; }
.filters__label { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.filters__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: .9rem; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.fchip:hover { color: var(--text); border-color: rgba(255, 255, 255, .38); }
.fchip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fchip__n { font-size: .78rem; opacity: .7; font-variant-numeric: tabular-nums; }
.lib__count { margin: 20px 0 18px; font-size: .9rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.empty { padding: 40px 0 8px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 14px; }
.empty__alt { font-size: .94rem; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cases { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.cases__head { max-width: 720px; margin-bottom: 22px; }
.cases__title { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.15; color: var(--case); }
.cases__head p { margin-top: 8px; color: var(--muted); font-size: .98rem; }

/* card — text never sits on top of the image */
.card { min-width: 0; }
.card[hidden] { display: none; }
.card__link { display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.card__link:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9); }
.card__media { position: relative; aspect-ratio: 16 / 10; background: #050506; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.035); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card__kicker { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.card__title { font-family: var(--display); font-size: 1.5rem; line-height: 1.15; letter-spacing: -.01em; }
.card__sum { color: var(--muted); font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }

.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.tag--eval { color: var(--accent); border-color: rgba(245, 165, 36, .42); background: var(--accent-tint); }
.tag--case { color: var(--case); border-color: rgba(201, 187, 255, .4); background: var(--case-tint); }

/* placeholder art when no image exists (no text on it) */
.ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(244, 242, 238, .28);
  background: radial-gradient(120% 90% at 20% 10%, rgba(245, 165, 36, .2), transparent 55%), radial-gradient(90% 80% at 90% 100%, rgba(139, 92, 246, .18), transparent 60%), #111113; }
.ph svg { width: 22%; max-width: 84px; height: auto; }
.card--case .ph { background: radial-gradient(120% 90% at 20% 10%, rgba(167, 139, 250, .22), transparent 55%), radial-gradient(90% 80% at 90% 100%, rgba(245, 165, 36, .1), transparent 60%), #111113; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { padding: 26px 24px 28px; border-radius: var(--r); background: linear-gradient(180deg, var(--surface), rgba(21, 21, 23, .4)); border: 1px solid var(--line); }
.step__n { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--accent); opacity: .9; margin-bottom: 18px; font-variant-numeric: lining-nums; }
.step__t { font-family: var(--display); font-size: 1.32rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; }

/* about */
.about__link { display: inline-block; margin-top: 12px; color: var(--accent-2); font-size: .95rem; }
.about__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.about__cta { margin-top: 22px; }
.proof__scope .about__link, .dhero__fine .about__link { margin-top: 0; }

/* real-use short on the detail page */
.dhero__watch { margin-top: 2px; }
.dhero__watch .about__link { margin-top: 6px; }
.inuse__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(28px, 6vw, 88px); align-items: center; }
.inuse__proof { margin: 22px 0 0; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--text); font-size: 1.02rem; text-wrap: pretty; }
.inuse__copy .proof__scope { margin-top: 14px; }
.inuse__note { margin-top: 18px; color: var(--dim); font-size: .9rem; max-width: 40em; }
.inuse__links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 6px; }
.short { margin: 0; width: 100%; justify-self: end; }
.short__frame { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 16px; overflow: hidden; background: #050506; outline: 1px solid var(--line); outline-offset: -1px; }
.short__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.short__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-ink); background: var(--accent); box-shadow: 0 10px 34px rgba(0, 0, 0, .55); transition: transform .18s var(--ease); }
a.short__frame:hover .short__play, a.short__frame:focus-visible .short__play { transform: scale(1.08); }

/* faq */
.faq__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; font-size: 1.06rem; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa__i { position: relative; flex: none; width: 14px; height: 14px; }
.qa__i::before, .qa__i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--accent); border-radius: 2px; transition: transform .25s var(--ease); }
.qa__i::after { transform: rotate(90deg); }
.qa[open] .qa__i::after { transform: rotate(0deg); }
.qa p { padding: 0 0 22px; color: var(--muted); max-width: 42em; }

/* contact */
.contact { padding-bottom: clamp(56px, 8vw, 104px); }
.contact__card { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg);
  background: radial-gradient(80% 140% at 0% 0%, rgba(245, 165, 36, .14), transparent 60%), var(--surface); border: 1px solid var(--line-2); }
.contact__actions { display: grid; gap: 10px; min-width: 260px; }
.contact__mail { margin-top: 14px; }

/* footer */
.ftr { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--dim); font-size: .9rem; }
.ftr__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; }
.ftr__brand img { height: 26px; width: auto; margin-bottom: 12px; opacity: .9; }
.ftr__brand p { max-width: 30em; }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; }
.ftr__nav a { color: var(--muted); text-decoration: none; }
.ftr__nav a:hover { color: var(--text); }
.ftr__legal { grid-column: 1 / -1; font-size: .82rem; padding-top: 20px; border-top: 1px solid var(--line); }

/* ── detail ──────────────────────────────────────────────────────────── */
.crumbs { display: flex; gap: 10px; align-items: center; padding-top: 18px; padding-bottom: 18px; font-size: .86rem; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.dhero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.dhero__media { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #050506; outline: 1px solid var(--line); outline-offset: -1px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.dhero__poster, .dhero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dhero__media.is-portrait .dhero__poster, .dhero__media.is-portrait .dhero__video { object-fit: contain; }
.dhero__video { opacity: 0; transition: opacity .6s var(--ease); }
.dhero__video.is-on { opacity: 1; }
.dhero__copy { padding-top: 4px; }
.dhero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dhero__title { font-family: var(--display); font-size: clamp(2.1rem, 3.6vw, 3.25rem); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.dhero__headline { margin-top: 14px; font-size: clamp(1.08rem, 1.45vw, 1.24rem); line-height: 1.5; color: var(--text); opacity: .92; text-wrap: pretty; }
.need { margin: 22px 0 0; border-top: 1px solid var(--line); }
.need > div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.need dt { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.need dd { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.need--case dt { color: var(--case); }
.need--case > div { grid-template-columns: 118px 1fr; }
.dhero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dhero__fine { margin-top: 12px; font-size: .84rem; color: var(--dim); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.duo .sec__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.ticks, .nums { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ticks li, .nums li { position: relative; padding: 14px 0 14px 42px; border-top: 1px solid var(--line); color: var(--text); font-size: 1rem; }
.ticks li:last-child, .nums li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-tint); box-shadow: inset 0 0 0 1px rgba(245, 165, 36, .45); }
.ticks li::after { content: ""; position: absolute; left: 10.5px; top: 22px; width: 7px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.nums { counter-reset: n; }
.nums li { counter-increment: n; }
.nums li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--display); font-size: 1.1rem; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.gallery--1 { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; border-radius: 12px; background: #050506; outline: 1px solid var(--line); outline-offset: -1px; }
.gallery__item figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }

.proof { position: relative; padding: clamp(26px, 4vw, 44px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.proof::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.proof__text { margin: 0; }
.proof__text p { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.3; letter-spacing: -.01em; max-width: 34em; text-wrap: pretty; }
.proof__scope { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted); }

.mp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(26px, 4vw, 48px); border-radius: var(--r-lg);
  background: radial-gradient(70% 120% at 100% 100%, rgba(245, 165, 36, .14), transparent 60%), var(--surface); border: 1px solid var(--line); }
.mp__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mp__art svg { width: 100%; max-width: 300px; margin-left: auto; height: auto; }

.tbl-wrap { border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl thead th { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); background: var(--bg-2); }
.tbl tbody th { font-weight: 500; width: 30%; }
.tbl__label { display: block; margin-bottom: 4px; }
.tbl tbody th code { font-size: .78rem; color: var(--dim); }
.tbl td { color: var(--muted); }
.muted { color: var(--dim); }
.tbl td:last-child { width: 18%; }
.custom-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 20px; padding: 24px 26px; border-radius: var(--r); background: var(--accent-tint); border: 1px solid rgba(245, 165, 36, .3); }
.custom-cta h3 { font-family: var(--display); font-size: 1.32rem; margin-bottom: 4px; }
.custom-cta p { color: var(--muted); font-size: .96rem; max-width: 40em; }
.custom-cta--big { margin-top: 0; padding: clamp(26px, 4vw, 44px); border-radius: var(--r-lg); }
.custom-cta--big p { margin-top: 10px; }

.specs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.specs > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.specs dd { margin: 0; display: grid; gap: 2px; font-size: .97rem; font-variant-numeric: tabular-nums; }
.specs small { color: var(--dim); font-size: .8rem; }
.sums { margin-top: 18px; font-size: .88rem; color: var(--dim); }
.sums summary { cursor: pointer; color: var(--muted); }
.sums ul { list-style: none; padding: 10px 0 0; margin: 0; display: grid; gap: 8px; }
.sums li { display: grid; gap: 4px; }
.sums code { word-break: break-all; font-size: .76rem; }
.grid--rel { margin-bottom: clamp(56px, 8vw, 104px); }

.sticky-cta { display: none; }

/* message pages */
.msg { padding: clamp(56px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); }
.msg__in { max-width: 860px; }
.msg__in--narrow { max-width: 640px; }
.msg__title { font-family: var(--display); font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 16px; text-wrap: balance; }
.msg__lead { color: var(--muted); font-size: 1.08rem; margin-bottom: 24px; max-width: 36em; }
.next { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.next li { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.next h2 { font-family: var(--display); font-size: 1.2rem; }
.next p { color: var(--muted); font-size: .94rem; flex: 1; margin-bottom: 8px; }
.fixes { margin: 0 0 24px; padding-left: 22px; display: grid; gap: 10px; color: var(--muted); }
.fixes strong { color: var(--text); font-weight: 600; }
.checkin { display: grid; gap: 20px; margin-top: 8px; }
.checkin__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── dialog + forms ──────────────────────────────────────────────────── */
.dlg { padding: 0; border: 0; background: transparent; color: var(--text); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: hidden; }
.dlg:not([open]) { display: none; }
.dlg[open] { display: grid; place-items: center; }
.dlg::backdrop { background: rgba(4, 4, 5, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dlg__panel { position: relative; width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; padding: 32px 32px 28px; border-radius: 20px; background: #141416; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); animation: dlg-in .32s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.dlg__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .05); color: var(--muted); cursor: pointer; }
.dlg__close:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.dlg__head { padding-right: 44px; margin-bottom: 22px; }
.dlg__head .eyebrow { margin-bottom: 8px; }
.dlg__title { font-family: var(--display); font-size: 1.75rem; line-height: 1.15; letter-spacing: -.01em; outline: none; }
.dlg__sub { margin-top: 8px; color: var(--muted); font-size: .96rem; }
.dlg__sub:empty { display: none; }
body.dlg-open { overflow: hidden; }

.form { display: grid; gap: 18px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 14px; }
.form[data-view="form"] .form__grid .field:first-child { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field > label, .field legend { font-size: .9rem; font-weight: 500; color: var(--text); padding: 0; }
.field legend { margin-bottom: 9px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 400 1rem/1.4 var(--body);
  transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 96px; }
.field select { padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #6f6a63; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 165, 36, .22); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__err { font-size: .84rem; color: var(--danger); min-height: 0; }
.field__err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: .92rem; transition: background-color .15s, color .15s, border-color .15s; user-select: none; }
.chip:hover span { color: var(--text); border-color: rgba(255, 255, 255, .36); }
.chip input:checked + span { color: var(--accent); border-color: var(--accent); background: var(--accent-tint); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field--chips[aria-invalid="true"] .chip span { border-color: rgba(255, 142, 127, .55); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__alert { padding: 12px 14px; border-radius: 10px; background: rgba(255, 142, 127, .1); border: 1px solid rgba(255, 142, 127, .35); color: #FFC8BF; font-size: .92rem; }
.form__actions { display: grid; gap: 10px; margin-top: 4px; }
.form__actions--row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form__fine { font-size: .82rem; color: var(--dim); text-align: center; }
.form--more { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.form__h { font-family: var(--display); font-size: 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.form__h .opt { font-family: var(--body); font-size: .82rem; }

.dl-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.dl-btn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; transition: background-color .18s, transform .12s; }
.dl-btn:hover { background: var(--accent-2); }
.dl-btn:active { transform: scale(.985); }
.dl-btn svg { flex: none; width: 22px; height: 22px; }
.dl-btn__t { display: grid; line-height: 1.25; }
.dl-btn__t small { font-weight: 500; opacity: .75; font-size: .82rem; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .92rem; }
.note svg { flex: none; color: var(--accent); margin-top: 2px; }
.note strong { color: var(--text); }
.sent { display: grid; gap: 12px; justify-items: start; color: var(--muted); }
.sent svg { color: var(--accent); }
.sent__lead { font-family: var(--display); font-size: 1.5rem; color: var(--text); }
.sent--inline { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sent--inline strong { color: var(--text); }

/* test mode band */
.test-band { position: fixed; top: 0; left: 0; right: 0; z-index: 400; height: 26px; display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 .72rem/1 var(--body); letter-spacing: .2em; color: #1B1304;
  background: repeating-linear-gradient(-45deg, #F5A524 0 14px, #FFC35E 14px 28px); }
.test-band a { color: inherit; letter-spacing: .06em; font-weight: 600; }
.link-note { max-width: var(--wrap); margin: 16px auto 0; padding: 12px 16px; width: calc(100% - 2 * var(--gutter));
  border: 1px solid var(--accent); border-radius: var(--r-sm); background: var(--accent-tint); color: var(--text); font: 500 .95rem/1.45 var(--body); }
html.is-test { --test-h: 26px; }
html.is-test body { padding-top: 26px; }

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inuse__in { grid-template-columns: minmax(0, 1fr); }
  .short { justify-self: center; max-width: 300px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .hdr__cta { margin-left: auto; }
}
@media (max-width: 900px) {
  .hero__in, .dhero__in, .faq__in, .contact__card, .mp, .duo { grid-template-columns: minmax(0, 1fr); }
  /* single-column hero: big tile left, two small right — column math keeps every tile at exactly 16:10 */
  .mosaic--3 { grid-template-columns: minmax(0, 1fr) calc((100% - 31.2px) / 3); }
  .mosaic--3 .mosaic__tile:first-child { grid-column: auto; grid-row: 1 / span 2; aspect-ratio: auto; }
  .mp__art { display: none; }
  .contact__actions { min-width: 0; }
  .steps, .next { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq__in { gap: 8px; }
}
@media (max-width: 819px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 11, 12, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
  .page-scene .ftr { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.dlg-open .sticky-cta { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { height: 26px; }
  .brand__sub { font-size: 1rem; padding-left: 10px; }
  .hdr__in { gap: 12px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .uses { gap: 10px; }
  .use { padding: 16px 14px; }
  .use__blurb { display: none; }
  .use__label { font-size: 1.05rem; }
  .trio > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .lib__top { flex-direction: column; align-items: stretch; gap: 0; }
  .lib__sort { margin-bottom: 14px; }
  .filters__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .filters__chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .filters__chips::-webkit-scrollbar { display: none; }
  .fchip { flex: none; }
  .crumbs { padding-top: 12px; padding-bottom: 12px; }
  .step { padding: 20px 20px 22px; }
  .step__n { font-size: 1.7rem; margin-bottom: 10px; }
  .steps { gap: 12px; }
  .dhero__media { margin: 0 calc(var(--gutter) * -1); border-radius: 0; outline: 0; }
  .need > div, .need--case > div { grid-template-columns: 86px minmax(0, 1fr); gap: 10px; padding: 9px 0; }
  .dhero__ctas .btn { width: 100%; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs > div { padding: 12px 0; }
  .gallery, .gallery--2 { grid-template-columns: minmax(0, 1fr); }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100% !important; }
  .tbl tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl th, .tbl td { padding: 0; border: 0; }
  .tbl td { margin-top: 6px; }
  .tbl td:last-child::before { content: "Default: "; color: var(--dim); }
  .custom-cta { flex-direction: column; align-items: stretch; }
  .custom-cta .btn { width: 100%; white-space: normal; }
  .contact__actions .btn { width: 100%; }
  .checkin__btns .btn { flex: 1 1 100%; }
  .ftr__in { grid-template-columns: minmax(0, 1fr); }
  /* dialog becomes a bottom sheet */
  .dlg[open] { place-items: end center; }
  .dlg__panel { width: 100vw; max-height: 94dvh; border-radius: 20px 20px 0 0; padding: 26px 18px calc(22px + env(safe-area-inset-bottom)); border-bottom: 0; animation-name: sheet-in; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .dlg__title { font-size: 1.5rem; }
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

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