/* Contact page only (contact.html). Loaded after styles.css, project.css and about.css.
   The business card is a PLACEHOLDER of his card (same as the homepage loader) until the real card design is supplied.
   TUNE: --tilt is the card's resting angle; card size is set on .ct-stage. All motion is off with reduced motion. */
.ct-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,46%);gap:clamp(40px,6vw,104px);align-items:center;min-height:calc(100vh - 170px);padding-top:clamp(16px,3vw,40px);padding-bottom:clamp(48px,6vw,96px)}
.ct-hero h1{font-size:clamp(56px,8.6vw,138px);line-height:.9;letter-spacing:-.035em;color:#1c1c1c;margin:0 0 clamp(40px,4.6vw,72px) -.04em}
.ct-list{display:flex;flex-direction:column;gap:clamp(26px,2.6vw,38px)}
.ct-item{display:flex;flex-direction:column;gap:8px}
.ct-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 18px}
.ct-big{font-family:"Inter Display","Inter",sans-serif;font-weight:700;font-size:clamp(24px,2.9vw,46px);letter-spacing:-.025em;line-height:1.1;color:#1c1c1c;text-decoration:none;background:linear-gradient(currentColor,currentColor) 0 100%/0 2px no-repeat;padding-bottom:4px;transition:color .3s ease,background-size .45s var(--ease)}
.ct-big:hover,.ct-big:focus-visible{color:var(--orange);background-size:100% 2px}
.ct-big .contact-ext{font-size:.6em;margin-left:.25em;vertical-align:.2em}
.ct-big:hover .contact-ext{transform:translate(3px,-3px)}

/* Card */
.ct-stage{perspective:1800px;display:flex;flex-direction:column;align-items:center;gap:clamp(40px,4.4vw,64px)}
.ct-card{--tilt:-7deg;position:relative;display:block;width:min(100%,520px);aspect-ratio:1063/650;padding:0;border:0;background:none;cursor:pointer;font-size:clamp(11px,1.15vw,17px);transform:rotate(var(--tilt));transition:transform .6s var(--ease)}
.ct-card:hover{transform:rotate(calc(var(--tilt) * .6)) translateY(-6px)}
.ct-in{position:absolute;inset:0;transform-style:preserve-3d;transition:transform 1s cubic-bezier(.3,1.25,.5,1)}
.ct-card.flip .ct-in{transform:rotateY(180deg)}
.ct-face{position:absolute;inset:0;background:#1e1e1e center/100% 100% no-repeat;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;font-family:"Montserrat","Inter",sans-serif;box-shadow:0 2.6em 4.4em -1.8em rgba(0,0,0,.45),0 .5em 1.2em -.6em rgba(0,0,0,.25)}
.ct-front{background-image:url(media/card/cfdesigns_card_front.png)}
.ct-front::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.09) 45%,transparent 60%);background-size:250% 100%;background-position:100% 0;transition:background-position 1.1s ease}
.ct-card:hover .ct-front::after{background-position:0 0}
.ct-back{transform:rotateY(180deg);background-image:url(media/card/cfdesigns_card_back.png)}
.cs .ct-hint{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--grey);margin:0}

/* Opening: text rises, card swings in from the right and lands at its angle */
.ab-anim .ct-text>*{animation:abUp 1s var(--ease) both}
.ab-anim .ct-text>:nth-child(2){animation-delay:.1s}
.ab-anim .ct-text>:nth-child(3){animation-delay:.25s}
.ab-anim .ct-card{animation:ctIn 1.4s cubic-bezier(.2,.85,.25,1.04) .3s backwards}
.ab-anim .ct-hint{animation:abUp .8s var(--ease) 1.3s both}
@keyframes ctIn{from{opacity:0;transform:translate(18%,10%) rotate(14deg) rotateY(-70deg) scale(.9)}60%{opacity:1}to{transform:rotate(var(--tilt))}}

.ct-page .ab-work{margin-top:0}
.ct-foot{justify-content:flex-end}
@media (max-width:860px){
  .ct-hero{grid-template-columns:1fr;min-height:0;gap:56px}
  .ct-stage{order:-1;padding:8px 6px 0}
  .ct-card{width:min(100%,420px);font-size:clamp(10px,3.2vw,15px)}
}
@media (prefers-reduced-motion:reduce){.ct-card,.ct-in,.ct-front::after,.ct-big{transition:none}.ct-card:hover{transform:rotate(var(--tilt))}}
