/* Pixel & Prose shared chassis for all ten homepage concepts.
   Palette is fixed: two neutrals (paper, ink) plus ONE accent. The accent is switchable from the dock
   (Ember / Cobalt / Gold) and remembered across pages. Deliberately single-theme (no dark-mode remap):
   each concept composes its own paper and ink bands. Never introduce another hue. */
:root {
  color-scheme: light;
  --paper: #f4f3ef;
  --paper-2: #ebe9e3;
  --ink: #0d0d0f;
  --ink-2: #17171a;
  --ink-3: #222226;
  --muted: #66655f;
  --muted-on-ink: #a3a29c;
  --line: #dcdad3;
  --line-ink: #2a2a2e;
  --accent: #3d5afe;
  --on-accent: #ffffff;
  --f-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg, canvas, video { max-width: 100%; }
em.s { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Layout helpers: .gut on every full-width band, .in for the centred column */
.gut { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 480px) { .gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.in { max-width: 1200px; margin: 0 auto; }
.ink { background: var(--ink); color: #fff; }
.label { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.muted { color: var(--muted); }
.ink .muted { color: var(--muted-on-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15px var(--f-body); padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn.acc { background: var(--accent); color: var(--on-accent); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 25%, transparent); }
.btn.ghost-ink { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* Nav: sticky, switches tone with the band underneath it (sections carry data-tone="ink" or "paper") */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.pp-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; color: #fff; background: color-mix(in srgb, var(--ink) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background-color .35s var(--ease), color .35s var(--ease); }
.pp-nav.on-paper { color: var(--ink); background: color-mix(in srgb, var(--paper) 82%, transparent); }
.pp-nav .in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-h); }
.pp-logo { font: 600 18px var(--f-display); letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.pp-logo .mk { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); position: relative; overflow: hidden; flex: none; }
.pp-logo .mk::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.pp-nav nav { display: flex; gap: 28px; font-size: 14.5px; opacity: .82; }
.pp-nav nav a { text-decoration: none; }
.pp-nav nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pp-nav .btn { padding: 10px 16px; font-size: 14px; }
.pp-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 820px) { .pp-nav nav { display: none; } }

/* Book a call (shared closing section) */
.pp-book { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding-block: clamp(100px, 16vh, 170px); }
.pp-book .aura { position: absolute; width: 900px; max-width: 120%; aspect-ratio: 1; left: 50%; top: 100%; transform: translate(-50%, -45%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%); filter: blur(20px); opacity: .7; pointer-events: none; }
.pp-book .in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.pp-book h2 { font-size: clamp(46px, 7vw, 100px); line-height: .92; }
.pp-book h2 em.s { color: var(--accent); }
.pp-book .lead { color: #cfcec8; font-size: 18px; margin-top: 22px; max-width: 26em; }
.pp-book .alt { margin-top: 28px; display: grid; gap: 4px; color: var(--muted-on-ink); font-size: 14.5px; }
.pp-book .alt span { color: #fff; user-select: all; }
.pp-book form { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 26px; display: grid; gap: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); min-width: 0; }
.pp-book label { display: grid; gap: 6px; font-size: 13.5px; color: #cfcec8; min-width: 0; }
.pp-book input, .pp-book select { font: 400 15px var(--f-body); color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 13px 14px; width: 100%; min-width: 0; }
.pp-book select option { color: #0d0d0f; }
.pp-book .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp-book .done { font-size: 14px; color: #fff; background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; }
.pp-book button[type="submit"] { justify-content: center; }
@media (max-width: 860px) { .pp-book .in { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pp-book .two { grid-template-columns: 1fr; } }
.pp-foot { background: var(--ink); color: #77766f; border-top: 1px solid var(--line-ink); font-size: 13.5px; padding-bottom: 72px; }
.pp-foot .in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; }

/* Dock: compare concepts (prev / next / all) and switch the accent. Prototype-only chrome. */
.pp-dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 10px)); z-index: 80; display: flex; align-items: center; gap: 4px; background: rgba(13,13,15,.92); color: #d6d5cf; border: 1px solid #2f2f34; border-radius: 999px; padding: 5px; font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); max-width: calc(100vw - 24px); }
.pp-dock a { text-decoration: none; color: inherit; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.pp-dock a:hover { background: rgba(255,255,255,.08); color: #fff; }
.pp-dock .pp-cur { color: #fff; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-dock .pp-sep { width: 1px; height: 20px; background: #34343a; margin: 0 4px; flex: none; }
.pp-dock button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; flex: none; }
.pp-dock button[aria-pressed="true"] { border-color: #fff; }
@media (max-width: 560px) { .pp-dock .pp-cur .pp-nm { display: none; } .pp-dock .pp-all { display: none; } }

/* Split text helpers (used by several concepts) */
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: inline-block; }

@media (prefers-reduced-motion: reduce) { .btn, .btn .arr, .pp-nav { transition: none; } }

/* Smoke canvases (see smoke.js). Any <canvas data-smoke="full|right" data-k="0.8"> is started by shared.js */
canvas[data-smoke] { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.pp-book canvas[data-smoke] { opacity: .9; }

/* Consent bar (shown by consent.js to visitors in Europe only) */
.pp-consent { position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: 420px; display: grid; gap: 12px; padding: 16px 18px; background: var(--ink); color: #e4e3dd; border: 1px solid var(--line-ink); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.28); font-size: 14px; line-height: 1.45; }
.pp-consent[hidden] { display: none; }
.pp-consent p { margin: 0; }
.pp-consent a { color: inherit; text-underline-offset: 3px; }
.pp-consent-btns { display: flex; gap: 8px; }
.pp-consent button { flex: 1; font: 500 14px var(--f-body); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-ink); background: transparent; color: #fff; cursor: pointer; }
.pp-consent button.ok { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pp-consent button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) { .pp-consent { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
.pp-foot .links { display: flex; gap: 20px; }
