/* The Psychology of Excellence — 3D book component (supplied implementation; assets externalised) */
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:400;font-display:block;src:url(cormorant-400.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:500;font-display:block;src:url(cormorant-500.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:600;font-display:block;src:url(cormorant-600.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:400;font-display:block;src:url(cormorant-400i.woff2) format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:500;font-display:block;src:url(cormorant-500i.woff2) format("woff2")}


/* ===== 3D BOOK COMPONENT ===== */
.poe-stage{
  position:relative;width:100%;
  aspect-ratio:16/10;max-height:100svh;min-height:420px;
  overflow:hidden;isolation:isolate;contain:layout paint;
  background:radial-gradient(120% 90% at 50% 45%,#0b3327 0%,#05190f 55%,#020b07 100%);
  -webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none
}
@media (max-width:760px),(max-aspect-ratio:1/1){.poe-stage{aspect-ratio:4/5}}
.poe-stage canvas{position:absolute;inset:0;width:100%!important;height:100%!important;display:block;
  touch-action:pan-y;outline:none;opacity:0;transition:opacity 1.6s ease}
.poe-stage.is-ready canvas{opacity:1}
.poe-stage canvas:focus-visible{box-shadow:inset 0 0 0 1px rgba(214,178,104,.45)}

/* Fallback when WebGL is unavailable */
.poe-fallback{position:absolute;inset:0;display:none;place-items:center;perspective:1600px}
.poe-stage.is-fallback .poe-fallback{display:grid}
.poe-stage.is-fallback canvas{display:none}
.poe-fallback figure{margin:0;position:relative;height:72%;aspect-ratio:2/3;transform:rotateY(14deg);transform-style:preserve-3d;
  animation:poeFloat 7s ease-in-out infinite}
.poe-fallback img{width:100%;height:100%;object-fit:cover;border-radius:2px 4px 4px 2px;
  box-shadow:-10px 0 0 #0a2a20,0 40px 60px -20px rgba(0,0,0,.75),inset 0 0 0 1px rgba(255,255,255,.04)}
.poe-fallback::after{content:"";position:absolute;left:50%;bottom:6%;width:min(62%,520px);height:9%;transform:translateX(-50%);
  border-radius:50%;background:radial-gradient(closest-side,#1d5a47,#0c3227 70%,transparent);
  box-shadow:0 6px 0 -2px #b68d43,0 10px 22px rgba(201,160,80,.25);z-index:-1}
@keyframes poeFloat{50%{transform:rotateY(10deg) translateY(-1.5%)}}
@media (prefers-reduced-motion:reduce){.poe-fallback figure{animation:none}}
