/* pages-stories: owned by the stories builder (prefix .st-) */

/* The story artwork is a coloured frame on a white square: multiply lets the page colour show through. */
.st-card__media { background: var(--cream); aspect-ratio: 4 / 3; }
.st-card__media img, .st-feature__media img, .st-hero__img, .st-pn__thumb img { mix-blend-mode: multiply; }
.st-card__media img { transform: scale(1.14); object-fit: cover; }
.card:hover .st-card__media img { transform: scale(1.2); }
.st-card .card__title { font-size: clamp(19px, 1.55vw, 23px); line-height: 1.18; }
.st-card .card__body p { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.st-card .card__title a { background: none; }
.st-more .arrow { transition: transform .4s var(--ease); }
.card:hover .st-more .arrow, .st-feature:hover .btn .arrow { transform: translateX(5px); }
.st-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .st-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .st-grid--4 { grid-template-columns: 1fr; } }

/* ---------- listing hero ---------- */
.st-lhero { padding-bottom: clamp(40px, 6vw, 80px); }
.st-lhero h1 { max-width: none; }
.st-lhero .lead { max-width: 56ch; }
.st-list { background: var(--paper); padding-top: clamp(48px, 7vw, 90px); }

/* ---------- featured ---------- */
.st-feature { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; margin-bottom: clamp(48px, 7vw, 90px); padding: clamp(20px, 3vw, 40px); border-radius: var(--r-xl); background: var(--cream); box-shadow: var(--shadow-2); overflow: hidden; }
.st-feature::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.st-feature::after { content: ""; position: absolute; right: -12%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: var(--sunrise); opacity: .16; filter: blur(8px); pointer-events: none; }
.st-feature__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); background: var(--cream); }
.st-feature__media img { width: 100%; height: 118%; object-fit: cover; transform-origin: 50% 50%; }
.st-feature__media .tag { position: absolute; top: 16px; left: 16px; z-index: 1; background: rgba(255,253,248,.92); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.st-feature__body { position: relative; z-index: 1; }
.st-feature__title { font-size: clamp(28px, 3.4vw, 50px); line-height: 1.06; margin: .3em 0 .5em; }
.st-feature__title a { background: none; }
.st-feature .lead { margin-bottom: 1.4em; }
@media (max-width: 900px) { .st-feature { grid-template-columns: 1fr; } }

/* ---------- pager ---------- */
.st-pager { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 18px); margin-top: clamp(48px, 7vw, 90px); }
.st-pager__nums { display: flex; gap: clamp(4px, 1vw, 10px); flex-wrap: wrap; justify-content: center; }
.st-pager__n, .st-pager__arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--cream); box-shadow: var(--shadow-1); transition: transform .4s var(--ease-bounce), background .3s, color .3s, box-shadow .3s; }
.st-pager__n:hover, .st-pager__arrow:hover { transform: translateY(-4px) scale(1.06); background: var(--marigold); box-shadow: var(--shadow-glow); }
.st-pager__n.is-cur { background: var(--ink); color: var(--paper); pointer-events: none; }
.st-pager__arrow.is-off { opacity: .3; box-shadow: none; }
@media (max-width: 520px) { .st-pager__n, .st-pager__arrow { width: 32px; height: 32px; font-size: 13px; } .st-pager { gap: 2px; } .st-pager__nums { flex-wrap: nowrap; gap: 3px; } }

