/* =============================================================================
   Blog, member guides, privacy and 404 (loaded on those pages only).
   Builds on site.css and pages.css. Every "before" state for motion is set by
   the piece scripts, so no-JS and reduced motion show the finished page.
   ========================================================================== */

/* ================================================================ BLOG HERO */
/* a page from the first guide, lying on a small stack of sheets */
.bl-sheet-wrap {
  position: relative; justify-self: center;
  height: min(58vh, 540px); aspect-ratio: .8; max-width: 100%;
}
.bl-sheet { position: absolute; inset: 0; border-radius: 24px; }
.bl-sheet-3 { background: var(--pine); transform: rotate(7deg) translate(7%, 3%); box-shadow: 0 40px 70px -40px rgba(4,26,16,.6); }
.bl-sheet-2 { background: var(--mint-deep); transform: rotate(3deg) translate(3.5%, 1.5%); }
.bl-page {
  display: flex; flex-direction: column; gap: clamp(.8rem, 1.8vh, 1.2rem);
  padding: clamp(22px, 2.4vw, 34px); overflow: hidden;
  background: radial-gradient(120% 90% at 90% 0%, rgba(220,238,226,.9) 0%, #fff 52%);
  color: var(--ink); text-decoration: none;
  box-shadow: 0 50px 80px -40px rgba(12,59,39,.55), 0 0 0 1px rgba(12,59,39,.06);
  transform: rotate(-2deg); transform-style: preserve-3d;
}
.bl-page::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(rgba(12,59,39,.12) 1px, transparent 1.4px); background-size: 12px 12px; opacity: .45;
}
.bl-page > span { position: relative; z-index: 1; }
.bl-page .card-glare { position: absolute; z-index: 3; border-radius: inherit; }
.bl-page-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bl-page-top img { height: clamp(38px, 5vh, 50px); width: auto; }
.bl-page-tag { flex: none; padding: .5rem .85rem; border-radius: 999px; background: var(--mint); color: var(--tick-dark); font-weight: 600; font-size: 1rem; line-height: 1; }
.bl-page-h {
  display: block; margin-top: clamp(.4rem, 1.5vh, 1rem);
  font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96; letter-spacing: -.03em;
  font-size: clamp(1.7rem, min(2.6vw, 4.4vh), 2.5rem); line-height: 1.04; color: var(--pine);
}
.bl-page-text {
  display: block; flex: 1 1 auto; min-height: 0;
  font-size: 1.0625rem; line-height: 1.6; color: rgba(14,21,18,.74);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0,0,0,.2) 100%);
          mask-image: linear-gradient(180deg, #000 55%, rgba(0,0,0,.2) 100%);
}
.bl-page-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 1.0625rem; color: var(--pine); }
.bl-page-go { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--tick); color: #fff; transition: transform .3s, background-color .3s; }
.bl-page-go svg { width: 22px; height: 22px; }
.bl-page:hover .bl-page-go { transform: translateX(5px); background: var(--tick-dark); }
.bl-chip { left: -18px; bottom: 30px; z-index: 5; }
@media (max-width: 699px) {
  .bl-sheet-wrap { height: auto; aspect-ratio: auto; width: 100%; }
  .bl-page { position: relative; min-height: 420px; }
  .bl-chip { left: -6px; bottom: -18px; }
}

/* ======================================================= HOVER-PREVIEW LIST */
.gl-grid { display: grid; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
@media (min-width: 960px) { .gl-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 38%); } }
.gl-head { margin-bottom: clamp(1.4rem, 3vh, 2.2rem); }
.gl-head .h2 { margin-bottom: .35em; }
.gl-head p { margin: 0; color: rgba(14,21,18,.76); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }

