/*
Theme Name: PPPPPP Kinetic Landing
Theme URI: https://pppppp.co.uk/
Author: PPPPPP
Description: Minimal full-screen kinetic typography landing page. Six scattered words converge into one horizontal line, then the background transitions to graphite.
Version: 3.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: pppppp-kinetic
*/
@font-face{font-family:"DotCLICK";src:url("assets/DotCLICK-Thin.otf") format("opentype");font-style:normal;font-weight:100 400;font-display:swap}
html,body{margin:0;min-height:100%;width:100%}body{background:#fff}*,*::before,*::after{box-sizing:border-box}
#pppppp-stage{position:fixed;inset:0;overflow:hidden;background:#fff;color:#111;display:grid;place-items:center;transition:background-color 2.4s cubic-bezier(.45,0,.55,1)}
#pppppp-stage.finished{background:#292929}
/* Letter colour and background use exactly the same transition window and easing. */
#pppppp-line{color:#111;transition:color 2.4s cubic-bezier(.45,0,.55,1)}
#pppppp-stage.finished #pppppp-line{color:#fff}
#pppppp-line{display:flex;flex-wrap:nowrap;align-items:baseline;justify-content:center;gap:.28em;width:max-content;max-width:none;padding:0;margin:0;font:100 60px/1.2 'DotCLICK',Arial,sans-serif;letter-spacing:-.035em;white-space:nowrap}
#pppppp-line span{display:inline-block;flex:0 0 auto;white-space:nowrap;will-change:transform,opacity}
@media(prefers-reduced-motion:reduce){#pppppp-stage{background:#292929;transition:none}#pppppp-line{color:#fff;transition:none}}

/* Preserve the original DotCLICK i glyph, including its stem and dot. */
.pppppp-i{position:relative!important;display:inline-block!important;overflow:visible!important;will-change:auto!important}
/* Put the completed button above every word, never behind the typography. */
#pppppp-line .pppppp-piss{position:relative;z-index:30;overflow:visible}
#pppppp-dot-link{
 position:absolute;z-index:100;left:50%;top:.105em;
 width:150px;height:150px;display:block;
 transform:translate(-50%,-50%) scale(.008);
 transform-origin:50% 50%;opacity:0;pointer-events:none;
 border-radius:50%;isolation:isolate;
 will-change:transform,opacity,filter;
 filter:drop-shadow(0 0 0 rgba(255,255,255,0));
 outline-offset:8px;
}
#pppppp-dot-link::before{
 content:"";position:absolute;inset:-14px;border-radius:50%;z-index:-1;
 background:radial-gradient(circle,rgba(255,255,255,.25) 0%,rgba(255,255,255,.12) 46%,transparent 74%);
 opacity:0;transition:opacity 2.4s ease;
}
#pppppp-dot-link img{display:block;width:100%;height:100%;max-width:none;border-radius:50%}
#pppppp-dot-link.growing{opacity:1;pointer-events:auto}
#pppppp-dot-link.growing::before{opacity:1}
#pppppp-dot-link.complete{
 filter:drop-shadow(0 14px 17px rgba(0,0,0,.72)) drop-shadow(0 0 15px rgba(255,255,255,.40)) drop-shadow(0 0 34px rgba(255,255,255,.16));
 transition:filter 2.2s ease;
}
#pppppp-dot-link:hover{filter:drop-shadow(0 16px 20px rgba(0,0,0,.78)) drop-shadow(0 0 23px rgba(255,255,255,.65))}
#pppppp-dot-link:focus-visible{outline:3px solid #fff}
@media(prefers-reduced-motion:reduce){#pppppp-dot-link{will-change:auto}}

/* Ideas room */
@font-face{font-family:"DotCLICK Regular";src:url("assets/DotCLICK-Regular.otf") format("opentype");font-style:normal;font-weight:400;font-display:swap}
body.pppppp-ideas-page{background:#292929;color:#fff;font-family:"DotCLICK Regular",Arial,sans-serif}
#ideas-room{min-height:100dvh;background:#292929;color:#fff;padding:clamp(20px,4vw,64px);font-family:"DotCLICK Regular",Arial,sans-serif}
.ideas-hero{min-height:42vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.ideas-hero h1{font-weight:400;font-size:clamp(32px,6vw,96px);line-height:1.08;margin:0;letter-spacing:-.025em}
.ideas-hero .idea-heading{width:100%;display:flex;align-items:center;justify-content:center}
.ideas-hero h1{display:flex;flex-direction:column;align-items:center;gap:clamp(8px,1.5vw,20px)}
.ideas-hero .idea-line{display:block;position:relative;max-width:95vw}
.ideas-hero .idea-line:first-child{opacity:1;color:#fff;transform:none;transition:color 2.2s ease-in-out,opacity 2.2s ease-in-out}
.ideas-hero.ready .idea-line:first-child{animation:leader-dim 2.2s ease-in-out 1.8s forwards}
.ideas-hero .idea-line:nth-child(2){opacity:0;transform:translateY(12px)}
.ideas-hero.ready .idea-line:nth-child(2){animation:leader-in 2.6s ease-in-out 3.7s forwards}
@keyframes leader-dim{to{color:#929292;opacity:.65}}
@keyframes leader-in{to{opacity:1;transform:translateY(0)}}
.ideas-credit{font-family:"DotCLICK Regular",Arial,sans-serif;font-size:clamp(11px,1.15vw,15px);opacity:0;margin:18px 0 0;transition:opacity 2s ease}
.ideas-hero.ready .ideas-credit{transition-delay:5.1s;opacity:.65}
.ideas-content{max-width:1200px;margin:0 auto}
.idea-form{display:flex;flex-direction:column;gap:12px;max-width:680px;margin:0 auto 64px}
.idea-form label{font-size:clamp(18px,2vw,25px)}
.idea-form textarea{background:#343434;color:white;border:1px solid #999;border-radius:8px;padding:18px;font:400 19px/1.45 "DotCLICK Regular",Arial,sans-serif;resize:vertical;min-height:110px}
.idea-form button{align-self:flex-end;background:#f6f6f6;color:#222;border:0;border-radius:100px;padding:12px 28px;font:400 19px "DotCLICK Regular",Arial,sans-serif;cursor:pointer}
.idea-form button:disabled{opacity:.5;cursor:wait}
.idea-form .idea-message{min-height:1.5em;font-size:15px}
.idea-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:18px}
.idea-tile{background:#353535;border:1px solid #686868;border-radius:14px;min-height:180px;padding:24px;display:flex;align-items:flex-end;cursor:pointer;color:#fff;text-align:left;font:400 clamp(20px,2.1vw,31px)/1.2 "DotCLICK Regular",Arial,sans-serif;transition:background .35s ease,transform .35s ease,box-shadow .35s ease}
.idea-tile:hover,.idea-tile:focus-visible{background:#434343;transform:translateY(-3px);box-shadow:0 12px 32px #0005}
.idea-modal[hidden]{display:none}
.idea-modal{position:fixed;inset:0;z-index:100000;background:#101010d9;display:grid;place-items:center;padding:20px}
.idea-dialog{background:#292929;color:#fff;border:1px solid #777;border-radius:16px;padding:clamp(24px,4vw,48px);max-width:850px;width:100%;max-height:85dvh;overflow:auto;position:relative}
.idea-dialog h2{font:400 clamp(27px,4vw,52px) "DotCLICK Regular",Arial,sans-serif;margin:0 40px 22px 0}
.idea-dialog .idea-answer{font:400 19px/1.6 "DotCLICK Regular",Arial,sans-serif;overflow-wrap:anywhere}
.idea-answer p{margin:0 0 1em}.idea-answer a{color:#fff;text-decoration:underline}.idea-answer img{max-width:100%;height:auto}
.idea-close{position:absolute;top:12px;right:18px;background:none;border:0;color:#fff;font-size:38px;cursor:pointer}
.idea-back{position:absolute;top:20px;left:clamp(20px,4vw,64px);color:#fff;text-decoration:none;font-size:16px;opacity:.7}
@media(prefers-reduced-motion:reduce){.ideas-hero .idea-line:first-child{display:none}.ideas-hero .idea-line:nth-child(2){opacity:1;position:static;transform:none}.ideas-hero .ideas-credit{opacity:.65}}

/* Rich media in expanded ideas */
.idea-dialog .idea-image{display:block;max-width:min(100%,640px);width:100%;height:auto;margin:24px auto;border-radius:14px;box-shadow:0 22px 55px rgba(0,0,0,.42);animation:idea-art-arrive 1.2s cubic-bezier(.2,.7,.2,1) both}
.idea-dialog .idea-image[hidden],.idea-dialog .idea-resource[hidden]{display:none}
.idea-resource a{color:#fff;text-decoration:underline;text-underline-offset:4px}
@keyframes idea-art-arrive{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.idea-dialog .idea-image{animation:none}}

/* v2.0: separate heading and credit; avoid absolute text overlap. */
#ideas-room .ideas-hero{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;}
#ideas-room .ideas-hero .idea-heading{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:clamp(95px,13vw,175px);position:relative;}
#ideas-room .ideas-hero h1{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:1.25em;position:relative;}
#ideas-room .ideas-hero .idea-line{position:static!important;max-width:100%;width:100%;height:auto!important;overflow:visible!important;}
#ideas-room .ideas-hero .ideas-credit{position:relative!important;z-index:2;display:block;clear:both;margin:20px auto 0!important;padding:0 12px;line-height:1.5;max-width:90vw;color:#fff;text-align:center;font-size:clamp(11px,1.15vw,15px);}
@media(prefers-reduced-motion:reduce){#ideas-room .ideas-hero .idea-line:first-child{display:block;color:#929292;opacity:.65}#ideas-room .ideas-hero .idea-line:nth-child(2){opacity:1;transform:none}}

.idea-privacy{font-size:12px;line-height:1.5;opacity:.75;margin:12px 0 0}.idea-privacy a{color:inherit;text-decoration:underline}

/* Keep the suggestion field accessible without a visible duplicate heading. */
.idea-form label.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Structured, script-free visuals for suggestion responses */
.idea-visual{width:100%;margin:1.2rem auto;max-width:760px;text-align:center}
.idea-visual h3{font-size:1.1rem;font-weight:400;margin:.5rem 0 1rem}
.pp-diagram{position:relative;width:100%;height:330px;min-height:240px;border:1px solid #777;border-radius:12px;overflow:hidden;background:#252525;color:#fff}
.pp-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.pp-lines line{stroke:#bfc7d4;stroke-width:.55;stroke-dasharray:2 1}
.pp-node{position:absolute;transform:translate(-50%,-50%);padding:.6rem .8rem;border:1px solid #aeb8c7;border-radius:10px;background:#393939;color:white;max-width:27%;overflow-wrap:anywhere;font:inherit;font-size:clamp(.65rem,1.6vw,.95rem)}
.idea-visual-animation .pp-node{animation:pp-node-enter .6s ease both;animation-delay:calc(var(--order) * .5s)}
.idea-visual-animation .pp-lines line{animation:pp-flow 2.4s linear infinite}
@keyframes pp-node-enter{from{opacity:0;scale:.7}to{opacity:1;scale:1}}
@keyframes pp-flow{to{stroke-dashoffset:-12}}
.pp-chart{display:flex;gap:12px;align-items:end;justify-content:space-around;min-height:260px;padding:20px;background:#252525;border-radius:12px}
.pp-bar{height:220px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0;gap:8px;font-size:.75rem;color:white}
.pp-bar-fill{width:min(70%,70px);background:#aeb8c7;min-height:2px;border-radius:4px 4px 0 0}
.pp-bar span{overflow-wrap:anywhere;max-width:100%}
@media(prefers-reduced-motion:reduce){.idea-visual-animation .pp-node,.idea-visual-animation .pp-lines line{animation:none}}

/* v3.0: interactive exploration of safe, structured visuals. */
.pp-node{cursor:pointer;transition:box-shadow .25s ease,transform .25s ease,background .25s ease}
.pp-node:focus-visible{outline:3px solid #f2d777;outline-offset:3px}
.pp-node.is-selected{box-shadow:0 0 0 3px #f2d777,0 10px 30px rgba(0,0,0,.35);background:#505050;z-index:2}
.pp-visual-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0}
.pp-visual-controls button{font:inherit;border:1px solid #888;border-radius:999px;background:transparent;color:inherit;padding:8px 14px;cursor:pointer}
.pp-visual-controls button:hover{border-color:#fff}
.pp-visual-detail{min-height:1.5em;font-size:.9rem;opacity:.9}
.idea-visual-animation.is-paused .pp-node,.idea-visual-animation.is-paused .pp-lines line{animation-play-state:paused!important}
.idea-visual-animation .pp-node{animation:pp-node-enter .6s ease both,pp-node-float 4s ease-in-out calc(var(--order)*.4s) infinite alternate}
@keyframes pp-node-float{from{translate:0 -4px}to{translate:0 5px}}
@media(prefers-reduced-motion:reduce){.idea-visual-animation .pp-node{animation:none}}
