/* Prure Group — blog family (blog.html and blog-<slug>.html). Loaded after prure.css.
   Only .blog__* and .article__* are styled here. Hidden start states are gated with .js, continuous or
   hover-swapped layouts with .motion, so the page is complete without JavaScript and with reduced motion. */

/* =====================================================================  INDEX  */
.blog__hero{display:block;min-height:0;padding:calc(var(--hdr) + clamp(36px,6vw,88px)) 0 clamp(56px,8vw,120px);overflow:visible}
.blog__hero::after{content:none}
.blog__hero .display{font-size:clamp(2.7rem,7.4vw,6.6rem);max-width:13em}
@media (max-width:359px){.blog__hero .display{font-size:2.3rem}}
.blog__intro{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:18px 48px;margin-top:clamp(20px,3vw,40px)}
.blog__hero .blog__intro .lede{margin-top:0;max-width:36ch;color:var(--muted)}
.blog__count{font-size:.95rem;color:var(--muted);white-space:nowrap}
.blog__count b{font-family:var(--heading);font-weight:600;font-size:1.5rem;letter-spacing:-.02em;color:#fff;margin-right:.15em}
.blog__count span{margin-left:.9em;padding-left:.9em;border-left:1px solid rgba(255,255,255,.28)}

/* Featured latest article: one large cover, the text beside it. */
.blog__feat{display:grid;gap:clamp(22px,3vw,44px);margin-top:clamp(40px,6vw,88px);text-decoration:none;color:inherit}
.blog__featimg{aspect-ratio:1672/941;border-radius:20px;overflow:hidden;background:var(--panel)}
.blog__featimg>div{height:100%}
.blog__featimg img{width:100%;height:100%;object-fit:cover;transition:transform 1.6s var(--ease)}
.blog__feattext{display:grid;gap:14px;align-content:end;justify-items:start}
.blog__label{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.9rem;font-weight:500;color:var(--peach)}
.blog__label time,.blog__label span{color:var(--muted);font-weight:400}
.blog__feat h2{font-size:clamp(1.7rem,3.3vw,3rem);line-height:1.08;letter-spacing:-.03em;text-wrap:pretty}
.blog__feat h2 span,.blog__row h3 span{background:linear-gradient(currentColor,currentColor) no-repeat 0 100%/0 2px;transition:background-size .7s var(--ease)}
.blog__excerpt{color:var(--muted);max-width:44ch;font-size:1rem;line-height:1.55}
.blog__more{position:relative;padding-right:1.1em;font-size:.95rem;font-weight:500;color:var(--orange)}
.blog__more::after{content:"";position:absolute;right:.15em;top:.52em;width:.45em;height:.45em;border-top:1.5px solid;border-right:1.5px solid;transform:rotate(45deg);transition:transform .35s var(--ease)}
.blog__feat:hover h2 span,.blog__feat:focus-visible h2 span,.blog__link:hover h3 span,.blog__link:focus-visible h3 span{background-size:100% 2px}
.blog__feat:hover .blog__featimg img,.blog__feat:focus-visible .blog__featimg img{transform:scale(1.04)}
.blog__feat:hover .blog__more::after,.blog__feat:focus-visible .blog__more::after,.blog__link:hover .blog__more::after,.blog__link:focus-visible .blog__more::after{transform:translateX(4px) rotate(45deg)}
.blog__feat:focus-visible{outline-offset:10px;border-radius:20px}
@media (min-width:1000px){
  .blog__feat{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);align-items:end}
}

/* The archive: a typographic list. Each cover opens as its row arrives (phones, tablets, no hover),
   or beside the row that is in focus / under the pointer (wide screens with a mouse). */