.gl-list { border-top: 1px solid rgba(12,59,39,.16); }
.gl-item { position: relative; border-bottom: 1px solid rgba(12,59,39,.16); }
.gl-link {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: center;
  padding: clamp(1rem, 2.4vh, 1.5rem) clamp(.6rem, 1.4vw, 1.3rem);
  color: var(--ink); text-decoration: none;
}
.gl-band {
  position: absolute; inset: 6px 0; z-index: -1; border-radius: 18px;
  background: rgba(255,255,255,.78); box-shadow: 0 24px 40px -34px rgba(12,59,39,.55);
  transform: scaleX(0); transform-origin: left center; transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.gl-item.is-on .gl-band, .gl-link:focus-visible .gl-band { transform: scaleX(1); }
.gl-text { display: block; min-width: 0; }
.gl-h {
  display: block; font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(1.35rem, 1.9vw, 1.8rem); line-height: 1.1; letter-spacing: -.025em; color: var(--pine);
  transition: color .3s;
}
.gl-p { display: block; margin-top: .35rem; font-size: 1.0625rem; line-height: 1.5; color: rgba(14,21,18,.76); }
.gl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .55rem; font-weight: 600; font-size: 1rem; color: var(--tick-dark); }
.gl-meta .tick { width: 1.2em; height: 1.2em; }
.gl-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; margin-inline: .2rem; }
.gl-go {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(12,59,39,.22); color: var(--pine);
  transition: background-color .35s, color .35s, box-shadow .35s, transform .35s;
}
.gl-go svg { width: 22px; height: 22px; }
.gl-item.is-on .gl-h { color: var(--tick-dark); }
.gl-item.is-on .gl-go, .gl-link:hover .gl-go { background: var(--tick); color: #fff; box-shadow: none; transform: translateX(4px); }

/* the pane: three stacked pictures, one showing at a time */
.gl-pane { position: relative; width: min(100%, calc(min(62vh, 600px) * .8)); justify-self: center; }
.gl-slab, .gl-line { position: absolute; inset: 0; border-radius: var(--r-lg); pointer-events: none; }
.gl-slab { z-index: 0; background: #AEDCBE; transform: translate(calc(var(--off) * 1.9), calc(var(--off) * 1.9)); }
.gl-line { z-index: 1; border: 1px solid var(--tick); transform: translate(var(--off), var(--off)); }
.gl-stack {
  position: relative; z-index: 2; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--r-lg); background: var(--pine);
  box-shadow: 0 40px 70px -40px rgba(12,59,39,.6);
}
.gl-shot { position: absolute; inset: 0; margin: 0; opacity: 0; z-index: 1; }
.gl-shot[data-on] { opacity: 1; z-index: 2; }
.gl-shot img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.gl-cap { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
/* without the crossfade (no JS, reduced motion) only the chosen picture exists */
html.no-js .gl-shot:not([data-on]), html.reduced .gl-shot:not([data-on]) { display: none; }
@media (max-width: 959px) {
  .gl-pane { order: -1; width: 100%; }
  .gl-stack { aspect-ratio: 4 / 3; max-height: 52vh; width: 100%; }
}

/* ============================================================ BROCHURE BOOK */
.bk { overflow: clip; }
.bk .duo-media { display: grid; place-items: center; }
.bk-book {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  width: min(86%, calc(var(--media-cap) * .68)); aspect-ratio: 1 / 1.414;
  perspective: 1600px; margin: 0 auto clamp(1rem, 2vw, 1.6rem);
}
.bk-page {
  position: absolute; inset: 0; overflow: hidden; border-radius: 10px 22px 22px 10px;
  background: #fff; transform: rotate(6deg) translate(12%, 3%);
  box-shadow: 0 40px 70px -40px rgba(0,0,0,.65);
}
.bk-photo { position: absolute; inset: -6% 14px; overflow: hidden; border-radius: 12px; }
.bk-page::after { content: ""; position: absolute; inset: 0; border: 14px solid #fff; border-radius: inherit; pointer-events: none; }
.bk-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.bk-cover {
  position: absolute; inset: 0; z-index: 2; overflow: hidden;
  display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px) clamp(30px, 3vw, 42px);
  border-radius: 10px 22px 22px 10px;
  background: linear-gradient(165deg, #fff 0%, #F1F8F3 40%, var(--mint) 100%);
  box-shadow: 0 50px 80px -36px rgba(0,0,0,.7);
  transform-origin: left center; transform: rotateY(-8deg);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.bk-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, rgba(12,59,39,.2), rgba(12,59,39,0)); }
.bk-cover .grain { mix-blend-mode: multiply; opacity: .05; }
.bk-logo { position: relative; z-index: 1; height: clamp(44px, 6vh, 64px); width: auto; align-self: flex-start; }
.bk-mark { position: absolute; right: -20%; bottom: 12%; width: 86%; height: auto; color: var(--tick); opacity: .14; }
.bk-title {
  position: relative; z-index: 1; margin-top: auto;
  font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96; letter-spacing: -.035em;
  font-size: clamp(1.9rem, min(3vw, 5vh), 3rem); line-height: 1; color: var(--pine);
}
.bk-sub { position: relative; z-index: 1; margin-top: .7rem; font-weight: 600; font-size: 1.0625rem; color: var(--tick-dark); }
.bk-chip { left: -14px; bottom: 34px; z-index: 5; }
@media (any-hover: hover) and (any-pointer: fine) {
  .bk-book:hover .bk-cover { transform: rotateY(-30deg); }
}
.bk .ticks { margin-bottom: 0; }
.pn-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1.4rem, 2.6vw, 2rem); }

