/* ==========================================================================
   MECANDRIA — Insights (page-specific; loaded on insights.html and insights/*.html)
   Classes are prefixed .in- so nothing leaks into other pages.

   An editorial publication, not a blog:
   hero (question → insight tile flip) → latest thinking
   (topics + search + cover and stack) → Mecandria perspective →
   stay in the loop → CTA. Also loaded on article pages for the article
   layout, the Newer / Older links and the More insights band.

   Content rule: the articles in assets/js/articles.js supply every title,
   date and reading time. Topics without an article show an "in preparation" note.
   ========================================================================== */
.in {
  --in-bg: #FBF8F3; --in-bg-2: #F4EEE5; --in-surface: #FFFFFF;
  --in-line: rgba(90, 80, 70, .16); --in-line-2: rgba(90, 80, 70, .28);
  --in-muted: #5A5568; --in-dim: #6E6878;
  --in-cyan: 0, 119, 95; --in-violet: 91, 46, 230; --in-magenta: 199, 0, 73;   /* warm ivory palette: the "cyan" slot holds the teal label colour */
}
.in section { position: relative; isolation: isolate; }
.in-sec { padding-block: clamp(20px, 2.5vw, 32px) clamp(48px, 5.5vw, 80px); background: var(--in-bg); scroll-margin-top: calc(var(--nav-sticky-h) + 16px); }
.in-sec--alt { background: var(--in-bg-2); }
.in-sec--alt::before, .in-sec--alt::after { content: ""; position: absolute; left: 0; right: 0; height: 120px; pointer-events: none; z-index: -1; }
.in-sec--alt::before { top: 0; background: linear-gradient(var(--in-bg), transparent); }
.in-sec--alt::after { bottom: 0; background: linear-gradient(transparent, var(--in-bg)); }

.in-chap { display: inline-flex; align-items: center; gap: 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgb(var(--in-cyan)); }
.in-chap b { color: var(--in-dim); font-variant-numeric: tabular-nums; }
.in-chap::after { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, rgba(var(--in-cyan), .7), transparent); }
.in-h1 { font-size: clamp(2.3rem, 1rem + 3.6vw, 4.9rem); font-weight: 800; line-height: .98; letter-spacing: -.04em; text-transform: uppercase; }
.in-h2 { font-size: clamp(1.6rem, .72rem + 2.6vw, 3.4rem); text-transform: uppercase; font-weight: 800; line-height: 1.03; letter-spacing: -.035em; }
.in-lead { font-size: clamp(1.03rem, .95rem + .35vw, 1.2rem); line-height: 1.65; color: var(--in-muted); max-width: 50ch; }
.in-cool { background: linear-gradient(92deg, #00775F, #00728A 45%, #5B2EE6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.in-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.in-head .in-h2 { margin-top: 22px; }
.in-head p { margin: 0; color: var(--in-muted); font-size: 1.06rem; line-height: 1.7; max-width: 46ch; }
.in .btn-light { background: #1D1B2F; color: #FBF8F3; }
.in .btn-light:hover { background: #3A3650; transform: translateY(-2px); }

.in-cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgb(var(--in-cyan)); }
.in-meta { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--in-dim); }
.in-meta > * + *::before { content: "•"; margin: 0 10px; color: #B3ACA1; }
.in-link { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--in-magenta)); }
.in-link .arrow { transition: transform .3s var(--ease); }
.in-link:hover .arrow { transform: translateX(4px); }
.in a:focus-visible, .in button:focus-visible, .in input:focus-visible { outline: 2px solid rgb(var(--in-cyan)); outline-offset: 4px; }

/* ==========================================================================
   HERO — editorial copy + one drawn line: idea → insight → action → transformation.
   The line draws once on load; nothing loops.
   ========================================================================== */
.in-hero { min-height: 76vh; min-height: 76svh; display: grid; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 40px) 0 clamp(64px, 7vw, 96px); background: var(--in-bg); }
.in-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 76% 58%, rgba(0, 211, 164, .11), transparent 70%), radial-gradient(32% 40% at 92% 92%, rgba(var(--in-violet), .1), transparent 70%); }
.in-hero::after { /* a single hairline, like a page rule in a printed journal */
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: linear-gradient(90deg, var(--in-line-2), transparent 70%); }
.in-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .95fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.in-hero h1 { margin: 24px 0 26px; max-width: 13ch; }
.in-hero h1 .in-cool { display: block; }
.in-hero .btn { --pad-y: 15px; font-size: 12.5px; margin-top: 12px; }
.in-rise { animation: in-rise 1s var(--ease) both; }
.in-rise:nth-child(2) { animation-delay: .08s; } .in-rise:nth-child(3) { animation-delay: .16s; } .in-rise:nth-child(4) { animation-delay: .24s; }
@keyframes in-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* hero art: a 7 × 9 grid of tiles drawing a magenta "?" that flips, tile by tile in a diagonal
   wave, into a teal "!" and back (insights.js). Without JS the "?" simply stays. */