.blog__list{margin-top:clamp(36px,5vw,72px);border-bottom:1px solid rgba(10,1,24,.16)}
.blog__row{position:relative;border-top:1px solid rgba(10,1,24,.16)}
.blog__row::before{content:"";position:absolute;left:0;right:0;top:-1px;height:2px;background:var(--orange);transform:scaleX(0);transform-origin:left;transition:transform .9s var(--ease)}
.blog__row:hover::before,.blog__row:focus-within::before{transform:scaleX(1)}
.blog__link{display:grid;gap:10px;padding-block:clamp(22px,3vw,34px);text-decoration:none;color:inherit}
.blog__link:focus-visible{outline-offset:-2px}
.blog__n{display:none;font-family:var(--heading);font-weight:500;font-size:.95rem;color:var(--paper-muted)}
.blog__when{display:flex;flex-wrap:wrap;gap:2px 14px;font-size:.9rem;color:var(--paper-muted)}
.blog__row h3{font-size:clamp(1.5rem,3.5vw,2.7rem);line-height:1.08;letter-spacing:-.03em;text-wrap:pretty}
.blog__row .blog__more{justify-self:start;color:var(--paper-ink)}
.blog__img{order:-1;aspect-ratio:16/9;margin-bottom:8px;border-radius:14px;overflow:hidden;background:var(--panel)}
.blog__img img{width:100%;height:100%;object-fit:cover;transition:transform 1.4s var(--ease)}
.blog__link:hover .blog__img img,.blog__link:focus-visible .blog__img img{transform:scale(1.05)}
/* Arrival: the title rises behind a mask and the cover wipes open. */
.js .blog__row[data-in] h3{clip-path:inset(0 0 100% 0);transform:translateY(.45em);transition:clip-path 1s var(--ease),transform 1s var(--ease)}
.js .blog__row[data-in].in h3{clip-path:inset(-.1em -.1em -.25em -.1em);transform:none}
.js .blog__row[data-in] .blog__img{clip-path:inset(0 100% 0 0 round 14px);transition:clip-path 1.2s var(--ease) .1s}
.js .blog__row[data-in].in .blog__img{clip-path:inset(0 round 14px)}

@media (min-width:700px){
  .blog__link{grid-template-columns:9.5rem minmax(0,1fr) min(30%,300px);grid-template-areas:"when title img" "when more img";grid-template-rows:auto 1fr;column-gap:clamp(20px,3vw,48px);align-items:start}
  .blog__when{grid-area:when;flex-direction:column;padding-top:.5em}
  .blog__row h3{grid-area:title}
  .blog__row .blog__more{grid-area:more}
  .blog__img{grid-area:img;order:0;margin:0;align-self:center}
}
@media (min-width:1000px) and (hover:hover) and (pointer:fine){
  .blog__link{grid-template-columns:3rem 9.5rem minmax(0,1fr) 34%;grid-template-areas:"n when title img" "n when more img";min-height:clamp(150px,13vw,190px);align-content:center}
  .blog__n{display:block;grid-area:n;padding-top:.75em}
  .blog__when{padding-top:.75em}
  /* With motion: the cover leaves the row and opens large beside the row in focus. */
  .motion .blog__link{grid-template-rows:auto auto}
  .motion .blog__img{position:absolute;right:0;top:50%;z-index:2;width:34%;margin:0;transform:translateY(-50%);pointer-events:none;box-shadow:0 30px 60px -30px rgba(10,1,24,.45)}
  .motion .blog__row[data-in] .blog__img,.motion .blog__row[data-in].in .blog__img{clip-path:inset(50% 0 50% 0 round 14px);transition:clip-path .8s var(--ease)}
  .motion .blog__row .blog__img img{transform:scale(1.18)}
  .motion .blog__row[data-in].is-active .blog__img,.motion .blog__row[data-in]:hover .blog__img,.motion .blog__row[data-in]:focus-within .blog__img{clip-path:inset(0 round 14px);z-index:3}
  .motion .blog__row[data-in].is-active .blog__img img,.motion .blog__row[data-in]:hover .blog__img img,.motion .blog__row[data-in]:focus-within .blog__img img{transform:none}
  /* The pointer wins over the scroll position. */
  .motion .blog__list:hover .blog__row[data-in].is-active:not(:hover) .blog__img{clip-path:inset(50% 0 50% 0 round 14px)}
  .motion .blog__list:hover .blog__row[data-in].is-active:not(:hover) .blog__img img{transform:scale(1.18)}
  .motion .blog__row h3,.motion .blog__row .blog__more{transition:clip-path 1s var(--ease),transform .7s var(--ease),color .5s}
  .motion .blog__row[data-in].in h3{color:var(--paper-muted)}
  .motion .blog__row[data-in].in.is-active h3,.motion .blog__row[data-in].in:hover h3,.motion .blog__row[data-in].in:focus-within h3{color:var(--paper-ink);transform:translateX(.35em)}
  .motion .blog__list:hover .blog__row[data-in].in.is-active:not(:hover) h3{color:var(--paper-muted);transform:none}
}