/* ================================================================ POST HERO */
.ph {
  position: relative; isolation: isolate; overflow: clip;
  background: linear-gradient(176deg, #EEF6F0 0%, var(--mint) 55%, #E6F2E9 100%);
  padding: clamp(118px, 15vh, 170px) 0 clamp(3rem, 8vh, 5.5rem);
}
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(12,59,39,.15) 1px, transparent 1.6px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 60% at 80% 10%, #000 0%, transparent 75%);
          mask-image: radial-gradient(80% 60% at 80% 10%, #000 0%, transparent 75%);
}
.ph .crumbs li { color: rgba(14,21,18,.62); }
.ph .crumbs a { color: var(--ink); }
.ph .crumbs a:hover, .ph .crumbs [aria-current] { color: var(--tick-dark); }
.ph .h1 { font-size: clamp(2.5rem, min(5.4vw, 9vh), 5.4rem); color: var(--pine); margin-bottom: .3em; }
.ph-sub { display: grid; gap: 1.1rem 3rem; }
@media (min-width: 1000px) { .ph-sub { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.ph .lead { margin: 0; color: rgba(14,21,18,.8); }
.ph-meta { display: flex; flex-wrap: wrap; gap: .6rem; }
.ph-meta li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.05rem; border-radius: 999px;
  background: var(--paper); box-shadow: 0 14px 30px -18px rgba(12,59,39,.5);
  font-weight: 600; font-size: 1rem; line-height: 1; color: var(--pine);
}
.ph-meta .tick { width: 1.25em; height: 1.25em; }

.ph-stage { position: relative; isolation: isolate; margin-top: clamp(1.8rem, 4.5vh, 3rem); height: clamp(300px, 60vh, 660px); }
.ph-media {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; background: var(--pine);
  /* resting (framed) state; the script opens it to full-bleed and closes it on scroll */
  clip-path: inset(0 max(var(--gut), calc(50% - 720px)) round var(--r-lg));
}
.ph-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 45%); transform-origin: 50% 55%; }
.ph-deco, .ph-over { position: absolute; top: 0; bottom: 0; left: 0; right: 0; pointer-events: none; }
.ph-deco { z-index: 0; }
.ph-over { z-index: 2; }
.ph-slab, .ph-line { position: absolute; inset: 0; border-radius: var(--r-lg); }
.ph-slab { background: #AEDCBE; transform: translate(calc(var(--off) * 1.9), calc(var(--off) * 1.9)); }
.ph-line { border: 1px solid var(--tick); transform: translate(var(--off), var(--off)); }
.ph-chip { position: absolute; left: -6px; bottom: 22px; }

/* ============================================================ GUIDE ARTICLE */
.pa-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (min-width: 900px) {
  .pa-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .pr-rail { grid-column: 1 / -1; }
  .pa-aside { position: sticky; top: 110px; }
}
@media (min-width: 1180px) {
  .pa-grid { grid-template-columns: 210px minmax(0, 1fr) 300px; }
  .pr-rail { grid-column: auto; position: sticky; top: 110px; }
}

/* reading rail */
.pr-rail { padding: clamp(18px, 2vw, 24px); border-radius: 20px; background: var(--paper); box-shadow: 0 24px 46px -34px rgba(12,59,39,.5); }
@media (min-width: 1180px) { .pr-rail { padding: 0; background: none; box-shadow: none; } }
.pr-title { margin: 0 0 .6rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.015em; color: var(--pine); }
.pr-track { position: relative; padding-left: 24px; }
.pr-line { position: absolute; left: 5px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; background: rgba(12,59,39,.14); overflow: hidden; }
.pr-line i { position: absolute; inset: 0; background: var(--tick); transform-origin: top center; transform: scaleY(0); }
.pr-track ol { display: grid; }
@media (min-width: 640px) and (max-width: 1179px) { .pr-track ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } .pr-line { display: none; } }
.pr-track a {
  position: relative; display: flex; align-items: center; min-height: 44px; padding: .35rem 0;
  font-weight: 600; font-size: 1rem; line-height: 1.3; color: rgba(14,21,18,.64); text-decoration: none;
  transition: color .3s;
}
.pr-track a:hover { color: var(--tick-dark); }
.pr-dot {
  position: absolute; left: -24px; top: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%;
  background: var(--chalk); border: 2px solid rgba(12,59,39,.28);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.pr-track a.is-done .pr-dot { border-color: var(--tick); }
.pr-track a.is-on { color: var(--pine); }
.pr-track a.is-on .pr-dot { background: var(--tick); border-color: var(--tick); box-shadow: 0 0 0 4px rgba(20,155,68,.2); }
.pr-time { margin: .9rem 0 0; font-weight: 600; font-size: 1rem; color: var(--tick-dark); }

/* the prose column */
.pa-prose, .pv-prose { min-width: 0; }
.pa-sec { scroll-margin-top: 110px; }
.pa-sec + .pa-sec { padding-top: clamp(1.8rem, 3.6vw, 2.8rem); }
.prose strong { color: var(--pine); font-weight: 700; }
.prose p:last-child { margin-bottom: 0; }
@media (min-width: 560px) { .prose ul.pa-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
.pa-fig { margin: clamp(1.6rem, 3vw, 2.4rem) 0 clamp(2.2rem, 3.6vw, 3rem); }
.pa-fig .frame:not(.frame-white) { aspect-ratio: 16 / 10; max-height: var(--media-cap); }
.pa-fig .frame:not(.frame-white) > img { height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); }
.pa-apps-row { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); align-items: start; }
.pa-apps-row img { width: 100%; height: auto; max-height: calc(var(--media-cap) - 70px); object-fit: contain; border-radius: 14px; box-shadow: 0 18px 36px -24px rgba(12,59,39,.45); }

