/* Shared behaviour styles for the PTW 2027 site (page styles come from the canvas, inline). */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
[data-if] { display: contents; }
[data-if][hidden], [hidden] { display: none !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.formerr { margin: 10px 0 0; font-size: 15px; font-weight: 700; color: #D7263D; }
button[aria-busy="true"] { opacity: .6; cursor: progress; }
:focus-visible { outline: 3px solid #F9E11B; outline-offset: 2px; }

/* ---------- big display numbers scale with the window ---------- */
[style*="font-size: 88px"], [style*="font-size: 96px"] { font-size: clamp(56px, 5.3vw, 96px) !important; }
[style*="font-size: 112px"], [style*="font-size: 120px"] { font-size: clamp(64px, 7.5vw, 120px) !important; }

/* responsive rules live in each page (from the canvas), between "resp" markers */

/* ---------- cookie banner ---------- */
.ptw-consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: #F2F1EA; color: #07071A; border-radius: 2px; box-shadow: 0 12px 40px rgba(7,7,26,.45); padding: 20px; font: 15px/1.45 'Sofia Sans', system-ui, sans-serif; }
.ptw-consent p { margin: 0 0 14px; }
.ptw-consent a { color: #0048FF; }
.ptw-consent .row { display: flex; flex-wrap: wrap; gap: 10px; }
.ptw-consent button { font: 800 16px 'Sofia Sans', system-ui, sans-serif; border-radius: 2px; padding: 12px 18px; cursor: pointer; border: 2px solid #07071A; background: transparent; color: #07071A; }
.ptw-consent button.yes { background: #07071A; color: #fff; }

/* ---------- leave popup (newsletter) ---------- */
.ptw-pop { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(7,7,26,.72); backdrop-filter: blur(3px); animation: ptwfade .2s ease-out; }
.ptw-pop[hidden] { display: none !important; }
.ptw-pop .card { position: relative; width: 100%; max-width: 520px; background: #07071A; color: #F2F1EA; border: 1px solid rgba(242,241,234,.18); border-radius: 2px; overflow: hidden; font-family: 'Sofia Sans', system-ui, sans-serif; animation: ptwup .25s ease-out; }
.ptw-pop .band { height: 8px; background: linear-gradient(90deg, #F9E11B 0 40%, #0048FF 40% 75%, #F26419 75%); }
.ptw-pop .in { padding: 32px 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.ptw-pop .eyebrow { margin: 0; font: 700 13px 'Sofia Sans Condensed', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #F9E11B; }
.ptw-pop h2 { margin: 0; font: 800 52px/.9 'Sofia Sans Extra Condensed', sans-serif; text-transform: uppercase; }
.ptw-pop p.lead { margin: 0; font-size: 17px; line-height: 1.5; color: #C9C8D9; }
.ptw-pop ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: #F2F1EA; }
.ptw-pop li::before { content: "→ "; color: #F9E11B; font-weight: 800; }
.ptw-pop form { display: flex; gap: 0; background: #fff; border-radius: 2px; padding: 5px; margin-top: 4px; }
.ptw-pop input[type=email] { flex: 1 1 auto; min-width: 0; border: 0; font: 17px 'Sofia Sans', system-ui, sans-serif; padding: 12px; color: #07071A; }
.ptw-pop form button { font: 800 16px 'Sofia Sans', system-ui, sans-serif; color: #07071A; background: #F9E11B; border: 0; border-radius: 2px; padding: 0 18px; cursor: pointer; white-space: nowrap; }
.ptw-pop .small { margin: 0; font-size: 13px; color: #8A89A6; }
.ptw-pop .small a { color: #C9C8D9; }
.ptw-pop .x { position: absolute; top: 18px; right: 14px; width: 40px; height: 40px; border: 0; background: none; color: #F2F1EA; font-size: 28px; line-height: 1; cursor: pointer; }
.ptw-pop .done { font: 800 30px/1 'Sofia Sans Extra Condensed', sans-serif; text-transform: uppercase; color: #F9E11B; margin: 6px 0 0; }
.ptw-pop .formerr { margin: 0; color: #FF8A8A; }
@media (max-width: 480px) { .ptw-pop .in { padding: 26px 20px 22px; } .ptw-pop h2 { font-size: 42px; } .ptw-pop form { flex-direction: column; gap: 6px; } .ptw-pop form button { padding: 13px; } }
@keyframes ptwfade { from { opacity: 0; } }
@keyframes ptwup { from { transform: translateY(16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ptw-pop, .ptw-pop .card { animation: none; } html { scroll-behavior: auto; } }

/* motion (site.js adds these classes; nothing hides without JavaScript) */
.m-in { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.m-in.m-show { opacity: 1; transform: none; }
.m-chart > * > :last-child { transform-origin: bottom; transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.m-chart > * > span { transition: opacity .5s ease; transition-delay: calc(var(--d, 0ms) + 400ms); }
.m-chart.m-wait > * > :last-child { transform: scaleY(0); }
.m-chart.m-wait > * > span { opacity: 0; }
.m-chart > *:hover > :last-child { filter: brightness(1.25); }
@media (prefers-reduced-motion: reduce) { .m-in { opacity: 1; transform: none; transition: none; } .m-chart > * > :last-child { transition: none; } }