/* =====================================================================  ARTICLE  */
.article__hero{display:block;min-height:0;padding:calc(var(--hdr) + clamp(24px,4vw,56px)) 0 0;overflow:visible;z-index:1}
.article__hero::after{content:none}
.article__meta{display:flex;flex-wrap:wrap;gap:2px 0;margin-top:clamp(14px,2vw,28px);font-size:.92rem;color:var(--muted)}
.article__meta>*+*::before{content:"";display:inline-block;width:4px;height:4px;margin:0 .8em .2em;border-radius:50%;background:var(--orange)}
.article__meta span:first-child{color:var(--peach);font-weight:500}
.article__title{margin-top:clamp(12px,1.6vw,22px);font-size:clamp(2.1rem,5.6vw,4.9rem);line-height:1.04;max-width:19em;overflow-wrap:break-word}
/* The cover straddles the dark stage and the paper. */
.article__cover{--over:clamp(48px,9vw,150px);aspect-ratio:1672/941;margin:clamp(30px,4.5vw,64px) 0 calc(-1*var(--over));border-radius:20px;overflow:hidden;background:var(--panel)}
.article__cover>div{height:100%}
.article__cover img{width:100%;height:100%;object-fit:cover}
.article__paper{padding:calc(clamp(48px,9vw,150px) + clamp(44px,6vw,92px)) 0 var(--sec)}

/* Reading progress: follows the scroll through the article (prure.js sets --p on the paper). Decorative. */
.article__bar{display:none;position:fixed;inset:0 0 auto 0;z-index:60;height:3px;pointer-events:none}
.motion .article__bar{display:block}
.article__bar i{display:block;height:100%;background:var(--orange);transform:scaleX(var(--p,0));transform-origin:left}

.article__grid{display:grid;gap:clamp(28px,4vw,48px)}
.article__aside:empty{display:none}
.article__toc h2{font-family:var(--body);font-size:.82rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;line-height:1.3;color:var(--paper-muted)}
.article__toc ol{margin-top:10px;counter-reset:toc;border-top:1px solid rgba(10,1,24,.16)}
.article__toc li{counter-increment:toc;border-bottom:1px solid rgba(10,1,24,.16)}
.article__toc a{display:grid;grid-template-columns:2.1em minmax(0,1fr);padding:11px 0;font-size:.95rem;line-height:1.35;text-decoration:none;color:var(--paper-ink);transition:color .3s,padding-left .45s var(--ease)}
.article__toc a::before{content:counter(toc,decimal-leading-zero);font-family:var(--heading);font-weight:500;color:var(--paper-muted)}
.article__toc a:hover,.article__toc a:focus-visible{padding-left:.4em}
@media (min-width:1000px){
  .article__grid{grid-template-columns:minmax(0,250px) minmax(0,34.5em);column-gap:clamp(48px,7vw,120px);justify-content:center;font-size:1.16rem}
  .article__aside{font-size:1rem}
  .article__aside:empty{display:block}
  .article__toc{position:sticky;top:calc(var(--hdr) + 28px);display:flex;flex-direction:column;max-height:calc(100vh - var(--hdr) - 56px);overflow:visible}
  .article__toc ol{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
  /* prure.js sets .is-more while entries are hidden below the visible part of the list */
  .article__toc ol.is-more{-webkit-mask-image:linear-gradient(#000 calc(100% - 56px),transparent);mask-image:linear-gradient(#000 calc(100% - 56px),transparent)}
  /* Round 4: the section being read, as on the privacy page's index: entries in the supporting colour, the current one
     (prure.js sets aria-current) in ink with an orange bar; the hairline under the label turns orange with the reading
     (--p from data-progress on .article__paper). Without JavaScript every entry stays ink and nothing is marked. */
  .article__toc h2{position:relative;padding-bottom:10px}
  .article__toc h2::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--orange);transform:scaleX(var(--p,0));transform-origin:left}
  .article__toc ol{margin-top:0}
  .article__toc a{position:relative;padding-left:16px}
  .article__toc a:hover,.article__toc a:focus-visible{padding-left:calc(16px + .4em)}
  .article__toc a::after{content:"";position:absolute;left:0;top:10px;bottom:10px;width:2px;background:var(--orange);transform:scaleY(0);transform-origin:top;transition:transform .5s var(--ease)}
  .js .article__toc a{color:var(--paper-muted)}
  .js .article__toc a:hover,.js .article__toc a:focus-visible,.article__toc a[aria-current]{color:var(--paper-ink)}
  .article__toc a[aria-current]::before{color:var(--paper-ink)}
  .article__toc a[aria-current]::after{transform:scaleY(1)}
}

/* The text column: about 68 characters a line. */
.article__body{max-width:34.5em;font-size:clamp(1.06rem,1.6vw,1.16rem);line-height:1.72;overflow-wrap:break-word}
@media (min-width:1000px){.article__body{font-size:1em}}
.article__body>*+*{margin-top:1.25em}
.article__body>:first-child{margin-top:0}
.article__body h2{margin-top:2.1em;font-size:clamp(1.55rem,2.7vw,2.2rem);line-height:1.12;letter-spacing:-.025em}
.article__body h3{margin-top:2em;font-size:clamp(1.25rem,2vw,1.5rem);line-height:1.2;letter-spacing:-.02em}
.article__body h2+*,.article__body h3+*{margin-top:.8em}
.article__body strong{font-weight:600}
.article__body a{color:inherit;text-decoration:underline;text-decoration-color:var(--orange);text-decoration-thickness:2px;text-underline-offset:.2em;transition:background-color .3s}
.article__body a:hover,.article__body a:focus-visible{background:rgba(237,122,28,.2)}
.article__body>ul,.article__body>ol{display:grid;gap:.55em;padding-left:1.5em}
.article__body>ul>li{position:relative}
.article__body>ul>li::before{content:"";position:absolute;left:-1.25em;top:.68em;width:.42em;height:.42em;border-radius:50%;background:var(--orange)}
.article__body>ol{list-style:decimal}
.article__body>ol>li::marker{font-family:var(--heading);font-weight:600}
.article__lead{font-family:var(--heading);font-weight:500;font-size:1.36em;line-height:1.32;letter-spacing:-.015em;text-wrap:pretty}
.article__kicker{font-size:.84em;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--paper-muted)}
.article__body blockquote{position:relative;margin:2.1em 0;padding-left:1.1em;font-family:var(--heading);font-weight:500;font-size:1.42em;line-height:1.26;letter-spacing:-.015em;text-wrap:pretty}
.article__body blockquote::before{content:"";position:absolute;left:0;top:.1em;bottom:.1em;width:3px;background:var(--orange);transform-origin:top}
.article__body blockquote i{font-style:normal}
.js .article__body blockquote[data-in]::before{transform:scaleY(0);transition:transform 1s var(--ease) .15s}
.js .article__body blockquote[data-in].in::before{transform:none}
/* Inline images are the export's own files and are shown at their native size, never larger. */
.article__fig{display:grid;justify-items:center;margin-block:2em;padding:clamp(24px,5vw,40px);border-radius:16px;background:rgba(10,1,24,.055)}
.article__fig figcaption{text-align:center}
.article__fig img{width:calc(var(--w)*1px);max-width:100%;border-radius:10px}
.article__fig figcaption{margin-top:8px;font-size:.84em;color:var(--paper-muted)}
.js .article__fig[data-in] img{clip-path:inset(0 100% 0 0 round 10px);transition:clip-path 1s var(--ease)}
.js .article__fig[data-in].in img{clip-path:inset(0 round 10px)}