/* join card */
.jc {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg);
  padding: clamp(22px, 2.2vw, 30px); background: var(--pine); color: #fff; --focus: var(--mint-deep);
  box-shadow: 0 40px 70px -40px rgba(4,26,16,.7);
}
.jc-mark { position: absolute; right: -22%; top: -8%; width: 74%; height: auto; color: var(--mint-deep); opacity: .12; z-index: 0; pointer-events: none; }
.jc > :not(.grain):not(.jc-mark) { position: relative; z-index: 1; }
.jc-h { margin: 0 0 .7rem; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: #fff; }
.jc-price { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .7rem; font-weight: 600; color: rgba(255,255,255,.82); }
.jc-n {
  font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96; letter-spacing: -.03em;
  font-size: clamp(2.8rem, 3.4vw, 3.4rem); line-height: 1; color: #fff;
  text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: .08em; text-underline-offset: .14em;
}
.jc-p { margin: 0 0 1.1rem; font-size: 1.0625rem; color: rgba(255,255,255,.86); }
.jc-ticks { margin-bottom: 1.4rem; }
.jc-link {
  display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; margin-top: .5rem;
  font-weight: 600; font-size: 1.0625rem; color: #fff; text-decoration: underline; text-underline-offset: .22em;
}
.jc-link svg { width: 1.15em; height: 1.15em; }
.jc-link:hover { color: var(--mint-deep); }

/* next guide */
.pn { overflow: clip; }
.pn-mark { position: absolute; left: -5%; bottom: -14%; width: min(32vw, 440px); height: auto; color: var(--mint-deep); opacity: .08; z-index: 0; pointer-events: none; }
.pn-frame { display: block; width: 100%; }
.pn .h2 { font-size: clamp(2rem, 3.2vw, 3.3rem); }

/* reading progress along the top of the window */
.pr-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 130; pointer-events: none; }
.pr-bar i { display: block; height: 100%; background: var(--tick); transform-origin: left center; transform: scaleX(0); }
html.no-js .pr-bar { display: none; }

