/* The Academy: the timed pop-up and the mentorship application (27 Oct). Colours and type from shop.css. */

/* ---------- the pop-up: one card, centred like The Academy's own join block; a corner card on desktop, a sheet on phones ---------- */
.acpop{position:fixed;right:1.6rem;bottom:1.6rem;z-index:60;width:min(25rem,calc(100vw - 3.2rem));opacity:0;transform:translateY(1.2rem);transition:opacity .35s ease,transform .35s ease;}
.acpop.is-in{opacity:1;transform:none;}
.acpop[hidden]{display:none;}
.acpop__box{position:relative;background:var(--black);border:1px solid rgba(195,154,84,.45);box-shadow:0 22px 60px rgba(0,0,0,.7);padding:2.3rem 2rem 1.5rem;font-family:var(--book);color:var(--ivory);text-align:center;}
.acpop__box::before{content:"";position:absolute;inset:.45rem;border:1px solid rgba(195,154,84,.14);pointer-events:none;}  /* the inner hairline frame */
.acpop__x{position:absolute;top:.9rem;right:.9rem;z-index:1;width:1.9rem;height:1.9rem;padding:0;border-radius:50%;border:1px solid rgba(195,154,84,.45);background:var(--black);color:rgba(237,231,218,.85);font-size:1rem;line-height:1;display:grid;place-items:center;cursor:pointer;transition:border-color .3s,color .3s;}
.acpop__x:hover{border-color:var(--gold);color:var(--ivory);}
/* the opening is a pull quote, like every other on the site: large serif line, the last phrase in red italic */
.acpop__h{font-family:var(--serif);font-weight:400;font-optical-sizing:auto;font-size:1.85rem;line-height:1.14;letter-spacing:.005em;margin:0 auto 1rem;padding:0 .4rem;text-wrap:balance;}
.acpop__h em{font-style:italic;color:var(--crimson);}
.acpop__v[data-v="tip"] .acpop__h{padding:0 1.8rem;}  /* clear of the × */
/* the body reads as the quote's italic line; balanced so a centred paragraph keeps an even shape */
.acpop__b{font-style:italic;font-size:1.05rem;line-height:1.55;color:rgba(237,231,218,.72);margin:0 auto;max-width:30ch;text-wrap:balance;}
/* the gold line: on both sides, the last word before the button (the terms, or the ask) */
.acpop__p{position:relative;font-size:1rem;font-style:italic;color:var(--gold);margin:1.1rem auto 1.35rem;max-width:32ch;text-wrap:balance;}  /* no divider rule (her note, 28 Oct): space does the work */
.acpop__btn{display:block;text-align:center;text-transform:uppercase;letter-spacing:.32em;font-size:.72rem;color:var(--gold);border:1px solid var(--crimson);padding:.95rem 1rem;text-decoration:none;transition:background .3s,border-color .3s;}
.acpop__btn:hover{background:rgba(138,30,20,.16);border-color:#a8271b;}
.acpop__btn small{display:block;font-size:.5rem;letter-spacing:.3em;font-weight:600;color:rgba(148,137,122,.9);margin-top:.4rem;}
.acpop__alt{display:block;text-align:center;font-size:.86rem;color:var(--dim);margin:.8rem 0 0;text-decoration:underline;text-decoration-color:rgba(195,154,84,.5);text-underline-offset:3px;}
.acpop__no{display:block;margin:.85rem auto 0;background:none;border:0;font:inherit;font-size:.74rem;letter-spacing:.24em;text-transform:uppercase;color:var(--dim);cursor:pointer;padding:.35rem .7rem;transition:color .3s;}
.acpop__no:hover{color:var(--ivory);}
.acpop__x:focus-visible,.acpop__btn:focus-visible,.acpop__alt:focus-visible,.acpop__no:focus-visible{outline:1px solid var(--gold);outline-offset:3px;}
@media(max-width:620px){  /* a shorter sheet on phones, so most of the lesson stays in view (Google is strictest about phones) */
  .acpop{left:0;right:0;bottom:0;width:auto;}
  .acpop__box{border-left:0;border-right:0;border-bottom:0;padding:1.4rem 1.25rem calc(.8rem + env(safe-area-inset-bottom));}
  .acpop__box::before{display:none;}
  .acpop__h{font-size:1.38rem;margin-bottom:.6rem;}
  .acpop__b{font-size:.96rem;line-height:1.45;max-width:34ch;}
  .acpop__p{font-size:.92rem;margin:.75rem auto .85rem;}
  .acpop__btn{padding:.75rem 1rem;}
  .acpop__no{margin-top:.45rem;}
  .acpop__v[data-v="tip"] .acpop__h{padding:0 2.2rem;}
}
/* "Not now" turns the card over to the tip */
.acpop.is-turn .acpop__v[data-v="tip"]{animation:acpopTurn .45s ease both;}
@keyframes acpopTurn{from{opacity:0;transform:translateX(1.4rem)}to{opacity:1;transform:none}}
.acpop__h:focus{outline:none;}
@media(prefers-reduced-motion:reduce){ .acpop{transition:none;transform:none;} .acpop.is-turn .acpop__v[data-v="tip"]{animation:none;} }

/* ---------- The Academy page hierarchy (27 Oct): one button in the opening, courses next, paid links after the
   lessons, mentorship last. Only the one button wears the crimson border on the first screen. ---------- */
.ix-acts{display:flex;flex-direction:column;align-items:center;gap:.9rem;margin:clamp(1.8rem,3.4vw,2.4rem) 0 0;position:relative;text-align:center;}
.ix-acts__go{flex:none;min-width:17rem;background:rgba(11,9,7,.55);}  /* flex:none, or the shared button rule turns its 15rem basis into height here */
/* the opening uses two styles only (27 Oct): the serif quote above, small capitals below it */
.ix-acts__mentor{font-family:var(--book);text-transform:uppercase;letter-spacing:.3em;font-size:.62rem;color:var(--gold);text-decoration:none;padding:.3rem 0;transition:color .3s;}
.ix-acts__mentor::after{content:" \2192";}
.ix-acts__mentor:hover{color:var(--ivory);}
.ix-join__plate{margin-top:clamp(3rem,6vw,4.4rem);}
.ix-plate{position:relative;text-align:center;border:1px solid rgba(195,154,84,.4);padding:clamp(2.2rem,4vw,3rem) 1.4rem;margin:clamp(3rem,6vw,4.4rem) 0 0;}
.ix-plate::before{content:"";position:absolute;inset:.45rem;border:1px solid rgba(195,154,84,.12);pointer-events:none;}
.ix-plate .k{font-family:var(--book);text-transform:uppercase;letter-spacing:.32em;font-size:.6rem;color:var(--gold);}
.ix-plate__t{font-family:var(--serif);font-size:clamp(1.7rem,3.6vw,2.4rem);line-height:1.15;margin:.7rem 0 .4rem;text-wrap:balance;}
.ix-plate__t em{font-style:italic;color:var(--crimson);}
.ix-plate__d{font-family:var(--book);font-style:italic;color:var(--gold);margin:0 0 1.4rem;}
.ix-plate__btn{display:inline-block;flex:none;min-width:15rem;}
@media(max-width:620px){ .ix-plate__btn,.ix-acts__go{width:100%;max-width:20rem;text-align:center;} }

/* ---------- the application ---------- */
.mentor__form{max-width:38rem;margin:clamp(2rem,4vw,2.8rem) auto 0;font-family:var(--book);}
.mentor__f{display:block;border:0;padding:0;margin:0 0 1.5rem;}
.mentor__f > span,.mentor__f legend{display:block;font-size:.72rem;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);margin:0 0 .55rem;padding:0;}
.mentor__f input[type=text],.mentor__f input[type=email],.mentor__f input[type=url],.mentor__f textarea{width:100%;box-sizing:border-box;font:inherit;font-size:1.05rem;color:var(--ivory);background:#110e0b;border:1px solid #3a322a;padding:.7rem .8rem;border-radius:0;}
.mentor__f input:focus,.mentor__f textarea:focus{outline:none;border-color:rgba(195,154,84,.7);}
.mentor__opt{display:flex;align-items:center;gap:.6rem;font-size:1.05rem;color:rgba(237,231,218,.88);margin:.35rem 0;cursor:pointer;}
.mentor__opt input{appearance:none;-webkit-appearance:none;flex:none;width:1.1rem;height:1.1rem;margin:0;background:#110e0b;border:1px solid rgba(195,154,84,.6);cursor:pointer;}
.mentor__opt input[type=radio]{border-radius:50%;}
.mentor__opt input:checked{background:var(--crimson);box-shadow:inset 0 0 0 3px #110e0b;}
.mentor__opt input:focus-visible{outline:1px solid var(--gold);outline-offset:3px;}
.mentor__adult{margin:0 0 1.4rem;}
.mentor__progress{margin:0 0 .6rem;}
.mentor__progress[hidden]{display:none;}
.mentor__sum{color:var(--dim);font-size:.95rem;}
.mentor__hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.mentor__err{color:#d4675c;font-size:1rem;margin:0 0 1rem;}
.mentor__go{display:block;width:100%;max-width:20rem;margin:0 auto;font-family:var(--book);text-transform:uppercase;letter-spacing:.3em;font-size:.8rem;color:var(--gold);background:transparent;border:1px solid var(--crimson);padding:1rem 1.4rem;cursor:pointer;transition:background .3s,border-color .3s;}
.mentor__go:hover{background:rgba(138,30,20,.16);border-color:#a8271b;}
.mentor__go:disabled{opacity:.6;cursor:default;}
.mentor__fine{text-align:center;font-size:.9rem;color:var(--dim);margin:1rem 0 0;}
.mentor__done{max-width:38rem;margin:clamp(2rem,4vw,2.8rem) auto 0;text-align:center;font-family:var(--serif);font-size:1.25rem;outline:none;}
.mentor__done p{margin:0 0 .6rem;}
.essay__mentor{border-top:1px solid #2a241e;padding:1.3rem 0 0;margin:clamp(2.4rem,5vw,3.2rem) 0 0;}

/* ---------- the mentorship page, laid out as a sales page (27 Oct): button up top, who it's for, what we build,
   how it runs, proof, the price card, then the application ---------- */
.mentor .mentor__intro{max-width:none;margin:0;}
.mentor .mentor__intro p{font-style:normal;}
.mp-hero{text-align:center;padding:0 0 clamp(2.6rem,5vw,3.4rem);}
.mentor .mentor__intro .mentor-quote{font-family:var(--serif);font-weight:400;font-size:clamp(2.1rem,4.6vw,3.2rem);line-height:1.12;text-align:center;color:var(--ivory);margin:0 0 .8rem;text-wrap:balance;}
.mentor .mentor__intro .mentor-quote em{font-style:italic;color:var(--crimson);}
.mentor .mentor__intro .mentor-sub{font-family:var(--book);font-style:italic;text-align:center;color:rgba(237,231,218,.66);font-size:clamp(1rem,1.4vw,1.2rem);margin:0 0 1.8rem;}
.mp-cta{margin:0 0 1rem;}
.mp-btn{display:inline-block;min-width:15rem;text-align:center;font-family:var(--book);text-transform:uppercase;letter-spacing:.3em;font-size:.76rem;color:var(--gold);border:1px solid var(--crimson);padding:1rem 1.6rem;text-decoration:none;transition:background .3s,border-color .3s;}
.mp-btn:hover{background:rgba(138,30,20,.16);border-color:#a8271b;}
.mp-btn small{display:block;font-size:.5rem;letter-spacing:.3em;font-weight:600;color:rgba(148,137,122,.9);margin-top:.42rem;}
.mentor .mentor__intro .mp-terms{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.4rem;font-family:var(--book);text-transform:uppercase;letter-spacing:.26em;font-size:.6rem;color:var(--dim);margin:0;}
.mp-terms span{white-space:nowrap;}  /* each term wraps whole; nothing can run off the side */
.mp-sec{border-top:1px solid rgba(195,154,84,.2);padding:clamp(2.2rem,4vw,3rem) 0;}
.mentor .mentor__intro .mp-sec h2,.mentor .mentor__intro .mp-apply{font-family:var(--book);font-weight:400;font-size:.66rem;letter-spacing:.32em;text-transform:uppercase;color:var(--gold);text-align:center;border:0;padding:0;margin:0 0 1.6rem;}
/* who it is for: three lines, no boxes (her note, 28 Oct) */
.mp-who{display:block;text-align:center;}
.mentor .mentor__intro .mp-who p{margin:0;padding:0;border:0;display:block;font-family:var(--serif);font-size:clamp(1.12rem,2vw,1.3rem);line-height:1.4;color:var(--ivory);text-wrap:balance;}
/* lines separated by space alone (her note, 28 Oct) */
.mentor .mentor__intro .mp-who p + p{margin-top:1.1rem;}
/* The Apply button keeps its red frame all round; the body's link underline was drawing over its bottom edge (28 Oct). */
.policy__body a.mp-btn{border:1px solid var(--crimson);}
.policy__body a.mp-btn:hover{border-color:#a8271b;}
/* what we build: numbered like The Academy's cards */
.mp-build{list-style:none;margin:0 auto;padding:0;max-width:34rem;}
.mp-build li{display:grid;grid-template-columns:3.2rem 1fr;align-items:baseline;gap:.8rem;padding:.75rem 0;border-bottom:1px solid rgba(195,154,84,.12);font-family:var(--book);font-size:1.1rem;line-height:1.5;color:rgba(237,231,218,.88);}
.mp-build li:last-child{border-bottom:0;}
.mp-build span{font-family:var(--serif);font-size:1.5rem;line-height:1;color:var(--crimson);}
/* how it runs: three steps */
.mp-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;counter-reset:mp;}
.mp-steps li{counter-increment:mp;text-align:center;font-family:var(--book);font-size:1rem;line-height:1.55;color:rgba(237,231,218,.8);}
.mp-steps li::before{content:counter(mp);display:block;font-family:var(--serif);font-size:1.6rem;color:var(--crimson);margin-bottom:.4rem;}
.mp-steps b{display:block;font-family:var(--serif);font-weight:400;font-size:1.2rem;color:var(--ivory);margin-bottom:.35rem;}
/* proof */
.mentor .mentor__intro .mp-proof p{font-family:var(--serif);font-style:italic;font-size:clamp(1.2rem,2.2vw,1.45rem);line-height:1.45;text-align:center;color:rgba(237,231,218,.86);max-width:34rem;margin:0 auto;}
/* the price card */
.mp-price{position:relative;text-align:center;border:1px solid rgba(195,154,84,.45);padding:clamp(2rem,4vw,2.6rem) 1.4rem;margin:0 auto clamp(2.8rem,5vw,3.6rem);max-width:28rem;}
.mp-price::before{content:"";position:absolute;inset:.45rem;border:1px solid rgba(195,154,84,.12);pointer-events:none;}
.mentor .mentor__intro .mp-price__k{font-family:var(--book);text-transform:uppercase;letter-spacing:.32em;font-size:.6rem;color:var(--gold);margin:0;}
.mentor .mentor__intro .mp-price__n{font-family:var(--serif);font-size:clamp(2.6rem,6vw,3.4rem);line-height:1;color:var(--ivory);margin:.6rem 0 .5rem;}
.mentor .mentor__intro .mp-price__d{font-family:var(--book);font-size:1.02rem;color:rgba(237,231,218,.84);margin:0 0 .3rem;}
.mentor .mentor__intro .mp-price__f{font-family:var(--book);font-style:italic;font-size:.95rem;color:var(--gold);margin:0;}
.mentor .mentor__intro .mp-apply{border-top:1px solid rgba(195,154,84,.2);padding-top:clamp(2.2rem,4vw,3rem);margin-bottom:0;scroll-margin-top:1rem;}
.mentor .mentor__form{margin-top:1.6rem;}
@media(max-width:700px){ .mp-steps{grid-template-columns:1fr;gap:1.6rem;} }

/* The Academy opening, balanced (her note, 28 Oct): the label sits a little closer to the quote than before, the quote
   and its italic line read as one unit, the button and the mentorship line as another, and the space under the
   opening is a touch larger than the space over it so the block feels anchored, not floating. Fixed rem steps, so
   the rhythm no longer changes with the height of the window. */
.ix-hero--academy{padding:3.4rem 0 3.9rem;}
.ix-hero--academy .lib-plate{margin-bottom:2.6rem;}
.ix-hero--academy .ix__sub{margin-top:1rem;}
.ix-hero--academy .ix-acts{margin-top:2.1rem;gap:1rem;}
.ix-hero--academy + main.ix{padding-top:1.1rem;}
@media(max-width:620px){
  .ix-hero--academy{padding:2.6rem 0 3.2rem;}
  .ix-hero--academy .lib-plate{margin-bottom:2.1rem;}
  .ix-hero--academy .ix-acts{margin-top:1.8rem;}
}
