/* =====================================================================
   LATEST WORK — client websites, shown off (testimonials page)
   The site in a browser that scrolls itself, the site's magazine page
   on a phone, and the printed magazine behind: magazine → website → phone.
   Scoped to .sc. Depth + parallax: showcase.js (GSAP).
   ===================================================================== */
.sc{ max-width:1220px; margin:0 auto; padding:clamp(.5rem,2vh,1.5rem) var(--pad) clamp(2.5rem,6vh,4.5rem); }

.sc__card{ position:relative; overflow:hidden; border-radius:14px;
  display:grid; grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr); grid-template-areas:"head stage" "body stage";
  column-gap:clamp(2rem,4vw,4rem); row-gap:clamp(1.2rem,2.4vw,1.8rem);
  padding:clamp(2.4rem,4.6vw,4rem) clamp(1.4rem,4vw,3.8rem) clamp(2.4rem,4.6vw,4rem) clamp(1.4rem,4vw,3.8rem);
  border:1px solid rgba(184,146,58,.5);
  background:
    radial-gradient(60% 75% at 80% 45%, rgba(230,200,127,.13) 0%, rgba(230,200,127,0) 65%),
    radial-gradient(60% 60% at 0% 100%, rgba(26,48,80,.55) 0%, rgba(26,48,80,0) 70%),
    linear-gradient(165deg, rgba(240,235,224,.07) 0%, rgba(240,235,224,.015) 60%);
  box-shadow:0 60px 110px -60px rgba(0,0,0,.95); }
.sc__card::before{ content:""; position:absolute; inset:0 0 auto 0; height:2px; z-index:2;
  background:linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-bright) 50%, var(--gold) 80%, transparent); }
.sc__card > *:not(.sc__fx){ position:relative; z-index:1; }