/* ================================================================== PRIVACY */
.pv-hero { min-height: min(70svh, 700px); display: grid; align-items: end; }
.pv-hero .h1 { margin-bottom: .3em; }
.lh-facts { display: flex; flex-wrap: wrap; gap: .7rem 1.8rem; margin-top: clamp(1.4rem, 3vh, 2.2rem); }
.lh-facts li { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.0625rem; color: #fff; }
.lh-facts .tick { width: 1.3em; height: 1.3em; color: var(--mint-deep); }
.pv-prose { font-size: clamp(1.0625rem, 1.25vw, 1.2rem); }
.pv .toc a { display: flex; align-items: center; min-height: 44px; padding: .25rem 0 .25rem .9rem; position: relative; }
.pv .toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: rgba(12,59,39,.3); transition: background-color .3s, transform .3s; }
.pv .toc a.is-on::before { background: var(--tick); transform: scale(1.8); }

/* ====================================================================== 404 */
.nf {
  position: relative; isolation: isolate; overflow: clip; min-height: 100svh;
  display: grid; align-items: center; color: #fff; --focus: var(--mint-deep);
  background: radial-gradient(70% 80% at 85% 20%, #134B33 0%, var(--pine) 60%);
  padding: clamp(120px, 16vh, 180px) 0 clamp(3rem, 8vh, 5.5rem);
}
.nf::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.6px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 70% at 20% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 20% 30%, #000 0%, transparent 75%);
}
.nf > .grain { z-index: 0; }
.nf > .shell { position: relative; z-index: 1; }
.nf-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
@media (min-width: 1000px) { .nf-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.nf .h1 { font-size: clamp(2.7rem, min(6.2vw, 10vh), 6rem); margin-bottom: .32em; }
.nf .lead { margin: 0; color: rgba(255,255,255,.88); }
.nf-links { margin: 0; }

/* the tick that breaks and draws itself again (pure CSS, so it works without JS) */
.nf-tick { display: block; width: clamp(110px, min(15vw, 20vh), 200px); height: auto; margin: 0 0 clamp(1rem, 3vh, 2rem) -.4rem; overflow: visible; color: var(--mint-deep); }
.nf-tick path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nf-ghost { opacity: .16; }
.nf-a, .nf-b { stroke-dasharray: 1 2; stroke-dashoffset: 0; transform-origin: 9px 17.5px; }
.nf-a { animation: nf-a 7.5s cubic-bezier(.6,0,.3,1) 1s infinite; }
.nf-b { animation: nf-b 7.5s cubic-bezier(.6,0,.3,1) 1s infinite; }
@keyframes nf-b {
  0%, 12% { transform: none; stroke-dashoffset: 0; opacity: 1; }
  16%     { transform: rotate(10deg); }
  19%     { transform: rotate(6deg); }
  32%     { transform: translate(1.5px, 7px) rotate(40deg); opacity: 0; stroke-dashoffset: 0; }
  33%     { transform: none; opacity: 0; stroke-dashoffset: 1; }
  49%     { transform: none; opacity: 0; stroke-dashoffset: 1; }
  50%     { opacity: 1; stroke-dashoffset: .98; }
  64%     { stroke-dashoffset: 0; }
  100%    { transform: none; stroke-dashoffset: 0; opacity: 1; }
}
@keyframes nf-a {
  0%, 18% { transform: none; stroke-dashoffset: 0; opacity: 1; }
  24%     { transform: translate(-.6px, .8px) rotate(-7deg); }
  35%     { transform: translate(-1px, 6px) rotate(-26deg); opacity: 0; stroke-dashoffset: 0; }
  36%     { transform: none; opacity: 0; stroke-dashoffset: 1; }
  39%     { transform: none; opacity: 0; stroke-dashoffset: 1; }
  40%     { opacity: 1; stroke-dashoffset: .98; }
  50%     { stroke-dashoffset: 0; }
  100%    { transform: none; stroke-dashoffset: 0; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-a, .nf-b { animation: none; }
}

/* QA: hero sheet and brochure book sit at the start of their columns */
@media (min-width: 1000px) {
  .bl-sheet-wrap { justify-self: start; }
  .bk .duo-media { place-items: center start; }
}
/* QA: the arrow sits level with the guide title, not centred below the space beside it */
.gl-link { align-items: start; }
.gl-go { margin-top: .15rem; }

@media (min-width: 1000px) { .bk-book { margin-left: 0; } }
/* phones: the whole row is the link, so the round arrow gives its width back to the text */
@media (max-width: 559px) {
  .gl-link { grid-template-columns: minmax(0, 1fr); }
  .gl-go { display: none; }
}
@media (min-width: 960px) { .gl-pane { justify-self: start; } }

/* the topic chip sits at the top of the photo, on the first screen */
.ph-chip { bottom: auto; top: 22px; }

/* the join card keeps its watermark inside its own edges */
.jc { position: relative; overflow: clip; }

/* ============================================================ ARTICLE FEED */
/* The client's Soro embed (#soro-blog) injects its own light stylesheet after ours; every rule
   here is prefixed with #soro-blog so it wins. List view: the newest article as a wide feature,
   then a grid, paged by soro-feed.js. Article view (.is-reading): the article beside a sticky
   membership card. */
.sf-body { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.sf-main { min-width: 0; }
.sf:not(.is-reading) .sf-aside { display: none; }
.sf.is-reading .sf-head, .sf.is-reading .sf-more { display: none; }
.sf.sf-direct { padding-top: clamp(130px, 13vw, 180px); }
@media (min-width: 980px) {
  .sf.is-reading .sf-body { grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 380px); }
}
#soro-blog { scroll-margin-top: 110px; }
#soro-blog:empty { min-height: 60vh; }
.sf-note { margin: 0; padding: 1.2rem 1.4rem; border-radius: var(--r-md); background: var(--mint); font-weight: 600; }

#soro-blog .soro-blog { max-width: none; margin: 0; font-family: var(--body); color: var(--ink); }

/* list ------------------------------------------------------------------ */
#soro-blog .soro-blog-list {
  display: grid; gap: clamp(18px, 2vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
#soro-blog .soro-blog-card[hidden] { display: none; }
#soro-blog .soro-blog-card {
  position: relative; display: flex; flex-direction: column; gap: 0; padding: 0;
  border: 0; border-radius: var(--r-md); overflow: clip; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(12,59,39,.07), 0 30px 50px -40px rgba(12,59,39,.55);
  transition: box-shadow .35s, transform .45s cubic-bezier(.2,.7,.2,1);
}
#soro-blog .soro-blog-card:hover { box-shadow: 0 0 0 1px rgba(20,155,68,.35), 0 40px 60px -38px rgba(12,59,39,.6); transform: translateY(-4px); }
#soro-blog .soro-blog-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
#soro-blog .soro-blog-card-image {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; flex: none;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
#soro-blog .soro-blog-card:hover .soro-blog-card-image { transform: scale(1.05); }
#soro-blog .soro-blog-card-content {
  position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1 1 auto;
  padding: clamp(18px, 1.8vw, 26px) clamp(18px, 1.8vw, 26px) clamp(20px, 2vw, 28px);
  background: var(--paper);
}
#soro-blog .soro-blog-card-title, #soro-blog h2.soro-blog-card-title {
  margin: 0 0 .5rem; font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(1.3rem, 1.6vw, 1.5rem); line-height: 1.12; letter-spacing: -.025em; color: var(--pine);
  transition: color .3s;
}
#soro-blog .soro-blog-card:hover .soro-blog-card-title { color: var(--tick-dark); }
#soro-blog .soro-blog-card-excerpt {
  margin: 0 0 1.1rem; font-size: 1.0625rem; line-height: 1.55; color: rgba(14,21,18,.76);
  -webkit-line-clamp: 3;
}
#soro-blog .soro-blog-card-date {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto;
  font-size: 1rem; font-weight: 600; color: var(--tick-dark);
}
/* the arrow button in the corner of each card */
#soro-blog .soro-blog-card-date::after {
  content: ""; flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%230C3B27' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  transition: transform .35s, background-color .35s;
}
#soro-blog .soro-blog-card:hover .soro-blog-card-date::after { transform: translateX(4px); background-color: var(--mint-deep); }

