/* Arkanum Labs 1.8 - hero
   po lewej nagłówek i akcja, po prawej biurko: zapytanie klienta, odpowiedź
   agenta i faktura, którą agent zaksięgował. przykładowe dane, podpisane. */

.hero{padding:calc(72px + var(--space-3xl)) 0 var(--space-2xl)}
.hero-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:var(--space-2xl);align-items:center}
.cta-row{display:flex;flex-wrap:wrap;gap:var(--space-sm);margin-top:var(--space-xl)}
.hero-copy .lead{margin-top:var(--space-lg)}
.hero-niche{margin-top:var(--space-lg);font-size:var(--text-sm)}
.hero-niche a{color:var(--color-ink-2);text-decoration:underline;text-decoration-color:var(--color-accent-2);text-underline-offset:.3em}
.hero-niche a:hover{color:var(--color-ink)}

/* the desk: felt under a daylight from the left */
.desk{position:relative;margin:0}
.desk-objects{position:relative;height:clamp(420px,40vw,560px);border-radius:var(--radius-card);
  background-color:var(--color-desk);background-image:radial-gradient(90% 120% at 0% 30%,var(--color-desk-lit),transparent 62%),var(--tex-desk)}
.desk figcaption{margin-top:var(--space-sm);font-size:var(--text-sm);color:var(--color-muted)}
.desk-objects>*{position:absolute;transform:rotate(var(--r,0deg))}
.invoice{--r:2.5deg;z-index:3;right:5%;top:18%;width:52%;padding:var(--space-lg) var(--space-lg) var(--space-2xl)}
.inv-h{display:flex;justify-content:space-between;align-items:baseline;font-size:1.05rem;color:var(--color-print)}
.inv-from{margin-top:var(--space-2xs);font-size:var(--text-sm);color:var(--color-muted)}
.inv-row{display:flex;justify-content:space-between;gap:var(--space-sm);padding:var(--space-xs) 0;font-size:var(--text-sm);border-top:1px solid var(--color-rule)}
.inv-row:first-of-type{margin-top:var(--space-lg)}
.inv-total{font-weight:600;border-top:1px solid var(--color-print)}
.invoice .pressed{position:absolute;right:var(--space-lg);bottom:var(--space-md);font-size:1.5rem}
.card{padding:var(--space-md) var(--space-lg);font-size:var(--text-sm);line-height:1.5}
.card-k{font-weight:600;color:var(--color-print);margin-bottom:var(--space-2xs)}
.card-s{margin-top:var(--space-xs);font-size:var(--text-xs);color:var(--color-muted)}
.enquiry{--r:-3deg;left:4%;top:7%;width:42%;z-index:2}
.reply{--r:1.5deg;left:5%;bottom:6%;width:42%;z-index:2}

/* the job plays once when the desk comes into view; without script, or with
   reduced motion, it is simply finished */
.js .desk.will-play .enquiry,.js .desk.will-play .reply,.js .desk.will-play .invoice .pressed{opacity:0}
.js .desk.play .enquiry{animation:deskIn .7s var(--ease-out) .2s both}
.js .desk.play .reply{animation:deskIn .7s var(--ease-out) 1.3s both}
.js .desk.play .invoice .pressed{animation:press .45s var(--ease-out) 2.4s both}
@keyframes deskIn{from{opacity:0;transform:translateY(-16px) rotate(var(--r,0deg))}to{opacity:1;transform:rotate(var(--r,0deg))}}
@keyframes press{from{opacity:0;transform:scale(1.35) rotate(-5deg)}to{opacity:1;transform:scale(1) rotate(-5deg)}}
@media (prefers-reduced-motion:reduce){
  .js .desk.will-play .enquiry,.js .desk.will-play .reply,.js .desk.will-play .invoice .pressed{opacity:1;animation:none}
}

/* three numbers the owners stand behind, parted by hairlines */
.figs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:calc(var(--space-3xl) + var(--space-xl));border-top:1px solid var(--color-rule)}
.figs>div{padding:var(--space-lg) var(--space-lg) 0;border-left:1px solid var(--color-rule)}
.figs>div:first-child{padding-left:0;border-left:0}
.figs dt{font-size:var(--text-display-s);font-weight:600;letter-spacing:-.04em;line-height:1;color:var(--color-ink);font-variant-numeric:tabular-nums}
.figs dd{margin-top:var(--space-sm);font-size:1rem;color:var(--color-muted);max-width:32ch}

@media (max-width:60rem){
  .hero{padding:calc(72px + var(--space-2xl)) 0 var(--space-xl)}
  .hero-grid{grid-template-columns:minmax(0,1fr);gap:var(--space-2xl)}
  .figs{grid-template-columns:minmax(0,1fr)}
  .figs>div{padding:var(--space-md) 0;border-left:0;border-top:1px solid var(--color-rule)}
  .figs>div:first-child{border-top:0}
}
@media (max-width:40rem){
  .cta-row .btn{width:100%}
  .desk-objects{height:520px}
  .invoice{right:3%;top:17%;width:64%}
  .enquiry{left:3%;top:4%;width:56%}
  .reply{left:3%;bottom:3%;width:56%}
}
