/* How we think · the five ideas dealt as a hand of playing cards (#ideas).
   Card faces are card stock in both themes; the pictures are drawn in ink. */
.ideas-hand{ display:grid; grid-template-columns:1.15fr 1fr; gap:clamp(28px,4vw,64px); align-items:center; margin-top:34px; }
.hand{ position:relative; height:470px; }
.hcard{ position:absolute; left:50%; bottom:24px; width:228px; height:320px; margin-left:-114px; padding:0; border:0; border-radius:14px; cursor:pointer; overflow:hidden; text-align:left;
  background:#f6f1e6 radial-gradient(rgba(22,25,28,.05) 1px, transparent 1.4px) 0 0/5px 5px; color:#16191c;
  box-shadow:0 1px 0 rgba(255,255,255,.4) inset, 0 12px 28px rgba(0,0,0,.32);
  transform-origin:50% 130%; transform:rotate(0) translateY(0);
  transition:transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.hcard::before{ content:""; position:absolute; inset:8px; border:1px solid rgba(22,25,28,.22); border-radius:9px; pointer-events:none; }
.hcard:focus-visible{ outline:2px solid var(--signal); outline-offset:4px; }
.hcard.on{ box-shadow:0 22px 44px rgba(0,0,0,.42), 0 0 0 3px var(--signal); }
.hcard .idx{ position:absolute; top:14px; left:16px; font-family:var(--display); font-weight:600; font-size:28px; line-height:1; }
.hcard .idx.br{ top:auto; left:auto; bottom:14px; right:16px; transform:rotate(180deg); }
.hcard .art{ position:absolute; inset:52px 16px 70px; display:flex; align-items:center; }
.hcard .nm{ position:absolute; left:18px; right:48px; bottom:18px; font-family:var(--mono); font-size:11px; line-height:1.35; letter-spacing:.1em; text-transform:uppercase; }

.hand-copy .hcopy[hidden]{ display:none; }
.hand-copy .k{ font-family:var(--mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--signal-text); }
.hand-copy h3{ font-family:var(--display); font-weight:600; text-transform:uppercase; font-size:clamp(30px,3.4vw,46px); line-height:1.02; margin:12px 0 14px; }
.hand-copy p{ color:var(--paper-dim); font-size:18px; line-height:1.55; margin:0 0 26px; max-width:40ch; }
.hand-copy .hcopy:not([hidden]){ animation:hcIn .4s ease-out; }
@keyframes hcIn{ from{ opacity:0; transform:translateY(8px) } to{ opacity:1; transform:none } }
.hand-hint{ font-family:var(--mono); font-size:11px; letter-spacing:.1em; color:var(--paper-faint); text-transform:uppercase; margin:56px 0 0; text-align:center; }

/* the pictures, in ink on card stock */
.ill{ width:100%; height:auto; display:block; overflow:visible; }
.ill *{ transform-box:fill-box; }
.ill .stroke{ stroke:#16191c; stroke-width:2.5; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.ill .ln{ stroke:#f6f1e6; stroke-width:2.5; stroke-linecap:round; fill:none; }
.ill .sig{ fill:#EBC100; } .ill .s1{ fill:#A85320; } .ill .s2{ fill:#2E6FB0; } .ill .red{ fill:#c4473a; }
.ill .face{ fill:#fffdf7; stroke:#16191c; stroke-width:1.5; }
.ill .t1{ stroke:#2E6FB0; stroke-width:7; fill:none; stroke-linejoin:round; } .ill .t2{ stroke:#238054; stroke-width:7; fill:none; stroke-linejoin:round; }
.ill .stn{ fill:#fffdf7; stroke:#16191c; stroke-width:2.5; } .ill .ring{ fill:none; stroke:#c4473a; stroke-width:3; }
.ill .bang{ stroke:#15110a; stroke-width:2.5; stroke-linecap:round; }
.ill .lot{ fill:#e7dfcd; stroke:#16191c; stroke-width:1.5; stroke-dasharray:5 4; }
@keyframes slideIn{ 0%,12%{ transform:translateX(-160px); opacity:0 } 32%,100%{ transform:none; opacity:1 } }
@keyframes drop{ 0%,40%{ transform:translateY(-90px); opacity:0 } 60%,100%{ transform:none; opacity:1 } }
@keyframes flip{ 0%,35%{ transform:rotateY(0) } 50%{ transform:rotateY(90deg) } 65%,100%{ transform:rotateY(0) } }
@keyframes deal{ 0%,20%{ transform:translate(-40px,8px) rotate(-12deg) } 45%,100%{ transform:translate(0,0) rotate(6deg) } }
@keyframes run{ 0%{ transform:translateX(0) } 55%,100%{ transform:translateX(-118px) } }
@keyframes alert{ 0%,52%{ opacity:0; transform:scale(.4) } 58%{ opacity:1; transform:scale(1.25) } 64%,100%{ opacity:1; transform:scale(1) } }
@keyframes grow{ 0%{ transform:scaleY(0) } 100%{ transform:scaleY(1) } }
@keyframes blink{ 0%,49%{ opacity:1 } 50%,100%{ opacity:.25 } }
/* the pictures only move on the lifted card */
.hcard.on .a-slide{ animation:slideIn 4.5s ease-out infinite; }
.hcard.on .a-drop{ animation:drop 4.5s ease-out infinite; }
.hcard.on .a-flip{ animation:flip 3.2s ease-in-out infinite; transform-origin:center; }
.hcard.on .a-deal{ animation:deal 3.2s ease-out infinite alternate; transform-origin:center; }
.hcard.on .a-run{ animation:run 3.6s cubic-bezier(.3,.1,.6,1) infinite; }
.hcard.on .a-alert{ animation:alert 3.6s ease-out infinite; transform-origin:center; }
.hcard.on .a-seg{ transform-origin:bottom; animation:grow .5s ease-out both; }
.hcard.on .a-blink{ animation:blink 1.2s steps(1) infinite; }
.hcard:not(.on) .a-alert{ opacity:0; }

@media(max-width:860px){
  .ideas-hand{ grid-template-columns:1fr; }
  .hand{ height:300px; overflow:hidden; }
  .hand-hint{ margin-top:36px; }
  .hcard{ width:156px; height:218px; margin-left:-78px; bottom:12px; border-radius:11px; }
  .hcard .idx{ font-size:21px; top:10px; left:12px; } .hcard .idx.br{ bottom:10px; right:12px; }
  .hcard .art{ inset:36px 10px 46px; } .hcard .nm{ font-size:9px; left:12px; bottom:12px; right:34px; }
}
@media(prefers-reduced-motion:reduce){ .hcard{ transition:none; } .ill *{ animation:none !important; } .hand-copy .hcopy{ animation:none !important; } }
