/* Pendulum Hero — layout follows smartduke.studio/demo/pendulum; colors come from the block (CSS vars). */
@font-face{font-family:"MGPD Archivo";font-style:normal;font-weight:900;font-display:swap;src:url(archivo-900.woff2) format("woff2")}

.pd{--pd-font:"MGPD Archivo","Archivo",system-ui,sans-serif;isolation:isolate;background:var(--pd-bg,#ff6a3d);height:100svh;min-height:460px;color:var(--pd-paper,#fff8f1);display:block;position:relative;overflow:hidden;margin-block:0!important}
.pd-glow{z-index:1;pointer-events:none;background:radial-gradient(120% 80%,#ffffff24,#fff0 55%,#0000001a 100%);position:absolute;inset:0}
.pd-glow:after{content:"";opacity:.08;mix-blend-mode:multiply;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");position:absolute;inset:0}
.pd-wipe{z-index:0;background:var(--pd-bg2);display:none;position:absolute;inset:0}
.pd-wipe-on .pd-wipe{display:block}
.pd-lines{z-index:2;position:absolute;inset:0}
.pd .pd-line{text-align:center;font-family:var(--pd-font);letter-spacing:-.035em;font-weight:900;line-height:.9;font-size:calc(clamp(44px,9.6vw,168px)*var(--pd-shrink,1));will-change:clip-path;place-items:center;margin:0;padding:0 6% 12vh;display:grid;position:absolute;inset:0}
.pd-upper .pd-line{text-transform:uppercase}
.pd-line>span{max-width:11ch;display:block}
.pd .pd-q{color:var(--pd-ink)}
.pd .pd-a{color:var(--pd-paper)}
.pd:not(.pd-on) .pd-a{visibility:hidden}
.pd-wipe-on .pd-q{color:var(--pd-qink,var(--pd-paper))}
.pd-hit{z-index:3;position:absolute;inset:22% 8% 34%}
.pd-cord{z-index:4;pointer-events:none;width:100%;height:100%;position:absolute;inset:0;overflow:visible}
.pd-cord line{stroke:var(--pd-cord,#1d0802);stroke-width:2.4px;stroke-linecap:round}
.pd-cord circle{fill:var(--pd-cord,#1d0802)}
.pd-gl{z-index:5;pointer-events:none;width:100%;height:100%;display:block;position:absolute;inset:0}
.pd-grab{z-index:6;cursor:grab;touch-action:none;border-radius:30%;width:1px;height:1px;position:absolute;top:0;left:0}
.pd-grab:active{cursor:grabbing}
.pd-shadow{z-index:2;pointer-events:none;filter:blur(22px);will-change:transform;background:#280a005c;border-radius:30%;width:1px;height:1px;position:absolute;top:0;left:0}
.pd-sr{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden;margin:0}
.pd-still .pd-q{display:none}
.pd-still .pd-a{visibility:visible}
.pd-foot{z-index:6;text-align:center;justify-items:center;gap:10px;padding:0 20px clamp(22px,5vh,46px);display:grid;position:absolute;inset:auto 0 0}
.pd .tagline{letter-spacing:.16em;text-transform:uppercase;font-size:13px;font-weight:600;background:var(--pd-bg);color:var(--pd-paper);border-radius:999px;padding:6px 14px}
.pd .site-link{color:var(--pd-ink);letter-spacing:.04em;font-size:14px;font-weight:600;text-decoration:none}
.pd-wipe-on .site-link{background:var(--pd-bg);color:var(--pd-paper);border-radius:999px;padding:6px 14px}
@media (max-width:700px){
	.pd .pd-line{font-size:calc(clamp(38px,12vw,72px)*var(--pd-shrink,1));padding-bottom:20vh}
	.pd .tagline{letter-spacing:.1em;font-size:11px}
}

/* Editor: no animation there, so show the question and the answer split down the middle. */
.editor-styles-wrapper .pd{height:min(100svh,640px)}
.editor-styles-wrapper .pd .pd-q{clip-path:inset(0 50% 0 0)}
.editor-styles-wrapper .pd .pd-a{visibility:visible;clip-path:inset(0 0 0 50%)}

/* Phones: keep the footer above the theme's bottom tab bar. */
@media (max-width:781px){body.has-kreativa-tabbar .pd-foot{padding-bottom:calc(80px + env(safe-area-inset-bottom))}}

/* Editor: the preview is a picture only. Its links (the answer link, the bottom link) would otherwise open inside the editor canvas; clicks go to the block wrapper so it still gets selected. */
.editor-styles-wrapper .pd{pointer-events:none}