.article__foot{display:grid;gap:18px;margin-top:clamp(40px,6vw,72px);padding-top:22px;border-top:1px solid rgba(10,1,24,.16);font-size:1rem}
.article__tags h2{font-family:var(--body);font-size:.82rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;line-height:1.3;color:var(--paper-muted)}
.article__tags ul{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:10px;padding:0;font-size:.92rem;line-height:1.5;color:var(--paper-muted)}

/* Newer / older article */
.article__nav{border-bottom:1px solid rgba(255,255,255,.12)}
.article__steps{display:grid}
.article__step{position:relative;display:grid;grid-template-columns:minmax(0,1fr) clamp(96px,22vw,220px);grid-template-areas:"label fig" "title fig" "time fig";column-gap:clamp(16px,3vw,36px);row-gap:8px;align-content:center;padding-block:clamp(30px,5vw,64px);text-decoration:none;color:inherit}
.article__step+.article__step{border-top:1px solid rgba(255,255,255,.12)}
.article__steplabel{grid-area:label;position:relative;justify-self:start;padding-left:1.2em;font-size:.9rem;font-weight:500;color:var(--peach)}
.article__steplabel::before{content:"";position:absolute;left:.15em;top:.5em;width:.45em;height:.45em;border-bottom:1.5px solid;border-left:1.5px solid;transform:rotate(45deg);transition:transform .35s var(--ease)}
.article__step--older .article__steplabel{padding:0 1.2em 0 0}
.article__step--older .article__steplabel::before{left:auto;right:.15em;border:0;border-top:1.5px solid;border-right:1.5px solid}
.article__step strong{grid-area:title;font-family:var(--heading);font-weight:600;font-size:clamp(1.3rem,2.5vw,2.1rem);line-height:1.12;letter-spacing:-.025em;text-wrap:balance;overflow-wrap:break-word}
.article__step strong span{background:linear-gradient(currentColor,currentColor) no-repeat 0 100%/0 2px;transition:background-size .7s var(--ease)}
.article__step time{grid-area:time;font-size:.9rem;color:var(--muted)}
.article__step figure{grid-area:fig;align-self:center;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:var(--panel)}
.article__step figure img{width:100%;height:100%;object-fit:cover;transition:transform 1.4s var(--ease)}
.article__step:hover strong span,.article__step:focus-visible strong span{background-size:100% 2px}
.article__step:hover figure img,.article__step:focus-visible figure img{transform:scale(1.06)}
.article__step--newer:hover .article__steplabel::before,.article__step--newer:focus-visible .article__steplabel::before{transform:translateX(-4px) rotate(45deg)}
.article__step--older:hover .article__steplabel::before,.article__step--older:focus-visible .article__steplabel::before{transform:translateX(4px) rotate(45deg)}
.article__step:focus-visible{outline-offset:-4px}
@media (min-width:900px){
  .article__steps:not(.article__steps--one){grid-template-columns:repeat(2,minmax(0,1fr))}
  .article__steps--one{grid-template-columns:repeat(2,minmax(0,1fr))}
  .article__steps--one .article__step--older{grid-column:2;padding-inline:clamp(24px,4vw,56px) 0;border-left:1px solid rgba(255,255,255,.12)}
  /* two steps side by side: a smaller cover leaves the title column wider than the cover (it was 144 px at 900 wide) */
  .article__step{grid-template-columns:minmax(0,1fr) clamp(96px,13vw,200px);padding-inline:0 clamp(24px,4vw,56px)}
  .article__step+.article__step{border-top:0;border-left:1px solid rgba(255,255,255,.12);padding-inline:clamp(24px,4vw,56px) 0}
}