/* drifting gold light, as on the booking notice */
.sc__fx{ position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.sc__fx i{ position:absolute; border-radius:50%; filter:blur(46px); opacity:.16;
  background:radial-gradient(circle, rgba(230,200,127,.6), rgba(184,146,58,0) 70%); }
.sc__fx i:nth-child(1){ width:420px; height:420px; right:-90px; top:-140px; animation:bn-drift2 18s ease-in-out infinite; }
.sc__fx i:nth-child(2){ width:320px; height:320px; left:-100px; bottom:-140px; opacity:.1; animation:bn-drift1 15s ease-in-out infinite; }
.sc__fx b{ position:absolute; top:0; bottom:0; width:40%; left:-50%;
  background:linear-gradient(100deg, transparent, rgba(240,235,224,.014), transparent); animation:bn-sweep 8s ease-in-out infinite; }

/* ---------- copy ---------- */
.sc__head{ grid-area:head; align-self:end; }
.sc__body{ grid-area:body; align-self:start; }
.sc__badge{ display:inline-flex; align-items:center; gap:.65rem; margin-bottom:clamp(1.1rem,2vw,1.5rem);
  font-family:var(--ui); font-weight:500; text-transform:uppercase; letter-spacing:.22em; font-size:.62rem; color:var(--gold-bright);
  padding:.6rem 1rem; border:1px solid rgba(230,200,127,.5); border-radius:999px; background:rgba(230,200,127,.09);
  box-shadow:0 0 30px -8px rgba(230,200,127,.45); }
.sc__dot{ width:7px; height:7px; border-radius:50%; background:#7fd08a; box-shadow:0 0 0 0 rgba(127,208,138,.55); animation:sc-live 2.2s ease-out infinite; }
.sc__dot--soon{ background:var(--gold-bright); animation-name:sc-soon; }   /* not live yet: gold, not the green live light */
@keyframes sc-soon{ 0%{ box-shadow:0 0 0 0 rgba(230,200,127,.55); } 100%{ box-shadow:0 0 0 9px rgba(230,200,127,0); } }
.sc__title{ font-family:var(--display); font-weight:500; letter-spacing:-.01em; line-height:1.02; font-size:clamp(2.1rem,4.4vw,3.6rem); color:var(--ivory); }
.sc__title em{ font-style:italic; color:var(--gold-bright); white-space:nowrap; }
.sc__lede{ font-family:var(--serif); font-size:clamp(1.15rem,1.6vw,1.38rem); line-height:1.5; color:var(--ivory-dim); max-width:34em; }
.sc__feats{ list-style:none; margin:clamp(1.2rem,2.2vw,1.6rem) 0 0; padding:0; display:grid; gap:.1rem; }
.sc__feats li{ position:relative; padding:.62rem 0 .62rem 1.9rem; border-top:1px solid var(--line);
  font-family:var(--ui); font-size:.8rem; letter-spacing:.04em; color:var(--ivory); }
.sc__feats li:last-child{ border-bottom:1px solid var(--line); }
.sc__feats li::before{ content:""; position:absolute; left:.15rem; top:50%; width:.62rem; height:.34rem; margin-top:-.26rem;
  border-left:1.5px solid var(--gold-bright); border-bottom:1.5px solid var(--gold-bright); transform:rotate(-45deg); }
.sc__ctas{ display:flex; flex-wrap:wrap; align-items:center; gap:1rem 1.8rem; margin-top:clamp(1.6rem,3vw,2.2rem); }
.sc__ctas .beat__cta{ margin-top:0; }
.sc__more{ font-family:var(--ui); text-transform:uppercase; letter-spacing:.18em; font-size:.66rem; color:var(--gold-bright);
  padding:.4rem 0; border-bottom:1px solid rgba(230,200,127,.4); transition:color .4s var(--ease), border-color .4s var(--ease), gap .4s; }
.sc__more span{ display:inline-block; transition:transform .4s var(--ease-out); }
.sc__more:hover{ color:#fff; border-color:#fff; }
.sc__more:hover span{ transform:translateX(5px); }

/* ---------- the stage: magazine (back) → browser → phone (front) ---------- */
.sc__stage{ grid-area:stage; align-self:center; position:relative; display:block; aspect-ratio:1.16/1; perspective:1700px; margin-right:calc(-1 * clamp(.4rem,1.6vw,1.6rem));
  --py-mag:0px; --py-phone:0px; outline:none; }
.sc__stage:focus-visible{ outline:2px solid var(--gold-bright); outline-offset:10px; border-radius:12px; }
.sc__rig{ position:absolute; inset:0; display:block; transform-style:preserve-3d; will-change:transform; }
.sc__rig > span{ position:absolute; display:block; }

/* the printed edition, with real page thickness */
.sc__mag{ left:0; top:0; width:35%; z-index:1;
  transform:translate3d(0, var(--py-mag), -70px) rotate(-7deg); transition:transform 1.1s var(--ease-out); }
.sc__mag img{ display:block; width:100%; height:auto; border-radius:2px 4px 4px 2px;
  box-shadow:1px 1px 0 #f7f2e7, 2px 2px 0 #e6ddca, 3px 3px 0 #f5efe3, 4px 4px 0 #ddd3be, 5px 5px 0 #f1eadc, 6px 7px 0 #d3c8b1,
             26px 36px 60px -16px rgba(0,0,0,.7); }
.sc__mag::after{ content:""; position:absolute; inset:0; border-radius:2px 4px 4px 2px; pointer-events:none;
  background:linear-gradient(90deg, rgba(0,0,0,.22) 0%, rgba(255,255,255,.12) 2.4%, rgba(255,255,255,0) 6%), linear-gradient(160deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 38%); }
.sc__seal{ position:absolute; right:-9%; top:-6%; width:31%; aspect-ratio:1; border-radius:50%; z-index:2;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  font-family:var(--ui); text-transform:uppercase; letter-spacing:.14em; font-size:clamp(.38rem,.55vw,.52rem); line-height:1.25; color:var(--navy-dk);
  background:radial-gradient(circle at 35% 30%, #f7e3a6, var(--gold-bright) 45%, var(--gold) 100%);
  box-shadow:0 0 0 3px rgba(11,30,58,.18) inset, 0 10px 24px -8px rgba(0,0,0,.6); transform:rotate(12deg); }
.sc__seal b{ font-family:var(--display); font-style:italic; font-weight:600; text-transform:none; letter-spacing:0; font-size:1.55em; margin:.1em 0; }

/* the website, scrolling itself */
.sc__browser{ left:7%; top:20%; width:88%; z-index:2; border-radius:12px; overflow:hidden; background:#dfe9f1;
  box-shadow:0 0 0 1px rgba(240,235,224,.12), 0 50px 90px -40px rgba(0,0,0,.85), 0 18px 40px -22px rgba(0,0,0,.6);
  transform:translateZ(0); transition:box-shadow .6s var(--ease-out); }
.sc__bar{ display:flex !important; align-items:center; gap:.42rem; height:clamp(24px,2.4vw,32px); padding:0 .8rem; background:#f1ede4; border-bottom:1px solid rgba(20,38,59,.08); }
.sc__bar > i{ width:8px; height:8px; border-radius:50%; flex:none; }
.sc__bar > i:nth-child(1){ background:#e3a497; } .sc__bar > i:nth-child(2){ background:#e7cf8e; } .sc__bar > i:nth-child(3){ background:#a9c79a; }
.sc__url{ display:inline-flex; align-items:center; gap:.4rem; margin:0 auto; padding:.28rem 1rem; border-radius:999px; background:#fff;
  font-family:var(--ui); font-size:clamp(.5rem,.62vw,.62rem); letter-spacing:.03em; color:#5d6a78; white-space:nowrap; }
.sc__url svg{ width:.62rem; height:.74rem; color:#3f8a4e; }
.sc__go{ flex:none; font-family:var(--ui); font-weight:500; text-transform:uppercase; letter-spacing:.14em; font-size:clamp(.44rem,.56vw,.56rem);
  color:var(--navy-dk); background:linear-gradient(180deg, var(--gold-bright), var(--gold)); padding:.32rem .65rem; border-radius:4px;
  transition:transform .4s var(--ease-out), box-shadow .4s; }
.sc__screen{ position:relative; display:block; aspect-ratio:16/10; overflow:hidden; }
.sc__shot{ display:block; width:100%; height:auto; will-change:transform; animation:sc-scroll 46s cubic-bezier(.45,0,.55,1) infinite; }

/* its magazine page, on a phone */
.sc__phone{ right:-2%; bottom:-2%; width:26%; z-index:3; container-type:inline-size;
  padding:.65%; border-radius:clamp(14px,2.6vw,30px); background:#0f1a28;
  box-shadow:0 0 0 1px rgba(255,255,255,.08) inset, 0 0 0 1px rgba(0,0,0,.4), 0 44px 70px -26px rgba(0,0,0,.9);
  transform:translate3d(0, var(--py-phone), 90px) rotate(4deg); transition:transform 1.1s var(--ease-out); }
.sc__phone-screen{ position:relative; display:block; aspect-ratio:390/760; overflow:hidden; border-radius:10.5cqw; background:#dfe9f1; }
.sc__phone-shot{ display:block; width:100%; height:auto; will-change:transform; animation:sc-phone 17s cubic-bezier(.45,0,.55,1) infinite 1.5s; }
.sc__notch{ position:absolute; top:5.2cqw; left:50%; width:30%; height:7.4cqw; transform:translateX(-50%); border-radius:20px; background:#0f1a28; z-index:2; }

/* hover: the whole scene leans in and the live-site tag lifts */
.sc__stage:hover .sc__browser{ box-shadow:0 0 0 1px rgba(230,200,127,.55), 0 60px 100px -40px rgba(0,0,0,.9), 0 0 60px -10px rgba(230,200,127,.25); }
.sc__stage:hover .sc__go{ transform:translateY(-1px); box-shadow:0 6px 18px -6px rgba(230,200,127,.8); }
.sc__stage:hover .sc__mag{ transform:translate3d(-2%, var(--py-mag), -70px) rotate(-9deg); }
.sc__stage:hover .sc__phone{ transform:translate3d(2%, var(--py-phone), 90px) rotate(2deg); }

@keyframes sc-scroll{        /* hold on the hero, glide down the whole page, rest, return */
  0%, 7%   { transform:translateY(0); }
  70%, 77% { transform:translateY(-89.8%); }
  100%     { transform:translateY(0); }
}
@keyframes sc-phone{          /* the heading, then down to the magazine cover */
  0%, 16%  { transform:translateY(0); }
  36%, 82% { transform:translateY(-45%); }
  100%     { transform:translateY(0); }
}
/* Beadlam's page is longer than Hartington's: its own travel and pace */
.sc__shot--beadlam{ animation-name:sc-scroll-beadlam; animation-duration:52s; }
@keyframes sc-scroll-beadlam{
  0%, 7%   { transform:translateY(0); }
  70%, 77% { transform:translateY(-91.1%); }
  100%     { transform:translateY(0); }
}
@keyframes sc-live{ 0%{ box-shadow:0 0 0 0 rgba(127,208,138,.55); } 100%{ box-shadow:0 0 0 9px rgba(127,208,138,0); } }

/* ---------- tablet & phone: title, scene, then the story ---------- */
@media (max-width:900px){
  .sc__card{ grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "stage" "body"; row-gap:clamp(1.6rem,5vw,2.4rem); }
  .sc__stage{ width:100%; max-width:640px; justify-self:center; margin:.4rem 0 1rem; }
}
@media (max-width:560px){
  .sc__card{ padding:2.2rem 1.2rem 2.4rem; }
  .sc__stage{ aspect-ratio:1.08/1; }
  .sc__mag{ width:38%; }
  .sc__browser{ left:4%; top:24%; width:90%; border-radius:9px; }
  .sc__bar > i{ width:6px; height:6px; }
  .sc__go{ display:none; }
  .sc__phone{ width:31%; right:-2%; bottom:-4%; padding:.8%; }
  .sc__seal{ width:34%; }
  .sc__ctas{ flex-direction:column; align-items:flex-start; }
}

@media (prefers-reduced-motion:reduce){
  .sc__shot, .sc__phone-shot, .sc__dot, .sc__fx i, .sc__fx b{ animation:none; }
  .sc__mag, .sc__phone{ transition:none; }
}
