/* Inner Dive · Andrija Puharich (topic 69 · 9 Nov 2026) */
.app.science .science-hero.pu-hero { position: relative; background: #000; }
.app.science .science-hero.pu-hero img { object-position: 82% 50%; filter: contrast(1.05) brightness(1.02); }
.app.science .science-hero.pu-hero .hero-fx { mix-blend-mode: screen; }

/* labels: Documented / Reported · debated (drawn by CSS so the sentence itself stays clean for every language) */
.app.science p[data-pu] { position: relative; padding-left: 16px; border-left: 2px solid var(--pu, #FFB23A); }
.app.science p[data-pu]::before { display: block; width: max-content; margin: 0 0 6px; padding: 3px 10px; border-radius: 999px;
  font: 700 .66rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase;
  color: #0A0612; background: var(--pu, #FFB23A); box-shadow: 0 0 18px -4px var(--pu, #FFB23A); }
.app.science p[data-pu="doc"] { --pu: #4DE1C1; }
.app.science p[data-pu="rep"] { --pu: #FFB23A; }
.app.science p[data-pu="doc"]::before { content: "Documented"; }
.app.science p[data-pu="rep"]::before { content: "Reported · debated"; }
html[lang="fr"] .app.science p[data-pu="doc"]::before { content: "Documenté"; }
html[lang="fr"] .app.science p[data-pu="rep"]::before { content: "Rapporté · débattu"; }
html[lang="pt"] .app.science p[data-pu="doc"]::before, html[lang="es"] .app.science p[data-pu="doc"]::before { content: "Documentado"; }
html[lang="pt"] .app.science p[data-pu="rep"]::before, html[lang="es"] .app.science p[data-pu="rep"]::before { content: "Relatado · debatido"; }
.pu-legend li.pu-key strong { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 700 .7rem/1.5 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: #0A0612; }
.pu-legend li.pu-key.doc strong { background: #4DE1C1; box-shadow: 0 0 16px -4px #4DE1C1; }
.pu-legend li.pu-key.rep strong { background: #FFB23A; box-shadow: 0 0 16px -4px #FFB23A; }

/* photos */
.pu-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 10px; margin: 14px 0; }
.pu-ph { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: #05030A; border: 1px solid rgba(255, 178, 58, .3);
  box-shadow: 0 0 34px -16px #FFB23A, inset 0 0 0 1px rgba(255, 255, 255, .03); }
.pu-ph img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.04); }
.pu-ph:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }
.pu-ph:nth-child(2) { aspect-ratio: 4 / 3; }
.pu-ph:nth-child(3) { aspect-ratio: 16 / 10; }
.pu-ph:nth-child(3) img { object-position: 70% 30%; }
.pu-ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 9px; font: 600 .78rem/1.35 var(--font-body, system-ui);
  color: #FFF4E2; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78)); letter-spacing: .01em; }
.pu-ph::after { content: ""; position: absolute; inset: 8px; pointer-events: none; border: 1px solid rgba(255, 178, 58, .0);
  background: linear-gradient(#FFB23A, #FFB23A) left top / 12px 1.4px no-repeat, linear-gradient(#FFB23A, #FFB23A) left top / 1.4px 12px no-repeat,
  linear-gradient(#FFB23A, #FFB23A) right bottom / 12px 1.4px no-repeat, linear-gradient(#FFB23A, #FFB23A) right bottom / 1.4px 12px no-repeat; opacity: .75; }
@media (max-width: 640px) { .pu-gallery { grid-template-columns: 1fr; } .pu-ph:nth-child(1) { grid-row: auto; aspect-ratio: 1 / 1; } }
.pu-link { border-color: rgba(255, 178, 58, .5); background: linear-gradient(100deg, rgba(255, 178, 58, .18), rgba(77, 225, 193, .12)); box-shadow: 0 0 24px -10px #FFB23A; }
.pu-link:hover { box-shadow: 0 0 30px -6px #FFB23A; }

/* phone: taller lab stages, one-line buttons (9 Nov) */
@media (max-width: 640px) {
  .pu-lab.qm-box.qm-tall canvas { height: 440px; }
  #puWater.qm-box canvas { height: 470px; }
  .pu-lab .sc-btns { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .pu-lab .sc-btns .qm-snd { font-size: .95rem; }
}