/* the newest article, full width */
@media (min-width: 900px) {
  #soro-blog .soro-blog-card.sf-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
  #soro-blog .sf-lead .soro-blog-card-image { height: 100%; max-height: min(62vh, 520px); aspect-ratio: auto; min-height: 320px; }
  #soro-blog .sf-lead .soro-blog-card-content { justify-content: center; padding: clamp(28px, 3.4vw, 56px); }
  #soro-blog .sf-lead .soro-blog-card-title { font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.05; margin-bottom: .8rem; }
  #soro-blog .sf-lead .soro-blog-card-excerpt { font-size: clamp(1.0625rem, 1.2vw, 1.2rem); -webkit-line-clamp: 4; margin-bottom: 1.6rem; }
  #soro-blog .sf-lead .soro-blog-card-date { margin-top: 0; }
  #soro-blog .sf-lead .soro-blog-card-content::before {
    content: "Newest"; align-self: flex-start; margin-bottom: 1rem; padding: .45rem .8rem;
    border-radius: 999px; background: var(--honey); color: var(--pine); font-weight: 700; font-size: 1rem; line-height: 1;
  }
}

/* paging: count, progress line and the button */
.sf-more { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.sf-more[hidden] { display: none; }
.sf-more .btn[hidden] { display: none; }
#soro-blog .soro-blog-card.sf-rising { transition: none; }
.sf-count { margin: 0; font-weight: 600; color: rgba(14,21,18,.78); }
.sf-count b { color: var(--pine); }
.sf-bar { position: relative; flex: 1 1 160px; max-width: 360px; height: 4px; border-radius: 4px; background: rgba(12,59,39,.12); overflow: hidden; }
.sf-bar i { position: absolute; inset: 0; background: var(--tick); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform .8s cubic-bezier(.2,.7,.2,1); }

/* article --------------------------------------------------------------- */
#soro-blog .soro-blog-header { margin-bottom: clamp(1.2rem, 2.4vw, 2rem); }
#soro-blog .soro-blog-back {
  min-height: 48px; padding: .5rem 1.3rem; gap: .5rem; border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(12,59,39,.24); color: var(--ink); font-weight: 600; font-size: 1rem;
  background: transparent; transition: box-shadow .25s, color .25s;
}
#soro-blog .soro-blog-back:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tick); color: var(--tick-dark); }
#soro-blog .soro-blog-article-title {
  margin: 0 0 .5em; font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem); line-height: 1.04; letter-spacing: -.03em; color: var(--pine);
}
#soro-blog .soro-blog-article-date { display: block; margin-bottom: clamp(1.2rem, 2.4vw, 2rem); font-size: 1.0625rem; font-weight: 600; color: var(--tick-dark); }
#soro-blog .soro-blog-article-image {
  width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: min(64vh, 560px); object-fit: cover;
  border-radius: var(--r-lg); margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: 0 40px 70px -44px rgba(12,59,39,.6);
}
#soro-blog .soro-blog-article-content { font-size: clamp(1.0625rem, 1.15vw, 1.15rem); line-height: 1.72; color: rgba(14,21,18,.86); }
#soro-blog .soro-blog-article-content h1,
#soro-blog .soro-blog-article-content h2,
#soro-blog .soro-blog-article-content h3 {
  font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96; letter-spacing: -.025em;
  color: var(--pine); line-height: 1.12; margin: 2.2rem 0 .8rem;
}
#soro-blog .soro-blog-article-content h2 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); }
#soro-blog .soro-blog-article-content h3 { font-size: clamp(1.3rem, 1.7vw, 1.55rem); font-weight: 700; }
#soro-blog .soro-blog-article-content p { margin: 0 0 1.1em; }
#soro-blog .soro-blog-article-content ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1.2em; }
#soro-blog .soro-blog-article-content ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1.2em; }
#soro-blog .soro-blog-article-content li { margin-bottom: .5em; padding-left: .2em; }
#soro-blog .soro-blog-article-content li::marker { color: var(--tick); font-weight: 700; }
#soro-blog .soro-blog-article-content a { color: var(--tick-dark); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
#soro-blog .soro-blog-article-content a:hover { color: var(--pine); }
#soro-blog .soro-blog-article-content img { border-radius: var(--r-md); max-height: min(70vh, 640px); width: auto; }
#soro-blog .soro-blog-article-content blockquote {
  margin: 1.6em 0; padding: 1rem 1.4rem; border-left: 4px solid var(--tick); border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--mint); color: var(--pine); font-weight: 500;
}
#soro-blog .soro-blog-article-content table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.4em; font-size: 1rem; }
#soro-blog .soro-blog-article-content th, #soro-blog .soro-blog-article-content td { padding: .6rem .9rem; border-bottom: 1px solid rgba(12,59,39,.14); text-align: left; vertical-align: top; }
#soro-blog .soro-blog-article-content th { color: var(--pine); font-weight: 700; }
#soro-blog .soro-blog-loading, #soro-blog .soro-blog-error, #soro-blog .soro-blog-empty { min-height: 40vh; font-size: 1.0625rem; }
#soro-blog .soro-blog-spinner { border-color: var(--mint); border-top-color: var(--tick); }

/* the membership card beside an article */
.sf-aside { position: sticky; top: 110px; }
.sf-card { border-radius: var(--r-md); overflow: clip; background: var(--pine); color: #fff; box-shadow: 0 40px 70px -44px rgba(12,59,39,.7); }
.sf-card-shot { aspect-ratio: 16 / 10; overflow: hidden; }
.sf-card-shot img { width: 100%; height: 100%; object-fit: cover; }
.sf-card-body { position: relative; padding: clamp(20px, 2vw, 28px); }
.sf-card-body .h3 { color: #fff; margin-bottom: .35em; }
.sf-card-body > p { color: rgba(255,255,255,.86); margin-bottom: .9rem; }
.sf-card-body .ticks { margin: 0 0 1.3rem; }
.sf-card-body .ticks li { color: #fff; }
.sf-card-body .tick { color: var(--mint-deep); }
.sf-all {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; min-height: 44px;
  color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: .22em;
}
.sf-all svg { width: 18px; height: 18px; }
.sf-all:hover { text-decoration-color: var(--mint-deep); }
@media (max-width: 979px) { .sf-aside { position: static; } }