/* Closing call (also closes the index) */
.article__ctain>div{container-type:inline-size}
.article__cta .display{font-size:min(clamp(3rem,10vw,9rem),15cqi)}
.article__cta .lede{margin-top:clamp(16px,2vw,26px)}
.article__cta .link{color:#fff}
.article__rule{position:relative;display:block;height:2px;margin-top:clamp(44px,7vw,104px)}
.article__rule::before{content:"";position:absolute;inset:0;background:var(--orange);transform-origin:left}

@media (prefers-reduced-motion:reduce){
  .js .blog__row[data-in] h3,.js .blog__row[data-in] .blog__img,.js .article__fig[data-in] img{clip-path:none;transform:none}
  .js .article__body blockquote[data-in]::before{transform:none}
}

/* ---------- Round 5: Pru on the blog (thinking beside the title, inviting in the closing call) ---------- */
.blog__top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:0 clamp(12px,3vw,48px)}
.blog__top .pru{width:clamp(84px,20vw,180px)}
/* the intro sits in the same grid (round 5): wide screens title + Pru on the first row, the intro under both */
.blog__top>.display{grid-column:1;grid-row:1}
.blog__top>.pru{grid-column:2;grid-row:1}
.blog__top>.blog__intro{grid-column:1/-1;grid-row:2}
.article__ctain{display:grid;gap:clamp(24px,4vw,56px);align-items:end}
.article__ctain>div{min-width:0}
.article__pru{justify-self:end}
@media (min-width:900px){.article__ctain{grid-template-columns:minmax(0,1fr) auto}}
@media (max-width:899px){.article__pru{--pru-w:170px}}
/* phones: title first, then the intro, then Pru (round 5: Pru stood above the title); he stands at the right beside the
   short article count line */
@media (max-width:699px){
  .blog__top{grid-template-columns:minmax(0,1fr)}
  .blog__top>.display,.blog__top>.blog__intro,.blog__top>.pru{grid-column:1;grid-row:auto}
  .blog__top .pru{justify-self:end;width:96px;margin-top:-44px}
  .blog__top .blog__count{padding-right:104px}
}
/* under 360 px the count line needs the whole width: Pru stands on his own line after it */
@media (max-width:359px){.blog__top .pru{margin-top:8px}.blog__top .blog__count{padding-right:0}}
/* Round 6: caption of a dropped export picture, kept as a label because the text refers to it */
.article__label{margin-block:1.6em}
.article__label span{display:inline-block;padding:10px 18px;border-radius:12px;background:rgba(10,1,24,.07);font-family:var(--heading);font-weight:600;letter-spacing:-.01em}