/* ---------- CTA ---------- */
.st-cta { overflow: hidden; text-align: center; }
.st-cta__glow { position: absolute; left: 50%; top: -30%; width: 70vmax; aspect-ratio: 1; margin-left: -35vmax; border-radius: 50%; background: var(--sunrise); opacity: .22; filter: blur(80px); pointer-events: none; }
.st-cta__in { position: relative; max-width: 820px; }
.st-cta h2 { color: #fff; }
.st-cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---------- story hero ---------- */
.st-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--sunrise-soft); padding: calc(var(--header-h) + clamp(40px, 6vw, 90px)) 0 clamp(50px, 7vw, 100px); }
.st-hero__sun { position: absolute; right: -10vw; top: -14vw; width: 46vw; aspect-ratio: 1; border-radius: 50%; background: var(--sunrise); opacity: .3; filter: blur(12px); z-index: -2; }
.st-hero__num { position: absolute; left: -2vw; bottom: -.22em; font-family: var(--f-display); font-weight: 700; font-size: clamp(180px, 34vw, 520px); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px rgba(30,24,20,.09); z-index: -1; pointer-events: none; user-select: none; }
.st-hero__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.st-hero .crumbs { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.st-hero .crumbs a:hover { color: var(--saffron); }
.st-title { font-size: clamp(34px, 4.9vw, 74px); line-height: 1.04; letter-spacing: -.028em; max-width: 18ch; margin-bottom: 0; text-wrap: balance; }
.st-hero__fig { margin: 0; position: relative; rotate: 1.6deg; }
.st-hero__img { width: 100%; height: auto; transform-origin: 50% 50%; filter: drop-shadow(0 24px 40px rgba(120, 50, 10, .18)); }
@media (max-width: 900px) {
  .st-hero__grid { grid-template-columns: 1fr; }
  .st-title { max-width: none; }
  .st-hero__fig { max-width: 520px; width: 100%; margin-inline: auto; }
}

/* Typographic hero: no image available */
.st-hero--type .st-hero__grid { grid-template-columns: 1fr; }
.st-hero--type { padding-bottom: clamp(70px, 10vw, 150px); }
.st-hero--type .st-title { max-width: 20ch; font-size: clamp(38px, 6.6vw, 104px); }
.st-hero--type .st-hero__num { left: auto; right: -1vw; bottom: -.18em; -webkit-text-stroke-color: rgba(233, 80, 79, .22); }
.st-hero--type .st-title::after { content: ""; display: block; width: clamp(80px, 12vw, 160px); height: 8px; border-radius: 8px; background: var(--sunrise); margin-top: .5em; }

/* ---------- article ---------- */
.st-bodysec { background: var(--paper); padding-block: clamp(56px, 8vw, 110px); }
.st-layout { display: grid; grid-template-columns: 180px minmax(0, 720px); gap: clamp(28px, 6vw, 90px); justify-content: center; }
.st-aside__in { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 6px; justify-items: start; }
.st-aside__no { font-family: var(--f-display); font-size: clamp(64px, 7vw, 104px); line-height: .9; font-weight: 700; letter-spacing: -.05em; color: var(--saffron); }
.st-aside__of { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.st-body { font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.85; }
.st-body > p { color: var(--ink-2); margin-bottom: 1.5em; }
.st-body > p:first-child { font-size: 1.18em; line-height: 1.65; color: var(--ink); }
.st-body > p:first-child::first-letter { float: left; font-family: var(--f-display); font-weight: 700; font-size: 4.6em; line-height: .78; padding: .08em .1em 0 0; color: var(--saffron); font-variation-settings: "SOFT" 100, "opsz" 144; }
.st-quote { margin: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 64px) -2%; padding: 0 0 0 clamp(44px, 5vw, 72px); border-left: 0; }
.st-quote::before { left: 0; top: -.15em; font-size: 4.2em; }
.st-quote p { margin: 0; color: var(--ink); font-size: inherit; line-height: inherit; }
.st-quote::after { content: ""; display: block; width: 72px; height: 4px; border-radius: 4px; background: var(--sunrise); margin-top: 24px; }
.st-end { text-align: center; color: var(--marigold); font-size: 28px; margin: 1em 0 0; }
@media (max-width: 900px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-aside { display: none; }
  .st-quote { margin-left: 0; padding-left: 38px; }
}

/* ---------- prev / next ---------- */
.st-pn { padding-block: clamp(40px, 6vw, 80px); }
.st-pn__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 28px); }
.st-pn__item { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--r-lg); background: var(--cream); box-shadow: var(--shadow-1); transition: transform .5s var(--ease), box-shadow .5s var(--ease); min-width: 0; }
.st-pn__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.st-pn__item--next { flex-direction: row-reverse; text-align: right; }
.st-pn__thumb { flex: 0 0 clamp(84px, 10vw, 130px); aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--cream); }
.st-pn__thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.st-pn__txt { display: grid; gap: 6px; min-width: 0; }
.st-pn__lab { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); }
.st-pn__title { font-family: var(--f-display); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.2; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-pn__item--all { justify-content: center; }
@media (max-width: 700px) { .st-pn__grid { grid-template-columns: 1fr; } .st-pn__item--next { flex-direction: row; text-align: left; } }
