/* ---------- Round v21 · the Journal as cards + its own colour world (homepage #journal) ----------
   Cards keep the v20 rise-in and pointer tilt (round-v20.css + main.js journalCards). The old curve
   (.flow__path) is hidden for cards; main.js still draws it harmlessly. The colour world is a deep
   wine / aubergine field with burnished amber and teal-green nebulae: new graded images
   (assets/img/*-journal.webp, made with PIL from the existing nebulae), no pure white. */
.block--journal{--pw:min(1080px,92vw)}
.block--journal::before{background:radial-gradient(ellipse closest-side at 50% 50%,rgba(22,7,20,.62) 0%,rgba(18,6,18,.42) 60%,rgba(18,6,18,0) 100%)}
.jneb{position:absolute;inset:-18% -14%;z-index:-2;pointer-events:none}
.jneb i{position:absolute;display:block;background:center/contain no-repeat;mix-blend-mode:screen}
.jneb__w{left:-10%;top:-12%;width:72%;aspect-ratio:1;background-image:url(../assets/img/neb-wine-journal.webp);opacity:1}
.jneb__a{right:2%;top:-14%;width:42%;aspect-ratio:1;background-image:url(../assets/img/neb-amber-journal.webp);opacity:.85}
.jneb__t{right:-8%;bottom:-16%;width:60%;aspect-ratio:1;background-image:url(../assets/img/neb-tealgreen-journal.webp);opacity:1}

.flow--cards{margin-top:clamp(16px,2.6vh,30px)}
.flow--cards .flow__path{display:none}
.jcards{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.5vw,22px);align-items:stretch}
.jcards .jcard{margin-top:0}
.jcards .jcard--feat{grid-column:1 / -1}
.jcards .jcard a{display:flex;flex-direction:column;align-items:stretch;height:100%;text-align:left;padding:0;border-radius:22px;overflow:hidden;text-decoration:none;
  background:linear-gradient(158deg,rgba(58,16,42,.9),rgba(20,9,24,.92) 52%,rgba(12,36,33,.9));
  box-shadow:0 0 0 1px rgba(var(--gold-lit-rgb),.34),0 26px 60px -30px rgba(0,0,0,.95);transition:box-shadow .4s,transform .5s cubic-bezier(.2,.7,.2,1)}
.jcards .jcard a.is-tilt{transition:box-shadow .4s,transform .12s linear}
.jcards .jcard a::before{display:none}
.jcards .jcard a:hover{box-shadow:0 0 0 1px var(--gold-lit),0 0 30px -6px rgba(var(--gold-lit-rgb),.35),0 26px 60px -30px rgba(0,0,0,.95)}
.jcards .jcard__img{width:100%;aspect-ratio:8/3;border-radius:0;box-shadow:none;animation:none;overflow:hidden;position:relative}
.jcards .jcard__img::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(30,8,26,0) 45%,rgba(30,8,26,.55))}
.jcards .jcard__img img{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.jcards .jcard a:hover .jcard__img img{transform:scale(1.045)}
.jcards .jcard a:hover .jcard__img{box-shadow:none}
.jcard__txt{display:flex;flex-direction:column;flex:1;padding:14px 18px 16px}
.jcards .entry__n{margin-top:0;font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:#8CC2B6}
.jcards .entry__t{margin-top:7px;font-size:clamp(20px,1.5vw,25px);line-height:1.14}
.jcards .entry__x{max-width:none;margin-top:7px;font-size:clamp(13.5px,.9vw,15px);line-height:1.45;color:rgba(241,238,229,.88);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.jcard__go{display:inline-flex;align-items:center;gap:8px;margin-top:auto;padding-top:12px;font:500 12px/1 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:var(--gold-lit-hi)}
.jcard__go span{transition:transform .3s}
.jcards .jcard a:hover .jcard__go span{transform:translateX(4px)}
/* the featured card: picture beside the words */
.jcards .jcard--feat a{flex-direction:row}
.jcards .jcard--feat .jcard__img{width:46%;aspect-ratio:auto;min-height:clamp(170px,24vh,230px)}
.jcards .jcard--feat .jcard__img img{position:absolute;inset:0}
.jcards .jcard--feat .jcard__img::after{background:linear-gradient(90deg,rgba(30,8,26,0) 55%,rgba(40,10,32,.7))}
.jcards .jcard--feat .jcard__txt{justify-content:center;padding:clamp(18px,2.4vw,34px) clamp(20px,3vw,44px)}
.jcards .jcard--feat .entry__n{color:var(--gold-lit-soft)}
.jcards .jcard--feat .entry__t{font-size:clamp(26px,2.4vw,38px);background:var(--lum-gold);-webkit-background-clip:text;background-clip:text;color:transparent}
.jcards .jcard--feat .entry__x{font:italic 400 clamp(17px,1.3vw,21px)/1.45 var(--serif);color:var(--gold-100);-webkit-line-clamp:3}
.jcards .jcard--feat .jcard__go{padding-top:16px}
/* rise-in order: featured first, then the three */
.ov.is-on .entry--1,.block--journal.is-seen .entry--1{animation-delay:.12s}
.ov.is-on .entry--2,.block--journal.is-seen .entry--2{animation-delay:.24s}
.ov.is-on .entry--3,.block--journal.is-seen .entry--3{animation-delay:.36s}
/* short screens (flight overlays must fit the window) */
@media (min-width:1024px) and (max-height:820px){
  .journal__sub{display:none}
  .jcards .jcard__img{aspect-ratio:7/2}
  .jcards .jcard--feat .jcard__img{min-height:150px}
}
/* tablet and phone: one column, the three smaller cards become rows */
@media (max-width:760px){
  .jcards{grid-template-columns:minmax(0,1fr);gap:10px}
  .jcards .jcard a,.jcards .entry--2 a{display:grid;grid-template-columns:92px minmax(0,1fr);text-align:left;padding:0;border-radius:18px}
  .jcards .jcard__img,.jcards .entry--2 .jcard__img{grid-column:1;grid-row:1;width:100%;height:100%;aspect-ratio:auto;min-height:0}
  .jcards .jcard__txt,.jcards .entry--2 .jcard__txt{grid-column:2;padding:11px 14px 12px}
  .jcards .entry__t{font-size:18.5px}
  .jcards .entry__x{font-size:13px;margin-top:4px}
  .jcard__go{padding-top:8px;font-size:11px}
  .jcards .jcard--feat a{display:flex;flex-direction:column}
  .jcards .jcard--feat .jcard__img{width:100%;aspect-ratio:21/9;min-height:0}
  .jcards .jcard--feat .jcard__img img{position:static}
  .jcards .jcard--feat .jcard__img::after{background:linear-gradient(rgba(30,8,26,0) 50%,rgba(40,10,32,.7))}
  .jcards .jcard--feat .jcard__txt{padding:14px 16px 16px}
  .jcards .jcard--feat .entry__t{font-size:25px}
  .jcards .jcard--feat .entry__x{font-size:16.5px;-webkit-line-clamp:2}
  .jneb{inset:-8% -20%}
}
@media (prefers-reduced-motion:reduce){.jcards .jcard__img img{transition:none}.jcards .jcard a:hover .jcard__img img{transform:none}}
/* the journal nebula layers may reach past the section edge; never let them make the page scroll sideways */
#journal{overflow-x:clip}
