/* Cup of English — motion layer v1: progress bar, cursor, hero type, play orb, media step cards, statement, flip cards,
   magnetic + shine buttons, laptop lid, image reveals. Everything is transform/opacity; all off with reduced motion. */

/* scroll progress (gradient, rounded) */
.sprog{position:fixed;left:0;right:0;top:0;height:4px;z-index:80;pointer-events:none}
.sprog i{display:block;height:100%;width:100%;transform-origin:0 50%;transform:scaleX(0);border-radius:0 4px 4px 0;
  background:linear-gradient(90deg,#b0473d,#e08a5f 45%,#2d3c60);box-shadow:0 0 12px rgba(176,71,61,.45)}

/* cursor (desktop with a mouse only) */
.cur{position:fixed;left:0;top:0;z-index:90;pointer-events:none;display:none}
.cur i{position:fixed;left:0;top:0;border-radius:50%;transform:translate3d(-100px,-100px,0)}
.cur-d{width:8px;height:8px;margin:-4px 0 0 -4px;background:var(--red)}
.cur-r{width:38px;height:38px;margin:-19px 0 0 -19px;border:1.5px solid rgba(31,43,71,.35);transition:width .35s cubic-bezier(.16,1,.3,1),height .35s cubic-bezier(.16,1,.3,1),margin .35s cubic-bezier(.16,1,.3,1),background .3s,border-color .3s}
.cur.big .cur-r{width:70px;height:70px;margin:-35px 0 0 -35px;background:rgba(176,71,61,.08);border-color:rgba(176,71,61,.5)}
@media (hover:hover) and (pointer:fine){.js .cur{display:block}}

/* hero headline: letters arrive from blur; "for you." carries a slow warm shimmer */
.hero h1 .ch{display:inline-block;opacity:0;filter:blur(10px);transform:translateY(.35em) rotate(4deg);transition:opacity .8s cubic-bezier(.16,1,.3,1),filter .8s cubic-bezier(.16,1,.3,1),transform .9s cubic-bezier(.16,1,.3,1)}
.hero h1.go .ch{opacity:1;filter:none;transform:none}
.hero h1 em{background:linear-gradient(100deg,#b0473d 20%,#e3956c 40%,#b0473d 60%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:fx-shim 6s ease-in-out infinite;padding:.04em .16em .24em .14em;margin:-.04em -.16em -.24em -.14em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.hero h1 em span{display:inline}
@keyframes fx-shim{0%,100%{background-position:100% 0}50%{background-position:0 0}}

/* play orb: just the icon, alive */
.ts-play{width:96px;height:96px;background:radial-gradient(circle at 35% 30%,#fff,rgba(255,253,249,.9) 60%,rgba(243,234,217,.95));box-shadow:0 22px 50px -18px rgba(31,43,71,.6),inset 0 0 0 1px rgba(255,255,255,.8)}
.tp-ic{width:34px;height:34px;fill:var(--red);margin-left:5px;transition:transform .45s cubic-bezier(.16,1,.3,1);filter:drop-shadow(0 4px 8px rgba(176,71,61,.35))}
.tp-orbit{position:absolute;inset:-10px;border-radius:50%;background:conic-gradient(from 0deg,rgba(176,71,61,0),rgba(176,71,61,.85),rgba(224,138,95,.6),rgba(176,71,61,0) 70%);
  -webkit-mask:radial-gradient(circle,transparent 52px,#000 53px,#000 56px,transparent 57px);mask:radial-gradient(circle,transparent 52px,#000 53px,#000 56px,transparent 57px);animation:fx-spin 3.2s linear infinite}
.ts-play:hover .tp-ic{transform:scale(1.18)}
.ts-play:hover .tp-orbit{animation-duration:1.2s}
@keyframes fx-spin{to{transform:rotate(360deg)}}
@media (max-width:560px){.ts-play{width:76px;height:76px}.tp-ic{width:28px;height:28px}
  .tp-orbit{-webkit-mask:radial-gradient(circle,transparent 42px,#000 43px,#000 46px,transparent 47px);mask:radial-gradient(circle,transparent 42px,#000 43px,#000 46px,transparent 47px)}}
.ts-table video{width:100%;height:100%;object-fit:cover;transform:scale(1.04);display:block}

/* buttons: shine sweep + magnetic (JS moves --mx/--my) */
.btn{position:relative;overflow:hidden}
.btn-red::after,.btn-navy::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);transition:left .7s cubic-bezier(.16,1,.3,1);pointer-events:none}
.btn-red:hover::after,.btn-navy:hover::after{left:130%}

/* HOW IT WORKS — media cards with tilt, glare, travelling border light and living icons */
.xcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;perspective:1400px}
.xcard{position:relative;border-radius:30px;padding:1.5px;outline:none;
  background:linear-gradient(var(--card),var(--card)) padding-box,conic-gradient(from var(--fx-a,0deg),rgba(31,43,71,.12),rgba(31,43,71,.12) 60%,#e08a5f 75%,#b0473d 85%,rgba(31,43,71,.12) 95%) border-box;
  border:1.5px solid transparent;transition:transform .6s cubic-bezier(.16,1,.3,1),box-shadow .6s;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transform-style:preserve-3d;box-shadow:0 20px 50px -36px rgba(31,43,71,.45)}
@property --fx-a{syntax:'<angle>';inherits:false;initial-value:0deg}
.xcard:hover,.xcard:focus-visible{animation:fx-beam 2.6s linear infinite;box-shadow:0 50px 90px -40px rgba(31,43,71,.6)}
@keyframes fx-beam{to{--fx-a:360deg}}
.xc-in{position:relative;border-radius:28px;overflow:hidden;background:var(--card);height:100%;display:flex;flex-direction:column}
.xc-media{position:relative;aspect-ratio:4/3;overflow:hidden;margin:10px 10px 0;border-radius:22px;background:var(--cream2)}
.xc-media video{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.02);transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
.xcard:hover .xc-media video{transform:scale(1.12)}
.xc-day{position:absolute;left:12px;top:12px;padding:6px 12px;border-radius:999px;background:rgba(255,253,249,.92);font:700 .74rem 'DM Sans',sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--navy)}
.xc-body{padding:22px 26px 28px;position:relative;z-index:1}
.xc-body h3{font-size:1.6rem;margin:16px 0 8px}
.xc-body p{margin:0;color:var(--mut)}
.xc-ic{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:var(--navy);color:#f0b9ae;margin-top:-50px;position:relative;box-shadow:0 16px 30px -14px rgba(31,43,71,.7);transition:transform .5s cubic-bezier(.16,1,.3,1)}
.xc-ic .ic{width:26px;height:26px}
.xcard:hover .xc-ic{transform:translateY(-4px) rotate(-6deg)}
.xcard:hover .ic-play .ic{animation:fx-pop .9s cubic-bezier(.16,1,.3,1)}
.xcard:hover .ic-pen .ic{animation:fx-write 1.1s ease-in-out infinite}
.xcard:hover .ic-mic .ic{animation:fx-talk .8s ease-in-out infinite}
@keyframes fx-pop{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
@keyframes fx-write{0%,100%{transform:translate(0,0) rotate(0)}25%{transform:translate(3px,-2px) rotate(-8deg)}50%{transform:translate(-2px,1px) rotate(4deg)}75%{transform:translate(2px,2px) rotate(-4deg)}}
@keyframes fx-talk{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
.xc-n{position:absolute;right:20px;bottom:12px;font:700 5.6rem/1 Fraunces,serif;color:transparent;-webkit-text-stroke:1.5px rgba(31,43,71,.13);
  background:linear-gradient(0deg,#b0473d,#e08a5f) no-repeat 0 100%/100% 0;-webkit-background-clip:text;background-clip:text;transition:background-size .8s cubic-bezier(.16,1,.3,1),-webkit-text-stroke-color .5s;pointer-events:none}
.xcard:hover .xc-n,.xcard.lit .xc-n{background-size:100% 100%;-webkit-text-stroke-color:transparent}
.xc-glare{position:absolute;inset:0;pointer-events:none;background:radial-gradient(420px circle at var(--gx,50%) var(--gy,0%),rgba(255,255,255,.55),transparent 45%);opacity:0;transition:opacity .4s;mix-blend-mode:soft-light}
.xcard:hover .xc-glare{opacity:1}
/* reveal on scroll: cards rise one after another */
.js .xcard{opacity:0;translate:0 40px;transition:opacity .9s cubic-bezier(.16,1,.3,1),translate .9s cubic-bezier(.16,1,.3,1),transform .6s cubic-bezier(.16,1,.3,1),box-shadow .6s}
.js .xcard.in{opacity:1;translate:0 0}
.js .xcard:nth-child(2){transition-delay:.12s}.js .xcard:nth-child(3){transition-delay:.24s}
/* phones: the cards stack on top of each other while you scroll */
@media (max-width:860px){
  .xcards{grid-template-columns:1fr;gap:18px}
  .xcard{position:sticky;top:calc(84px + var(--k,0) * 14px)}
  .xcard:nth-child(1){--k:0}.xcard:nth-child(2){--k:1}.xcard:nth-child(3){--k:2}
  .xc-media{aspect-ratio:16/10}
}

/* statement: words light up as you scroll */
.say{padding:clamp(60px,9vw,130px) 0}
.say-t{max-width:980px;margin:0 auto;font:600 clamp(1.8rem,4.2vw,3.4rem)/1.18 Fraunces,serif;letter-spacing:-.015em;color:var(--navy);text-align:center}
.say-t .w{opacity:.14;transition:opacity .35s}
.say-t .w.on{opacity:1}
.say-t .w.em{font-style:italic;color:var(--red)}

/* taste a lesson: 3D flip cards */
.taste{padding:clamp(40px,6vw,90px) 0 clamp(60px,8vw,110px)}
.taste .sec-head{text-align:center;margin:0 auto 34px}
.flips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;perspective:1200px}
.flip{position:relative;height:230px;border:0;padding:0;background:none;cursor:pointer;transform-style:preserve-3d;transition:transform .9s cubic-bezier(.2,.8,.2,1);font:inherit;color:inherit;text-align:left}
.flip:hover{transform:translateY(-6px) rotateX(4deg)}
.flip.on{transform:rotateY(180deg)}
.flip>span{position:absolute;inset:0;border-radius:26px;padding:22px;display:flex;flex-direction:column;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 26px 50px -34px rgba(31,43,71,.55)}
.f-front{background:linear-gradient(150deg,#fffdf9,#f6e9de);border:1px solid var(--line)}
.f-front small{font:700 .74rem 'DM Sans',sans-serif;letter-spacing:.1em;color:var(--red)}
.f-front b{font:600 1.9rem/1.1 Fraunces,serif;color:var(--navy);margin:auto 0 0}
.f-hint{display:inline-flex;align-items:center;gap:6px;margin-top:12px;font:600 .82rem 'DM Sans',sans-serif;color:var(--mut)}
.f-hint .ic{width:16px;height:16px;color:var(--red)}
.f-back{background:linear-gradient(150deg,#1f2b47,#2d3c60);color:#f3ede3;transform:rotateY(180deg);gap:8px}
.f-back b{font:600 1.4rem Fraunces,serif;color:#f0b9ae}
.f-back em{margin-top:auto;font:italic 500 1.05rem/1.4 Fraunces,serif;color:#fff}
.flip.say-now .f-back b::after{content:"";display:inline-block;width:8px;height:8px;margin-left:8px;border-radius:50%;background:#f0b9ae;animation:fx-talk .6s ease-in-out infinite}
@media (max-width:860px){.flips{grid-template-columns:repeat(2,minmax(0,1fr))}.flip{height:200px}.f-front b{font-size:1.5rem}}

/* look inside: the laptop opens with the scroll */
.laptop{transform:perspective(1600px) rotateX(var(--lid,0deg)) scale(var(--lsc,1));transform-origin:50% 100%;transition:none}
.laptop.in{transform:perspective(1600px) rotateX(var(--lid,0deg)) scale(var(--lsc,1))}

/* round reveal for the section pictures */
.js .sp-art .arch{clip-path:circle(18% at 50% 50%);transition:clip-path 1.4s cubic-bezier(.16,1,.3,1)}
.js .sp-art.in .arch{clip-path:circle(75% at 50% 50%)}

@media (prefers-reduced-motion:reduce){
  .hero h1 .ch{opacity:1;filter:none;transform:none;transition:none}.hero h1 em{animation:none}
  .tp-orbit,.xcard:hover,.xcard:hover .ic{animation:none!important}.js .xcard{opacity:1;translate:none}
  .say-t .w{opacity:1}.flip{transition:none}.js .sp-art .arch{clip-path:none}.cur{display:none!important}.laptop{transform:none}
}
.xc-body .xc-n{right:24px;top:18px;bottom:auto;font-size:3.6rem}
/* hover life on the other big blocks */
.tl li > div{transition:background .35s,border-color .35s,transform .5s cubic-bezier(.16,1,.3,1),box-shadow .5s}
.tl li:hover > div{background:rgba(255,255,255,.1);border-color:rgba(240,185,174,.45);transform:translateX(6px);box-shadow:0 20px 40px -24px rgba(0,0,0,.6)}
.tl li:hover .tl-dot{transform:scale(1.12) rotate(-6deg)}.tl-dot{transition:transform .45s cubic-bezier(.16,1,.3,1),background .3s,color .3s}
.faq details{transition:box-shadow .3s,transform .45s cubic-bezier(.16,1,.3,1),border-color .3s}
.faq details:hover{transform:translateY(-2px);border-color:rgba(176,71,61,.35);box-shadow:0 18px 36px -26px rgba(31,43,71,.5)}
.join-form{transition:transform .6s cubic-bezier(.16,1,.3,1),box-shadow .6s}
.join-form:hover{transform:translateY(-4px);box-shadow:0 50px 90px -40px rgba(0,0,0,.65)}
.receipt{transition:transform 1.9s cubic-bezier(.33,.9,.25,1),box-shadow .5s}
.rc-wrap.in .receipt:hover{transform:rotate(-1deg) translateY(-4px);box-shadow:0 40px 70px -36px rgba(31,43,71,.7);transition:transform .6s cubic-bezier(.16,1,.3,1),box-shadow .5s}
.fc{transition:transform .5s cubic-bezier(.16,1,.3,1)}
@media (max-width:860px){.xcard,.xcard:hover{box-shadow:0 10px 24px -18px rgba(31,43,71,.45);animation:none}.xc-ic{box-shadow:none}.flip>span{box-shadow:0 10px 20px -16px rgba(31,43,71,.4)}.sprog i{box-shadow:none}}
@media (max-width:860px),(hover:none){.xcards{perspective:none}.xcard{transform:none!important;transform-style:flat}.xc-glare{display:none}.flips{perspective:900px}}
@media (max-width:860px){.hero h1 em{animation:none;background-position:30% 0}.ts-rot,.fc{will-change:auto}.dot-live{animation:none}}
/* Safari fixes */
.xc-media video{position:absolute;inset:0;width:100%;height:100%}
.flip,.flip:hover,.flip.on{transform:none;transform-style:flat}
.flip>span{transition:transform .9s cubic-bezier(.2,.8,.2,1)}
.flip .f-front{transform:perspective(900px) rotateY(0deg)}
.flip .f-back{transform:perspective(900px) rotateY(180deg)}
.flip.on .f-front{transform:perspective(900px) rotateY(-180deg)}
.flip.on .f-back{transform:perspective(900px) rotateY(0deg)}
.flip:hover:not(.on) .f-front{transform:perspective(900px) rotateY(0deg) translateY(-6px)}
.say-t .w{opacity:.22}
/* no per-letter blur: WebKit/Safari crashes on many blurred, moving letters */
.hero h1 .ch{filter:none!important;transition:opacity .7s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1)}
/* Safari-proof card media: fixed-ratio box without aspect-ratio */
.xc-media{aspect-ratio:auto;height:0;padding-top:72%;min-width:0;width:auto}
@media (max-width:860px){.xc-media{padding-top:62%}.xcard{position:relative!important;top:auto!important}}
/* Safari-proof flip: faces swap visibility half-way, no reliance on backface-visibility */
.flip>span{transition:transform .9s cubic-bezier(.2,.8,.2,1),opacity 0s linear .45s}
.flip .f-back{opacity:0}
.flip.on .f-front{opacity:0}
.flip.on .f-back{opacity:1}
@media (max-width:860px){.flip{height:250px}.f-back{gap:6px}.f-back span{font-size:.88rem}.f-back em{font-size:.95rem}.flip>span{padding:18px}}
.join-form .qz-link{display:inline-flex;align-items:center;gap:6px;color:var(--red);font-weight:600;text-decoration:none;margin-top:-6px}.join-form .qz-link .ic{width:15px;height:15px}

/* gradient text paints only inside its box: italic overhangs and descenders (y, g, p, f) need room — never clip letters */
.hero h1 em{background-image:linear-gradient(100deg,#b0473d 20%,#d77a55 40%,#b0473d 60%)}
