/* Shared reset and the parts that behave the same in every prototype. Each prototype sets the variables. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Poppins, system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
body.has-bar { padding-bottom: 84px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Video: thumbnail first, YouTube loads only after a click. */
.video-slot { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius, 14px); overflow: hidden; }
.video-slot iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-thumb { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.playbtn { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); transition: transform .15s; }
.playbtn::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 24px solid #1A1A1A; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.video-thumb:hover .playbtn { transform: scale(1.08); }

/* Chapters */
.chapters button { display: flex; gap: 16px; width: 100%; padding: 10px 12px; border: 0; background: none; text-align: left; border-radius: 8px; }
.chapters time { flex: 0 0 4.2em; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent-text, var(--accent)); }
.chapters button:hover { background: var(--hover); }

/* Platform links */
.plat { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; }

/* Contact form */
.contact { display: grid; gap: 16px; }
.contact label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.contact input, .contact textarea { padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--field); width: 100%; }
.contact textarea { resize: vertical; }
.contact small { font-weight: 400; opacity: .7; }
.contact button { justify-self: start; padding: 13px 26px; border: 0; border-radius: 999px; background: var(--btn, var(--accent)); color: var(--btn-ink, #1A1A1A); font-weight: 600; }
.form-error { color: var(--error, #FF8A8C); font-weight: 500; }
.form-done { padding: 18px 20px; border-radius: 12px; background: var(--hover); }

/* Audio bar */
#bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: #232322; color: #FAFAF7; border-top: 2px solid #5FCB97; }
#bar[hidden] { display: none; }
#bar-title { flex: 1 1 0; min-width: 0; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
#bar audio { flex: 2 1 320px; height: 40px; max-width: 640px; }
#bar-close { border: 0; background: none; color: #FAFAF7; font-size: 1.1rem; padding: 8px; }
@media (max-width: 640px) { #bar { flex-wrap: wrap; gap: 6px 12px; } #bar-title { flex-basis: calc(100% - 50px); } #bar audio { flex-basis: 100%; order: 3; } body.has-bar { padding-bottom: 120px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
