/* OQS Journal — listing + article templates ("Ideas in Motion").
   Builds on site.css + services/svc.css. Keeps every hook the static publisher generates:
   [data-journal] [data-story] [data-category] [data-search] [data-category-filter] [data-journal-search]
   [data-result-count] [data-empty-state] [data-reset-filters] .story-card .journal-feature
   #article-content .article-body (WordPress block markup) .article-service #related-articles .related-card */
body.jr { --jr-ease: cubic-bezier(.16, 1, .3, 1); }
:is(.jr-meta, .story-meta) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 500 .6875rem/1.3 var(--font-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
:is(.jr-meta, .story-meta) > :first-child { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
:is(.jr-meta, .story-meta) > :first-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--oqs-orange); }
.jr-read { display: inline-flex; align-items: center; gap: 10px; font: 600 .75rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.jr-read i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; transition: background .4s ease, transform .6s var(--jr-ease); }
.jr-read i svg { width: 13px; height: 13px; }
.jr-read:hover i, a:hover .jr-read i, article:hover .jr-read i { background: var(--oqs-orange); transform: rotate(45deg); }

/* ── Listing hero ── */
.jr-hero .sv-giant { font-size: clamp(4rem, .2rem + 17vw, 15rem); }
.jr-stats { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jr-stats li { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .55); font: 500 .6875rem/1 var(--font-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.jr-stats b { color: var(--ink); font-weight: 600; }

/* featured */
.journal-feature { position: relative; margin: clamp(20px, 3vw, 40px) 0 0; }
.journal-feature[hidden] { display: none; }
.journal-feature__frame { --in: 1; position: relative; display: block; height: min(calc(100svh - 190px), 50vw, 760px); min-height: 400px; overflow: hidden; background: #191512; color: #fff; text-decoration: none;
  clip-path: inset(0 calc(var(--in) * max(var(--gutter), 7vw)) calc(var(--in) * 5%) round calc(14px + var(--in) * 18px)); }
.journal-feature__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + var(--in) * .08)); transition: scale 1.1s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.journal-feature__frame:hover img { scale: 1.035; }
.journal-feature__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 11, .1) 30%, rgba(8, 9, 11, .78)); }
.journal-feature__content { position: absolute; z-index: 1; left: max(var(--gutter), 7vw); right: max(var(--gutter), 7vw); bottom: calc(5% + clamp(24px, 4vw, 56px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; padding-inline: clamp(20px, 3vw, 44px); }
.journal-feature__number { position: absolute; right: clamp(20px, 3vw, 44px); top: -1.1em; font: 600 clamp(4rem, 9vw, 9rem)/1 var(--font-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .4); pointer-events: none; }
.journal-feature :is(.jr-meta, .story-meta), .journal-feature :is(.jr-meta, .story-meta) > :first-child { color: rgba(255, 255, 255, .78); }
.journal-feature .journal-kicker { display: inline-flex; margin-bottom: 14px; padding: 7px 12px; border-radius: var(--radius-pill); background: var(--oqs-orange); color: #fff; font: 500 .625rem/1 var(--font-meta); letter-spacing: .12em; text-transform: uppercase; }
.journal-feature h2 { margin: 14px 0 0; max-width: 20ch; font: 600 clamp(1.9rem, 1rem + 3.1vw, 4.4rem)/1.02 var(--font-display); letter-spacing: -.05em; }
.journal-feature__excerpt { margin: 16px 0 0; max-width: 58ch; color: rgba(255, 255, 255, .82); font-size: var(--fs-lead); }
.journal-feature .jr-read { color: #fff; }
.journal-feature .jr-read i { width: 64px; height: 64px; background: var(--oqs-orange); }
.journal-feature .jr-read i svg { width: 20px; height: 20px; }
.journal-feature .jr-read span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* collection controls */
.jp-collection { padding-block: clamp(70px, 9vw, 130px) clamp(60px, 8vw, 120px); }
.jp-collection-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px 48px; align-items: end; margin-bottom: 26px; }
.jp-collection-head h2 { margin-top: 18px; }
.jp-search { position: relative; display: block; }
.jp-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.jp-search input { width: 100%; min-height: 60px; padding: 0 64px 0 52px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; color: var(--ink); font: 500 1rem/1 var(--font-body); outline: none; transition: border-color .3s ease, box-shadow .3s ease; -webkit-appearance: none; appearance: none; }
.jp-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.jp-search input:focus { border-color: var(--oqs-orange); box-shadow: 0 0 0 4px rgba(255, 112, 52, .14); }
.jp-search svg { position: absolute; left: 20px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; fill: none; stroke: var(--ink-2); stroke-width: 1.8; pointer-events: none; }
.jp-search kbd { position: absolute; right: 16px; top: 50%; translate: 0 -50%; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font: 500 .75rem/1 var(--font-meta); color: var(--mute); }
.jp-bar { position: sticky; top: 12px; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 18px 40px -30px rgba(16, 24, 32, .5); }
.journal-filters { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.journal-filters::-webkit-scrollbar { display: none; }
.journal-filters button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-2); cursor: pointer; font: 500 .8125rem/1 var(--font-body); white-space: nowrap; transition: background .3s ease, color .3s ease; }
.journal-filters button:hover { background: rgba(16, 24, 32, .06); color: var(--ink); }
.journal-filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.journal-filters button sup { font: 500 .625rem/1 var(--font-meta); opacity: .6; top: 0; }
.jp-view { flex: none; display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: rgba(16, 24, 32, .06); }
.jp-view button { display: grid; place-items: center; width: 38px; height: 36px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-2); cursor: pointer; }
.jp-view button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(16, 24, 32, .12); }
.jp-view svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.jp-count { display: block; margin: 18px 4px 0; font: 500 .6875rem/1 var(--font-meta); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.jp-empty { margin-top: 30px; display: grid; justify-items: center; gap: 12px; padding: 60px 20px; border: 1px dashed var(--mist-2); border-radius: var(--radius-lg); text-align: center; }
.jp-empty[hidden] { display: none; }
.jp-empty h3 { font: 600 var(--fs-h3)/1.1 var(--font-display); letter-spacing: -.04em; }
.jp-empty p { color: var(--ink-2); }
.jp-empty button { min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); background: var(--ink); color: #fff; cursor: pointer; font: 600 .75rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }

/* grid view */
.journal-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.journal-grid[hidden] { display: none; }
.story-card { position: relative; display: grid; align-content: start; gap: 18px; }
.story-card[hidden] { display: none; }
.story-card__image { position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius-lg); background: var(--mist-1); isolation: isolate; }
.story-card__image img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s cubic-bezier(.22, 1, .36, 1), filter .6s ease; }
.story-card:hover .story-card__image img { scale: 1.05; filter: brightness(.88); }
.story-card__image::after { content: "Read"; padding-right: 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 18 6M8 6h10v10'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 12px 12px; background-position: calc(50% + 19px) calc(50% - 1px); position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background-color: var(--oqs-orange); color: #fff; font: 600 .6875rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; white-space: pre; translate: -50% -50%; scale: .6; opacity: 0; transition: scale .6s cubic-bezier(.22, 1, .36, 1), opacity .35s ease; pointer-events: none; }
.story-card:hover .story-card__image::after { scale: 1; opacity: 1; }
.is-index .story-card__image::after { display: none; }
.story-card__num { position: absolute; z-index: 1; left: 16px; top: 14px; padding: 6px 10px; border-radius: var(--radius-pill); background: rgba(8, 9, 11, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: 500 .625rem/1 var(--font-meta); letter-spacing: .1em; }
.story-card__body { display: grid; gap: 12px; padding-inline: 4px; }
.story-card h3 { font: 600 clamp(1.2rem, 1rem + .6vw, 1.55rem)/1.15 var(--font-display); letter-spacing: -.035em; }
.story-card h3 a { color: inherit; text-decoration: none; background: linear-gradient(var(--oqs-orange), var(--oqs-orange)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--jr-ease); }
.story-card:hover h3 a { background-size: 100% 2px; }
.story-card__excerpt { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jr-cursor { position: fixed; z-index: 60; left: 0; top: 0; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--oqs-orange); color: #fff; pointer-events: none;
  font: 600 .6875rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; translate: -50% -50%; scale: 0; transition: scale .45s var(--jr-ease); }
.jr-cursor.is-on { scale: 1; }

/* index view */
.journal-grid.is-index { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.is-index .story-card { grid-template-columns: 70px minmax(0, 1fr); gap: 0 24px; padding: 26px 4px; border-bottom: 1px solid var(--line); align-items: center; transition: background .4s ease, padding .5s var(--jr-ease); }
.is-index .story-card:hover { background: #fff; padding-inline: 18px; }
.is-index .story-card__image { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.is-index .story-card__body { grid-column: 2; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 10px 30px; align-items: center; }
.is-index .story-card__body :is(.jr-meta, .story-meta) { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 6px; }
.is-index .story-card h3 { grid-column: 1; grid-row: 1; font-size: clamp(1.3rem, 1rem + 1.4vw, 2.3rem); letter-spacing: -.045em; }
.is-index .story-card__excerpt { display: none; }
.is-index .story-card .jr-read { grid-column: 3; grid-row: 1; }
.is-index .story-card .jr-read span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.is-index .story-card::before { content: attr(data-n); font: 500 .8125rem/1 var(--font-meta); letter-spacing: .06em; color: var(--mute); }
.jr-peek { position: fixed; z-index: 55; left: 0; top: 0; width: 300px; aspect-ratio: 5 / 4; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; scale: .7; rotate: -4deg; translate: 24px -50%;
  box-shadow: 0 40px 70px -30px rgba(16, 24, 32, .6); transition: opacity .35s ease, scale .5s var(--jr-ease), rotate .6s var(--jr-ease); }
.jr-peek.is-on { opacity: 1; scale: 1; rotate: 0deg; }
.jr-peek img { width: 100%; height: 100%; object-fit: cover; }

/* ── Article ── */
.jr-progress { position: fixed; z-index: 90; left: 0; top: 0; height: 3px; width: 100%; background: var(--oqs-orange); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
.article-hero { position: relative; isolation: isolate; padding-top: calc(var(--header-h) + 14px); overflow: clip; }
.article-hero__glow { position: absolute; z-index: -1; left: 50%; top: -18vmax; width: 80vmax; height: 56vmax; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 112, 52, .26), rgba(255, 112, 52, .06) 55%, transparent); filter: blur(30px); pointer-events: none; }
.article-hero__return { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px 0 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .6); color: var(--ink); text-decoration: none; font: 500 .75rem/1 var(--font-meta); letter-spacing: .08em; text-transform: uppercase; transition: background .3s ease, color .3s ease; }
.article-hero__return span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .5s var(--jr-ease); }
.article-hero__return:hover span { transform: translateX(-3px); background: var(--oqs-orange); }
.article-hero__head { display: grid; justify-items: start; gap: 22px; padding-block: clamp(28px, 4vw, 56px) clamp(30px, 4vw, 56px); max-width: 1100px; }
.article-hero h1 { font: 600 clamp(2.2rem, 1rem + 4.2vw, 5.4rem)/1 var(--font-display); letter-spacing: -.055em; }
.article-hero__dek { max-width: 62ch; color: var(--ink-2); font-size: var(--fs-lead); }
.article-hero__meta dl { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.article-hero__meta dl > div { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .6); }
.article-hero__meta dt { font: 500 .625rem/1 var(--font-meta); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.article-hero__meta dd { margin: 0; font: 600 .875rem/1 var(--font-display); letter-spacing: -.01em; }
.article-hero__meta dl > div:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.article-hero__meta dl > div:first-child dt { color: rgba(255, 255, 255, .6); }
.article-cover { --in: 1; margin: 0; height: min(78svh, 50vw); min-height: 300px; overflow: hidden; background: #191512;
  clip-path: inset(0 calc(var(--in) * max(var(--gutter), 7vw)) calc(var(--in) * 5%) round calc(14px + var(--in) * 18px)); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.02 + var(--in) * .08)) translateY(calc(var(--py, 0) * 1px)); }

.article-layout { display: grid; grid-template-columns: 250px minmax(0, 720px) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); padding-block: clamp(50px, 7vw, 100px); }
.article-aside { position: sticky; top: 24px; align-self: start; display: grid; gap: 4px; font-size: .875rem; }
.article-aside > p { margin-bottom: 10px; font: 500 .6875rem/1 var(--font-meta); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.article-aside > a { color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.article-aside > a:hover { color: var(--oqs-orange); }
.jr-toc { list-style: none; margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; counter-reset: toc; }
.jr-toc a { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 8px 0; color: var(--mute); text-decoration: none; line-height: 1.35; transition: color .3s ease; }
.jr-toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font: 500 .6875rem/1.9 var(--font-meta); }
.jr-toc a:hover { color: var(--ink); }
.jr-toc a.is-on { color: var(--ink); font-weight: 600; }
.jr-toc a.is-on::before { color: var(--oqs-orange); }
.jr-toc a::after { content: ""; position: absolute; left: -14px; top: 50%; width: 3px; height: 0; border-radius: 3px; background: var(--oqs-orange); translate: 0 -50%; transition: height .4s var(--jr-ease); }
.jr-toc a.is-on::after { height: 70%; }
.jr-ring { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.jr-ring svg { width: 46px; height: 46px; rotate: -90deg; }
.jr-ring circle { fill: none; stroke-width: 3; }
.jr-ring circle:first-child { stroke: var(--line); }
.jr-ring circle:last-child { stroke: var(--oqs-orange); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: calc(113.1 - var(--p, 0) * 113.1); }
.jr-ring p { font: 500 .6875rem/1.4 var(--font-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.jr-ring b { display: block; font: 600 1rem/1.1 var(--font-display); letter-spacing: -.02em; color: var(--ink); text-transform: none; }
.jr-share { display: flex; gap: 6px; margin: 4px 0 18px; }
.jr-share a, .jr-share button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.jr-share a:hover, .jr-share button:hover, .jr-share .is-done { background: var(--oqs-orange); border-color: var(--oqs-orange); color: #fff; }
.jr-share svg { width: 15px; height: 15px; fill: currentColor; }

/* body typography (WordPress block markup + plain HTML) */
.article-body { min-width: 0; font: 400 1.125rem/1.78 var(--font-body); color: #2a323a; counter-reset: h2; }
.article-body > * + * { margin-top: 1.15em; }
.article-body > p:first-child { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.5; color: var(--ink); }
.article-body.has-drop > p:first-child::first-letter { float: left; margin: .06em .12em 0 0; font: 700 3.6em/.78 var(--font-display); color: var(--oqs-orange); }
.article-body h2, .article-body h3, .article-body h4 { color: var(--ink); font-family: var(--font-display); letter-spacing: -.04em; scroll-margin-top: 90px; }
.article-body h2 { position: relative; margin-top: 2.4em; padding-top: 1.1em; border-top: 1px solid var(--line); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem); line-height: 1.1; font-weight: 600; counter-increment: h2; }
.article-body h2::before { content: counter(h2, decimal-leading-zero); display: block; margin-bottom: .6em; font: 500 .75rem/1 var(--font-meta); letter-spacing: .12em; color: var(--oqs-orange); }
.article-body h3 { margin-top: 1.8em; font-size: 1.35rem; line-height: 1.2; font-weight: 600; }
.article-body h4 { margin-top: 1.6em; font-size: 1.1rem; font-weight: 600; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--oqs-orange); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .3s ease; }
.article-body a:hover { color: var(--oqs-orange); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .5em; }
.article-body ul li::marker { color: var(--oqs-orange); }
.article-body ol li::marker { color: var(--oqs-orange); font: 600 .95em var(--font-meta); }
.article-body blockquote, .article-body .wp-block-quote, .article-body .wp-block-pullquote { margin: 2em 0; padding: 0 0 0 1.2em; border-left: 3px solid var(--oqs-orange); font: 500 clamp(1.3rem, 1.1rem + .7vw, 1.75rem)/1.35 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.article-body blockquote cite { display: block; margin-top: .8em; font: 500 .75rem/1 var(--font-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-style: normal; }
.article-body hr, .article-body .wp-block-separator { border: 0; height: 8px; margin: 3em auto; width: 60px; background: radial-gradient(circle, var(--oqs-orange) 3px, transparent 3.5px) 0 0 / 20px 8px repeat-x; }
.article-body hr + p > em:only-child, .article-body hr + p em { color: var(--mute); font-size: .95rem; }
.article-body figure, .article-body .wp-block-image { margin: 2.2em 0; }
.article-body figure img, .article-body img { max-width: 100%; height: auto; border-radius: 18px; }
.article-body figcaption { margin-top: .8em; font: 400 .8125rem/1.5 var(--font-meta); color: var(--mute); }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article-body th, .article-body td { padding: .7em .8em; border-bottom: 1px solid var(--line); text-align: left; }
.article-body pre, .article-body code { font-family: var(--font-meta); font-size: .9em; }
.article-body pre { overflow-x: auto; padding: 1.2em; border-radius: 14px; background: var(--ink); color: #f4f4f3; }
.article-body iframe, .article-body video { max-width: 100%; border-radius: 18px; }

/* next step (service CTA) */
.article-service { width: calc(min(100%, var(--container)) - 2 * var(--gutter)); margin-inline: auto; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; margin-bottom: clamp(70px, 9vw, 130px); padding: clamp(32px, 5vw, 70px); border-radius: var(--radius-lg); background: #08090b; color: #f4f4f3; }
.article-service::before { content: ""; position: absolute; z-index: -1; right: -20%; top: -60%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 112, 52, .45), transparent); animation: sv-breathe 9s ease-in-out infinite alternate; }
.article-service .sv-chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #c9cdd1; }
.article-service h2 { margin-top: 18px; font: 600 clamp(2rem, 1rem + 3.4vw, 4.4rem)/1 var(--font-display); letter-spacing: -.05em; }
.article-service__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.article-service .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }

/* related + next story */
.related { padding-bottom: clamp(70px, 9vw, 130px); }
.related__header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(26px, 3vw, 44px); }
.related__header h2 { margin-top: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.related-card { display: grid; gap: 16px; align-content: start; }
.related-card > a:first-child { display: block; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius-lg); }
.related-card img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s cubic-bezier(.22, 1, .36, 1); }
.related-card:hover img { scale: 1.05; }
.related-card__body { display: grid; gap: 10px; }
.related-card h3 { font: 600 1.25rem/1.2 var(--font-display); letter-spacing: -.035em; }
.related-card h3 a { color: inherit; text-decoration: none; }
.related-card:hover h3 a { color: var(--oqs-orange); }
.jr-next { position: relative; display: block; isolation: isolate; overflow: hidden; padding-block: clamp(70px, 10vw, 150px); border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.jr-next__img { position: absolute; z-index: -1; inset: 0; opacity: 0; transition: opacity .8s ease; }
.jr-next__img img { width: 100%; height: 100%; object-fit: cover; scale: 1.1; transition: scale 1.6s var(--jr-ease); }
.jr-next__img::after { content: ""; position: absolute; inset: 0; background: rgba(8, 9, 11, .62); }
.jr-next:hover .jr-next__img, .jr-next:focus-visible .jr-next__img { opacity: 1; }
.jr-next:hover .jr-next__img img { scale: 1; }
.jr-next:hover, .jr-next:focus-visible { color: #fff; }
.jr-next .sv-chip { transition: background .4s ease, color .4s ease; }
.jr-next:hover .sv-chip { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.jr-next__t { display: block; margin-top: 22px; max-width: 22ch; font: 600 clamp(2rem, 1rem + 4vw, 5.6rem)/1 var(--font-display); letter-spacing: -.055em; transition: color .4s ease; }
.jr-next__t i { display: inline-grid; place-items: center; vertical-align: middle; width: .8em; height: .8em; margin-left: .2em; border-radius: 50%; background: var(--oqs-orange); color: #fff; font-style: normal; transition: transform .7s var(--jr-ease); }
.jr-next__t i svg { width: 40%; height: 40%; }
.jr-next:hover .jr-next__t i { transform: rotate(45deg); }

@media (max-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
  .article-aside { position: static; order: -1; grid-template-columns: 1fr; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
  .article-aside > a { display: none; }
  .jr-toc { border-bottom: 0; margin-bottom: 0; padding-bottom: 6px; }
}
@media (max-width: 1000px) {
  .journal-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jp-collection-head { grid-template-columns: minmax(0, 1fr); }
  .is-index .story-card__body { grid-template-columns: minmax(0, 1fr) auto; }
  .is-index .story-card__body :is(.jr-meta, .story-meta) { grid-column: 1; grid-row: 2; flex-direction: row; }
  .is-index .story-card .jr-read { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 700px) {
  .journal-grid, .related-grid { grid-template-columns: minmax(0, 1fr); }
  .journal-feature__frame { height: auto; min-height: 0; aspect-ratio: auto; display: flex; flex-direction: column; background: #08090b; clip-path: inset(0 round 22px); }
  .journal-feature__frame img { position: relative; height: 56vw; min-height: 220px; transform: none; }
  .journal-feature__frame::after { display: none; }
  .journal-feature__content { position: relative; left: 0; right: 0; bottom: 0; grid-template-columns: minmax(0, 1fr); padding: 26px 22px 28px; }
  .journal-feature__number { top: -.9em; right: 18px; font-size: 4.5rem; }
  .journal-feature .jr-read i { width: 52px; height: 52px; }
  .jp-bar { top: 8px; }
  .jp-view { display: none; }
  .is-index .story-card { grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; }
  .article-service { grid-template-columns: minmax(0, 1fr); }
  .article-hero__meta dl > div { min-height: 36px; padding: 0 12px; }
  .article-body { font-size: 1.0625rem; }
  .story-card__image { cursor: pointer; }
}
@media (hover: none) { .story-card__image { cursor: pointer; } .jr-cursor, .jr-peek { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .journal-feature__frame, .article-cover { --in: 0 !important; }
  .story-card__image img, .related-card img, .jr-next__img img { transition: none !important; }
}
.article-service .btn:not(.btn--ghost) { background: var(--oqs-orange); color: #fff; }
@media (hover: none) { .jp-search kbd { display: none; } .jp-search input { padding-right: 20px; } }

/* iOS: keep ↗ ← → as typographic arrows, never emoji */
body { font-variant-emoji: text; }

/* ── Journal publisher markup ──
   On each publish the static Journal publisher regenerates the featured story and the cards with its own markup
   (.journal-feature__media + div.journal-feature__content, .story-meta, a.journal-read "Read article ↗︎").
   These rules render that markup like the approved design, so a new article keeps the same look. */
.journal-feature:has(> .journal-feature__media) { --in: 1; height: min(calc(100svh - 190px), 50vw, 760px); min-height: 400px; overflow: hidden; background: #191512; color: #fff;
  clip-path: inset(0 calc(var(--in) * max(var(--gutter), 7vw)) calc(var(--in) * 5%) round calc(14px + var(--in) * 18px)); }
.journal-feature__media { position: absolute; inset: 0; display: block; }
.journal-feature__media img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + var(--in) * .08)); transition: scale 1.1s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.journal-feature:has(> .journal-feature__media:hover) .journal-feature__media img { scale: 1.035; }
.journal-feature__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 11, .1) 30%, rgba(8, 9, 11, .78)); }
div.journal-feature__content { row-gap: 0; padding-top: 3px; pointer-events: none; }
div.journal-feature__content > :not(.journal-feature__number):not(.journal-read) { grid-column: 1; }
div.journal-feature__content > .journal-kicker { justify-self: start; margin: 0 0 14px; }
div.journal-feature__content > .story-meta { margin: 0; }
div.journal-feature__content > .journal-read { grid-column: 2; grid-row: 1 / span 4; align-self: end; pointer-events: auto; }
.journal-read { display: inline-flex; align-items: center; gap: 10px; font: 600 .75rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; justify-self: start; }
.journal-read > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: transparent; font-size: 0; transition: background .4s ease, transform .6s var(--jr-ease); }
.journal-read > span::before { content: ""; width: 13px; height: 13px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.journal-read:hover > span, article:hover .journal-read > span { background: var(--oqs-orange); transform: rotate(45deg); }
.journal-feature .journal-read { color: #fff; font-size: 0; gap: 0; }
.journal-feature .journal-read > span { width: 64px; height: 64px; background: var(--oqs-orange); }
.journal-feature .journal-read > span::before { width: 20px; height: 20px; }
.is-index .story-card .journal-read { grid-column: 3; grid-row: 1; font-size: 0; gap: 0; }
@media (max-width: 1000px) { .is-index .story-card .journal-read { grid-column: 2; grid-row: 1 / span 2; } }
@media (max-width: 700px) {
  .journal-feature:has(> .journal-feature__media) { height: auto; min-height: 0; display: flex; flex-direction: column; background: #08090b; clip-path: inset(0 round 22px); }
  .journal-feature__media { position: relative; inset: auto; }
  .journal-feature__media img { position: relative; height: 56vw; min-height: 220px; transform: none; }
  .journal-feature__media::after { display: none; }
  div.journal-feature__content { padding-top: 30px; }
  div.journal-feature__content > .journal-read { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .journal-feature .journal-read > span { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .journal-feature:has(> .journal-feature__media) { --in: 0 !important; } .journal-feature__media img { transition: none !important; } }
