/* The Polyhistor homepage banner for pages outside the Polyhistor site (the Flick page).
   The .ph-new rules mirror the inline styles in /polyhistor/index.html, keep the two in step. */

@font-face{font-family:"PH Syne";font-style:normal;font-display:swap;font-weight:400 800;src:url(/polyhistor/_astro/syne-latin-ext-wght-normal.JjI8ZrW1.woff2) format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"PH Syne";font-style:normal;font-display:swap;font-weight:400 800;src:url(/polyhistor/_astro/syne-latin-wght-normal.BVsvWWA4.woff2) format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"PH Sans";font-style:normal;font-display:swap;font-weight:100 1000;src:url(/polyhistor/_astro/dm-sans-latin-ext-wght-normal.BOFOeGcA.woff2) format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"PH Sans";font-style:normal;font-display:swap;font-weight:100 1000;src:url(/polyhistor/_astro/dm-sans-latin-wght-normal.Xz1IZZA0.woff2) format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Flick Display";src:url(/polyhistor/flick/assets/fonts/bricolage.woff2) format("woff2");font-weight:200 800;font-stretch:75% 100%;font-display:swap}
@font-face{font-family:"Flick Mono";src:url(/polyhistor/flick/assets/fonts/jetbrains-mono.woff2) format("woff2");font-weight:100 800;font-display:swap}

.ph-embed{--font-display:"PH Syne",ui-sans-serif,system-ui,sans-serif;position:relative;z-index:1;font-family:"PH Sans",ui-sans-serif,system-ui,sans-serif;font-size:16px;line-height:1.5;font-variation-settings:normal;text-align:left}
:where(.ph-embed) :where(p,h2){margin:0}
:where(.ph-embed) a{text-decoration:none}
:where(.ph-embed) button{margin:0;padding:0;border:0;background:none;cursor:pointer}
.ph-embed .shell{width:100%;max-width:72rem;margin-inline:auto;padding-inline:1.25rem}
@media (min-width:40rem){.ph-embed .shell{padding-inline:2rem}}
.ph-embed .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.ph-embed .ph-btn{display:inline-flex;align-items:center;border:1px solid #f0f0f066;padding:.7rem 1.15rem;font-size:.9rem;letter-spacing:.04em;color:#f0f0f0;transition:background-color .25s ease,color .25s ease}
.ph-embed .ph-btn-quiet{border-color:transparent;padding-inline:.2rem}
.ph-embed .ph-btn-quiet:hover{background:transparent;color:#f0f0f0;text-decoration:underline;text-underline-offset:4px}

.ph-new{--ph-accent:#c8ff3d;--ph-ink:#0c0c10;--ph-new-bg:#0c0c10;--ph-glow:#c8ff3d29;--ph-glow2:#8b7bff21;position:relative;overflow:hidden;background:radial-gradient(36% 120% at 82% 42%,var(--ph-glow) 0%,transparent 70%),radial-gradient(34% 120% at 4% 100%,var(--ph-glow2) 0%,transparent 70%),radial-gradient(circle at 1px 1px,#ffffff0f 1px,transparent 1.6px) 0 0/28px 28px,var(--ph-new-bg);border-bottom:1px solid #f0f0f014}
.ph-embed .ph-new{padding-top:4.75rem}
.ph-new-inner{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"video copy actions";column-gap:1.6rem;align-items:center;padding-block:.6rem .8rem}
.ph-new-video{grid-area:video;position:relative;display:block;width:3.3rem;aspect-ratio:9/16;padding:0;border-radius:.65rem;overflow:hidden;background:#15151c;box-shadow:0 0 0 1.5px #34343f,0 0 28px var(--ph-glow),0 10px 24px #0009;transform:rotate(-3deg);cursor:pointer;transition:transform .35s cubic-bezier(.3,1.55,.5,1)}
.ph-new-video:hover{transform:rotate(0) scale(1.04)}
.ph-new-video video,.ph-new-video img{display:block;width:100%;height:100%;object-fit:cover}
.ph-new-play{position:absolute;right:.25rem;bottom:.25rem;display:grid;place-items:center;width:1.15rem;height:1.15rem;border-radius:999px;background:var(--ph-accent);color:var(--ph-ink)}
.ph-new-play svg{width:.45rem;height:.45rem}
.ph-new-copy{grid-area:copy;min-width:0}
.ph-new-kicker{font-size:.66rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--ph-accent)}
.ph-new-name{display:inline-flex;align-items:flex-start;margin-top:.25rem;font-family:var(--font-display,sans-serif);font-size:clamp(1.8rem,2.5vw,2.2rem);font-weight:700;line-height:.95;letter-spacing:-.03em;color:#f3f2f7}
.ph-new-tag{margin-top:.3rem;max-width:36rem;font-size:.92rem;line-height:1.4;color:#9a98a8}
.ph-new-tag b{font-weight:600;color:#f3f2f7}
.ph-new-actions{grid-area:actions;display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1.3rem}
.ph-new .ph-btn-quiet{font-size:.74rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#9a98a8}
.ph-new .ph-btn-quiet:hover{color:#f3f2f7}
.ph-new-cta{--n:7px;display:inline-flex;text-decoration:none;color:var(--ph-ink);filter:drop-shadow(0 12px 22px #0009);transition:transform .3s cubic-bezier(.3,1.55,.5,1)}
.ph-new-cta:hover{transform:translateY(-2px) rotate(-1.2deg)}
.ph-new-cta:focus-visible{outline:2px dashed var(--ph-accent);outline-offset:6px}
.ph-new-cta-main{display:grid;padding:.45rem 1.1rem .5rem .9rem;border-radius:.75rem 0 0 .75rem;background:var(--ph-accent);-webkit-mask:radial-gradient(circle at 100% 0,transparent var(--n),#000 calc(var(--n) + .5px)) top/100% 51% no-repeat,radial-gradient(circle at 100% 100%,transparent var(--n),#000 calc(var(--n) + .5px)) bottom/100% 51% no-repeat;mask:radial-gradient(circle at 100% 0,transparent var(--n),#000 calc(var(--n) + .5px)) top/100% 51% no-repeat,radial-gradient(circle at 100% 100%,transparent var(--n),#000 calc(var(--n) + .5px)) bottom/100% 51% no-repeat}
.ph-new-cta-main small{font-size:.56rem;font-weight:700;letter-spacing:.2em;opacity:.62}
.ph-new-cta-main strong{font-family:var(--font-display,sans-serif);font-size:1.08rem;font-weight:700;line-height:1.15}
.ph-new-cta-stub{width:2.2rem;border-left:2px dashed color-mix(in srgb,var(--ph-ink) 30%,transparent);border-radius:0 .75rem .75rem 0;background:repeating-linear-gradient(90deg,color-mix(in srgb,var(--ph-ink) 55%,transparent) 0 2px,transparent 2px 3px,color-mix(in srgb,var(--ph-ink) 55%,transparent) 3px 4px,transparent 4px 6px) center/1.2rem .7rem no-repeat,var(--ph-accent);transform-origin:0 100%;transition:transform .35s cubic-bezier(.3,1.55,.5,1);-webkit-mask:radial-gradient(circle at 0 0,transparent var(--n),#000 calc(var(--n) + .5px)) top/100% 51% no-repeat,radial-gradient(circle at 0 100%,transparent var(--n),#000 calc(var(--n) + .5px)) bottom/100% 51% no-repeat;mask:radial-gradient(circle at 0 0,transparent var(--n),#000 calc(var(--n) + .5px)) top/100% 51% no-repeat,radial-gradient(circle at 0 100%,transparent var(--n),#000 calc(var(--n) + .5px)) bottom/100% 51% no-repeat}
.ph-new-cta:hover .ph-new-cta-stub{transform:rotate(7deg) translateY(-2px)}
.ph-new--flick .ph-new-kicker,.ph-new--flick .ph-btn-quiet,.ph-new--flick .ph-new-cta-main small{font-family:"Flick Mono",ui-monospace,monospace;font-weight:700}
.ph-new--flick .ph-new-name{font-family:"Flick Display",var(--font-display,sans-serif);font-size:clamp(1.9rem,2.6vw,2.35rem);font-weight:800;font-variation-settings:"wdth" 82;line-height:.9;text-transform:lowercase}
.ph-new--flick .ph-new-name::after{content:"";width:.32em;height:.18em;margin:.06em 0 0 .08em;border-radius:1em;background:var(--ph-accent);transform:rotate(-29deg)}
.ph-new--flick .ph-new-cta-main strong{font-family:"Flick Display",sans-serif;font-size:1.18rem;font-weight:800;font-variation-settings:"wdth" 85;line-height:1.1}
.ph-new--giveaway .ph-new-kicker{color:#8a8a8a}
.ph-new--giveaway .ph-new-video{width:4.2rem;aspect-ratio:1;border-radius:50%;background:#0b0b0d;box-shadow:0 0 0 1.5px #2a2a32,0 0 30px #f0f0f01a,0 10px 24px #0009;transform:none}
.ph-new--giveaway .ph-new-video:hover{transform:scale(1.06)}
.ph-new--giveaway .ph-new-video img{object-fit:contain;animation:ph-gw-turn 24s linear infinite}
@keyframes ph-gw-turn{to{transform:rotate(360deg)}}

.ph-video-dialog{width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:transparent}
.ph-video-dialog::backdrop{background:#000000e0}
.ph-video-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;height:100%;padding:1rem}
.ph-video-frame{display:flex;flex-direction:column;align-items:flex-end;gap:.5rem}
.ph-video-dialog video{display:block;width:auto;height:auto;max-width:min(92vw,560px);max-height:calc(100svh - 5.5rem);border-radius:1rem;background:#000;box-shadow:0 0 0 1px #f0f0f02e}

@media (max-width:1060px){
  .ph-new-inner{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"video copy" "video actions";row-gap:.6rem}
}
@media (max-width:800px){
  .ph-embed .ph-new{padding-top:4.5rem}
  .ph-new-inner{grid-template-areas:"video copy" "actions actions";column-gap:1rem;row-gap:.7rem;padding-block:.5rem .85rem}
  .ph-new-video{width:2.9rem}
  .ph-new--giveaway .ph-new-video{width:3.4rem}
  .ph-new-name{font-size:clamp(1.8rem,8vw,2.2rem)}
  .ph-new-tag{font-size:.86rem}
  .ph-new-actions{margin-top:0;gap:.6rem 1rem}
  .ph-new .ph-btn-quiet{padding-inline:.1rem;font-size:.68rem;letter-spacing:.08em;white-space:nowrap}
  .ph-new-actions button[data-ph-watch]{display:none}
}
/* The banner sits under Flick's fixed nav, so the hero no longer needs room for it. */
.ph-embed + .hero{min-height:calc(100svh - 11rem);padding-top:64px}
@media (max-width:1100px){.ph-embed + .hero{min-height:0;padding-top:56px}}
@media (max-width:760px){.ph-embed + .hero{padding-top:44px}}

@media (prefers-reduced-motion:reduce){
  .ph-new-video,.ph-new-cta,.ph-new-cta-stub,.ph-embed .ph-btn{transition:none}
  .ph-new--giveaway .ph-new-video img{animation:none}
}