.in-qa { margin: 0; width: 100%; max-width: 360px; justify-self: end; display: grid; justify-items: center; gap: 22px; animation: in-rise 1s var(--ease) both .3s; }
.in-qa-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(5px, .7vw, 9px); width: 100%; perspective: 600px; }
.in-qa-grid i { aspect-ratio: 1; border-radius: 22%; background: rgba(90, 80, 70, .08); transition: background-color .25s ease, box-shadow .25s ease; }
.in-qa-grid i.on { background: rgb(var(--in-magenta)); box-shadow: 0 8px 16px -10px rgba(var(--in-magenta), .85); }
.in-qa-grid i.on.t { background: rgb(var(--in-cyan)); box-shadow: 0 8px 16px -10px rgba(var(--in-cyan), .85); }
.in-qa-grid i.flip { animation: in-tile .5s var(--ease); }
@keyframes in-tile { 50% { transform: rotateY(90deg); } }
.in-qa-cap { display: flex; gap: 10px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--in-dim); }
.in-qa-cap b { color: rgb(var(--in-magenta)); transition: color .3s ease; }
.in-qa-cap b.t { color: rgb(var(--in-cyan)); }

/* ==========================================================================
   DISCOVERY — typographic categories (underline active) + search
   ========================================================================== */
.in-disc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); gap: 10px 40px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--in-line); }
.in-disc[hidden] { display: none; }
.in-cats { min-width: 0; grid-column: 1 / -1; grid-row: 2; }
.in-cats-row { display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 1.9vw, 28px); }
.in-cats button { position: relative; padding: 14px 0 16px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--in-dim); transition: color .3s; white-space: nowrap; }
.in-cats button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: rgb(var(--in-cyan)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.in-cats button:hover { color: #3A3648; }
.in-cats button[aria-pressed="true"] { color: #1D1B2F; }
.in-cats button[aria-pressed="true"]::after { transform: scaleX(1); }
.in-cats button sup { margin-left: 5px; font-size: 9.5px; letter-spacing: 0; color: var(--in-dim); vertical-align: super; }
.in-search { grid-column: 2; grid-row: 1; padding-bottom: 6px; }
.in-search label { display: block; margin-bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--in-dim); }
.in-field { position: relative; }
.in-field svg { position: absolute; left: 0; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--in-dim); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.in-field input { width: 100%; padding: 10px 0 10px 28px; border: 0; border-bottom: 1px solid var(--in-line-2); border-radius: 0; background: transparent; color: #1D1B2F; font: inherit; font-size: 15px; transition: border-color .3s; }
.in-field input::placeholder { color: #8A8396; }
.in-field input:focus { outline: none; border-color: rgb(var(--in-cyan)); }
.in-field input:focus-visible { outline: none; }
.in-field input::-webkit-search-cancel-button { filter: grayscale(1); cursor: pointer; }
.in-status { grid-column: 1; grid-row: 1; align-self: end; margin: 0; padding: 0 0 12px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--in-dim); min-height: 1em; }
.in-status:empty { display: none; }

/* ==========================================================================
   LIST — cover and stack, drawn by articles.js into <insights-list>.
   The newest article is a tall cover; the others stack beside it as rows.
   While filtering (.is-narrow) everything becomes one list of rows.
   ========================================================================== */
insights-list, article-more { display: block; }
.in-cv { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.in-stack { display: grid; border-bottom: 1px solid var(--in-line); }
.in-item { position: relative; min-width: 0; border-top: 1px solid var(--in-line); }
.in-item[hidden] { display: none; }
.in-item::before { /* accent line extends on hover */
  content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 1px; background: rgb(var(--in-cyan)); transition: width .55s var(--ease); }
.in-item:hover::before, .in-item:focus-within::before { width: 100%; }
.in-item:hover .in-vis { border-color: var(--in-line-2); }
.in-item:hover .in-vis > * { transform: translateY(-3px); }
.in-item-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.in-item h3 { font-size: clamp(1.1rem, .95rem + .4vw, 1.32rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: #2B2839; transition: color .3s; }
.in-item h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole item is the link */
.in-item:hover h3 { color: #1D1B2F; }
.in-item p { margin: 0; color: var(--in-muted); font-size: .92rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.in-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.in-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(var(--in-magenta), .4); color: rgb(var(--in-magenta)); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.in-read { display: inline-flex; gap: 10px; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--in-magenta)); }
.in-read .arrow { transition: transform .3s var(--ease); }
.in-item:hover .in-read .arrow { transform: translateX(4px); }

/* rows: small picture + text (the stack, and every item while filtering) */
.in-stack .in-item, .in-cv.is-narrow .in-item--cover { display: grid; grid-template-columns: clamp(120px, 13vw, 168px) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); align-items: center; padding: 24px 0; }
.in-stack .in-vis, .in-cv.is-narrow .in-item--cover .in-vis { aspect-ratio: 4 / 3; }
.in-stack .in-vis text, .in-cv.is-narrow .in-item--cover .in-vis text { display: none; }
.in-stack .in-read, .in-cv.is-narrow .in-item--cover .in-read { display: none; }

/* the cover */
.in-cv:not(.is-narrow) .in-item--cover { display: flex; flex-direction: column; padding-top: 22px; }
.in-cv:not(.is-narrow) .in-item--cover .in-vis { aspect-ratio: 4 / 3; }
.in-cv:not(.is-narrow) .in-item--cover .in-item-txt { padding-top: 24px; }
.in-cv:not(.is-narrow) .in-item--cover h3 { margin: 4px 0 6px; font-size: clamp(1.7rem, 1rem + 1.9vw, 2.75rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.in-cv:not(.is-narrow) .in-item--cover p { font-size: 1.04rem; line-height: 1.7; -webkit-line-clamp: 4; max-width: 50ch; margin-bottom: 8px; }
.in-cv.is-narrow { grid-template-columns: minmax(0, 1fr); gap: 0; }
.in-cv.is-narrow .in-item--cover .in-tag { display: none; }

/* article visuals */
.in-vis { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; container-type: inline-size; border: 1px solid var(--in-line); border-radius: 4px; background: linear-gradient(160deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .55)), var(--in-surface); transition: border-color .35s; }
.in-vis > * { transition: transform .6s var(--ease); }
.in-flow, .in-data { width: 88%; height: auto; overflow: visible; }
.in-vis .in-frag { width: 80%; height: auto; }
.in-flow text, .in-data text { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; fill: var(--in-dim); }
.in-flow .tangle { fill: none; stroke: rgba(90, 80, 70, .35); stroke-width: 1.3; stroke-dasharray: 3 4; }
.in-flow .tn circle { fill: var(--in-surface); stroke: rgba(90, 80, 70, .5); }
.in-flow .clean { fill: none; stroke: rgb(var(--in-cyan)); stroke-width: 1.6; }
.in-flow .cn circle { fill: var(--in-surface); stroke: rgb(var(--in-cyan)); stroke-width: 1.5; }
.in-flow .cn .end, .in-data .pt .end { fill: rgb(var(--in-cyan)); }

.in-typo { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 0 9%; font-size: clamp(8px, 8cqi, 34px); font-weight: 800; line-height: .98; letter-spacing: -.03em; }
.in-typo span { color: transparent; -webkit-text-stroke: 1px rgba(90, 80, 70, .26); }
.in-typo b { font-weight: 800; color: #1D1B2F; }
.in-typo b::after { content: ""; display: inline-block; width: .32em; height: .32em; margin-left: .18em; border-radius: 50%; background: rgb(var(--in-magenta)); vertical-align: .1em; }

.in-data .ax { stroke: var(--in-line-2); }
.in-data .sc circle { fill: rgba(90, 80, 70, .45); }
.in-data .ln { fill: none; stroke: rgb(var(--in-cyan)); stroke-width: 1.6; stroke-linejoin: round; }
.in-data .pt circle { fill: var(--in-surface); stroke: rgb(var(--in-cyan)); stroke-width: 1.5; }

.in-frag rect { fill: rgba(255, 255, 255, .7); stroke: rgba(90, 80, 70, .3); stroke-width: 1; }
.in-frag .sc rect { stroke: rgba(90, 80, 70, .2); stroke-dasharray: 3 3; }
.in-frag .st rect.mid { stroke: rgba(var(--in-violet), .5); }
.in-frag .st rect.hi { fill: rgba(var(--in-cyan), .1); stroke: rgb(var(--in-cyan)); }
.in-frag .ar { fill: none; stroke: rgb(var(--in-cyan)); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.in-frag text { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; fill: var(--in-dim); }

.in-vis--shot { place-items: stretch; }
.in-vis--shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: .82; }
.in-vis--shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(251, 248, 243, .55)); pointer-events: none; }
.in-item:hover .in-vis--shot img, .in-mini:hover .in-vis--shot img { opacity: .95; }

/* a topic with no article yet: a slim dashed note, never a card or a link */
.in-soon { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 6px 24px; align-items: baseline; margin-top: clamp(28px, 3vw, 40px); padding: 18px 22px; border: 1px dashed var(--in-line-2); border-radius: 4px; }
.in-soon[hidden] { display: none; }
.in-soon .in-cat, .in-soon-st { color: var(--in-dim); }
.in-soon-st { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.in-soon p { margin: 0; color: var(--in-muted); font-size: .94rem; line-height: 1.6; }

.in-empty { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--in-line); text-align: left; }
.in-empty[hidden] { display: none; }
.in-empty .t { margin: 0 0 8px; font-size: clamp(1.4rem, 1rem + 1vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.in-empty p { color: var(--in-muted); margin: 0 0 22px; }

/* ==========================================================================
   ARTICLE PAGES — title + visual, "In short", the article itself
   (the visual is drawn by articles.js into <article-cover>)
   ========================================================================== */
.in-art-hero { overflow: hidden; padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 clamp(40px, 5vw, 72px); background: var(--in-bg); }
.in-art-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 55% at 82% 50%, rgba(0, 211, 164, .1), transparent 70%), radial-gradient(30% 40% at 96% 96%, rgba(var(--in-violet), .09), transparent 70%); }
.in-art-hero::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: linear-gradient(90deg, var(--in-line-2), transparent 70%); }
.in-art-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.in-art-back { display: flex; width: fit-content; margin-bottom: clamp(28px, 3.5vw, 44px); }
.in-art-back:hover .arrow { transform: translateX(-4px); }
.in-art-h1 { margin: 22px 0; max-width: 18ch; font-size: clamp(2.1rem, 1rem + 3vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; color: #1D1B2F; }
.in-art-hero .in-lead { margin: 0 0 28px; }
article-cover { display: block; }
article-cover .in-vis { aspect-ratio: 4 / 3; background: linear-gradient(160deg, #FFFFFF, rgba(255, 255, 255, .7)), var(--in-surface); box-shadow: 0 40px 70px -50px rgba(29, 27, 47, .45); }

.in-art-main { padding-top: clamp(40px, 5vw, 72px); background: var(--in-bg); }
.in-art-col { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }

.in-sum { position: relative; margin: 0 0 clamp(40px, 5vw, 60px); padding: 24px 28px 26px 32px; border: 1px solid var(--in-line); border-radius: 4px; background: var(--in-surface); }
.in-sum::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; border-radius: 4px 0 0 4px; background: linear-gradient(180deg, rgb(var(--in-cyan)), rgb(var(--in-violet))); }
.in-sum .in-cat { display: block; margin-bottom: 10px; }
.in-sum p { margin: 0; font-size: 1.08rem; line-height: 1.7; color: #2B2839; }

.in-prose { counter-reset: in-sec; font-size: 1.1rem; line-height: 1.8; color: #3A3648; }
.in-prose p { margin: 0 0 1.25em; }
.in-prose > p:first-child { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.3rem); line-height: 1.7; color: #2B2839; }
.in-prose h2 { counter-increment: in-sec; display: grid; gap: 12px; margin: 2.2em 0 .8em; padding-top: 1.5em; border-top: 1px solid var(--in-line); font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: #1D1B2F; }
.in-prose h2::before { content: counter(in-sec, decimal-leading-zero); font-size: 11.5px; font-weight: 700; letter-spacing: .24em; color: rgb(var(--in-cyan)); }
.in-prose ul { display: grid; gap: 12px; margin: 0 0 1.6em; padding: 0; list-style: none; }
.in-prose li { position: relative; padding: 16px 20px 16px 48px; border: 1px solid var(--in-line); border-radius: 4px; background: rgba(255, 255, 255, .65); line-height: 1.65; transition: border-color .3s; }
.in-prose li:hover { border-color: var(--in-line-2); }
.in-prose li::before { content: ""; position: absolute; left: 21px; top: calc(16px + .825em - 4px); width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--in-cyan)); box-shadow: 0 0 0 4px rgba(var(--in-cyan), .12); }
.in-prose strong { color: #1D1B2F; }
.in-prose em { font-style: normal; color: #1D1B2F; background: linear-gradient(transparent 62%, rgba(var(--in-cyan), .16) 0); }
.in-prose > :last-child { margin-bottom: 0; }

/* ==========================================================================
   ARTICLE PAGES — Newer / Older links and the "More insights" band
   (drawn by articles.js into <article-more>)
   ========================================================================== */
.in-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 720px; margin: 40px auto 0; padding: 32px var(--gutter) 0; border-top: 1px solid var(--in-line); }
.in-pager a { display: grid; gap: 6px; align-content: start; padding: 20px 22px; border: 1px solid var(--in-line); border-radius: 4px; background: var(--in-surface); transition: border-color .3s, transform .3s var(--ease); }
.in-pager a:hover { border-color: var(--in-line-2); transform: translateY(-2px); }
.in-pager small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--in-magenta)); }
.in-pager b { font-size: 1.05rem; line-height: 1.3; color: #2B2839; }
.in-pager-older { grid-column: 2; text-align: right; }
.in-more { position: relative; isolation: isolate; margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(48px, 5.5vw, 80px); }
.in-more-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 3vw, 40px); }
.in-more-head .in-h2 { margin-top: 18px; }
.in-more-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.in-mini { position: relative; display: flex; flex-direction: column; min-width: 0; padding-top: 18px; border-top: 1px solid var(--in-line); }
.in-mini::before { content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 1px; background: rgb(var(--in-cyan)); transition: width .55s var(--ease); }
.in-mini:hover::before, .in-mini:focus-within::before { width: 100%; }
.in-mini:hover .in-vis > * { transform: translateY(-3px); }
.in-mini-txt { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: 10px; padding-top: 18px; }
.in-mini h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.22; letter-spacing: -.015em; color: #2B2839; }
.in-mini h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.in-mini:hover h3 { color: #1D1B2F; }
.in-mini .in-meta { margin-top: auto; }

/* ==========================================================================
   MECANDRIA PERSPECTIVE — a full-width typographic break
   ========================================================================== */
.in-pov { padding-block: clamp(28px, 3vw, 44px) clamp(56px, 6.5vw, 96px); background: var(--in-bg); overflow: hidden; }
.in-pov::before { /* faint column rules behind the type */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, var(--in-line) 0 1px, transparent 1px calc(100% / 6));
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.in-pov::after { content: ""; position: absolute; left: -10%; right: -10%; top: 30%; height: 60%; z-index: -1; background: radial-gradient(50% 50% at 60% 50%, rgba(var(--in-violet), .09), transparent 70%); pointer-events: none; }
.in-pov-h { margin: 34px 0 0; font-size: clamp(1.7rem, .8rem + 3.4vw, 4.2rem); text-transform: uppercase; font-weight: 800; line-height: .94; letter-spacing: -.05em; }
.in-pov-h span.l1, .in-pov-h span.l2 { display: block; text-wrap: balance; }
.in-pov-h .l1 { color: transparent; -webkit-text-stroke: 1px rgba(90, 80, 70, .38); }
.in-pov-h .l2 { margin-top: .08em; padding-left: clamp(0px, 8vw, 140px); }
.in-pov-foot { display: grid; grid-template-columns: minmax(0, 46ch) auto; gap: 24px 48px; align-items: end; justify-content: space-between; margin-top: clamp(44px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--in-line); }
.in-pov-foot p { margin: 0; color: var(--in-muted); font-size: clamp(1.03rem, .95rem + .35vw, 1.2rem); line-height: 1.65; }
/* large text reveal: each line rises out of a mask */
.js .in-pov-h [data-reveal] { transform: translateY(40px); clip-path: inset(0 0 100% 0); }
.js .in-pov-h [data-reveal].is-in { transform: none; clip-path: inset(0 0 -10% 0); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), clip-path 1.2s var(--ease); transition-delay: var(--d, 0s); }

/* ==========================================================================
   STAY IN THE LOOP — frontend placeholder only (no data is sent or stored)
   ========================================================================== */
.in-news-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: end; }
.in-news .in-h2 { margin: 22px 0 18px; }
.in-news .in-lead { margin: 0; }
.in-form-row { display: flex; gap: 12px; border-bottom: 1px solid var(--in-line-2); padding-bottom: 14px; transition: border-color .3s; }
.in-form-row:focus-within { border-color: rgb(var(--in-cyan)); }
.in-form input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: transparent; color: #1D1B2F; font: inherit; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); }
.in-form input::placeholder { color: #8A8396; }
.in-form input:focus { outline: none; }
.in-form .btn { --pad-y: 14px; font-size: 12.5px; flex: none; }
.in-form-msg { margin: 14px 0 0; font-size: .95rem; color: #00775F; min-height: 1.4em; }
.in-form-msg.err { color: #B3261E; }
.in-form-note { margin: 6px 0 0; font-size: 11.5px; color: #6E6878; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.in-cta h2 { margin-top: 22px; }
.in-cta .in-cool { display: block; }
.in-cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.in-cta .atmos .blob { opacity: .4; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 720px) {
  .in-disc { grid-template-columns: minmax(0, 1fr); }
  .in-search { grid-column: 1; }
  .in-status { grid-row: 3; padding-top: 12px; }
}
@media (max-width: 980px) {
  .in-hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .in-hero-copy { display: flex; flex-direction: column; align-items: center; }
  .in-hero h1 { max-width: 14ch; }
  .in-lead { margin-inline: auto; }
  .in-qa { justify-self: center; max-width: 300px; }
  .in-head { grid-template-columns: minmax(0, 1fr); }
  .in-cv { grid-template-columns: minmax(0, 1fr); }
  .in-art-grid { grid-template-columns: minmax(0, 1fr); }
  article-cover { max-width: 520px; }
  .in-more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .in-news-grid { grid-template-columns: minmax(0, 1fr); }
  .in-news-grid .in-lead { margin-inline: 0; }
}
@media (max-width: 720px) {
  .in-stack .in-item, .in-cv.is-narrow .in-item--cover { grid-template-columns: 92px minmax(0, 1fr); align-items: start; padding: 18px 0; }
  .in-cv:not(.is-narrow) .in-item--cover .in-vis { aspect-ratio: 16 / 10; }
  .in-item p { font-size: .88rem; }
  .in-soon { grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; padding: 16px; }
  .in-soon p { grid-column: 1 / -1; }
  .in-sum { padding: 20px 20px 22px 24px; }
  .in-prose { font-size: 1.04rem; }
  .in-prose li { padding: 14px 16px 14px 40px; }
  .in-prose li::before { left: 17px; top: calc(14px + .825em - 4px); }
  .in-pager { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .in-pager-older { grid-column: auto; text-align: left; }
  .in-more-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .in-mini { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .in-mini::before { display: none; }
  .in-mini .in-vis { aspect-ratio: 1; }
  .in-mini .in-vis text { display: none; }
  .in-mini-txt { padding-top: 0; gap: 6px; }
  .in-mini h3 { font-size: 1rem; }
  /* categories scroll sideways inside their own row (the page never does) */
  .in-cats { margin-inline: calc(var(--gutter) * -1); }
  .in-cats-row { flex-wrap: nowrap; overflow-x: auto; padding-inline: var(--gutter); scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 40px), transparent); }
  .in-cats-row::-webkit-scrollbar { display: none; }
  .in-search { max-width: none; }
  .in-pov-h .l2 { padding-left: 0; }
  .in-pov-foot { grid-template-columns: minmax(0, 1fr); }
  .in-form-row { flex-direction: column; border-bottom: 0; padding-bottom: 0; }
  .in-form input { border-bottom: 1px solid var(--in-line-2); }
  .in-form input:focus { border-color: rgb(var(--in-cyan)); }
  .in-form .btn { width: 100%; }
  .in-meta { font-size: 11px; }
}
@media (max-width: 420px) {
  .in-qa { max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .in-rise, .in-qa, .in-qa-grid i { animation: none !important; }
  .js .in-pov-h [data-reveal] { clip-path: none !important; transition: none !important; }
  .in-item::before, .in-mini::before, .in-vis > *, .in-pager a, .in-prose li { transition: none !important; }
}
