/* UniPat AI — "Assembly" site system.
   Night field, cool mist type, champagne for the one thing you can act on.
   Long-form content is read on a light paper surface that rises over the field. */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/schibsted-grotesk.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("fonts/martian-mono.woff2") format("woff2"); }

:root {
    --ink: #0a0b10;
    --ink-2: #12141c;
    --mist: #dde3f1;
    --peri: #a3b2d8;
    --lilac: #c2b7ee;
    --champagne: #ecd9a6;
    --sage: #9fd6b8;
    --text: #edeff5;
    --muted: #8b90a3;
    --soft: #a9aec0;
    --line: rgba(221, 227, 241, .1);
    --paper: #f3f5f9;
    --paper-ink: #12141c;
    --sans: "Schibsted Grotesk", system-ui, -apple-system, "PingFang SC", sans-serif;
    --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --ease: cubic-bezier(.2, .75, .15, 1);
    color-scheme: dark;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--ink); }
body { background: var(--ink); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1.5px solid var(--lilac); outline-offset: 4px; border-radius: 6px; }
img { max-width: 100%; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--mist); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 500; }
.skip:focus { top: 16px; }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }
.wrap { width: min(1320px, 100% - 48px); margin: 0 auto; }
.mono { font: 300 10.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---- header: difference blend keeps it legible over night and paper alike ---- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 30; mix-blend-mode: difference; }
/* once the page scrolls, content would slide under the logo: give the bar a frosted night ground */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 11, 16, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(221, 227, 241, .08); opacity: 0; transition: opacity .35s ease; }
.site-header.is-scrolled { mix-blend-mode: normal; }
.site-header.is-scrolled::before { opacity: 1; }
/* over the paper the bar turns to frosted paper with ink type */
.site-header.on-paper::before { background: rgba(243, 245, 249, .82); border-bottom-color: rgba(18, 20, 28, .08); }
.site-header.on-paper :is(.logo, .logo-mark, .nav) { color: var(--paper-ink); }
.site-header .logo, .site-header .logo-mark, .site-header .nav { transition: color .35s ease; }
.site-header .wrap { height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { height: 28px; width: auto; color: #fff; display: block; }
.logo-mark { display: none; height: 30px; width: 30px; color: #fff; }
.nav { display: flex; gap: 30px; align-items: center; font-weight: 500; font-size: 14px; color: #fff; }
.nav a { white-space: nowrap; position: relative; }
.nav a:not(.x)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s; }
.nav a:not(.x):hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav .x svg { width: 15px; height: 15px; display: block; }

/* progress rail: which scene of the home page you're in */
.scenes { position: fixed; z-index: 20; right: 26px; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.scenes a { display: flex; align-items: center; gap: 10px; justify-content: flex-end; font: 300 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: transparent; transition: color .3s; }
.scenes a::after { content: ""; width: 18px; height: 1px; background: rgba(221, 227, 241, .3); transition: width .4s, background .3s; }
.scenes a.on { color: var(--mist); }
.scenes a.on::after { width: 36px; background: var(--champagne); }
.scenes:hover a { color: var(--muted); }

/* ---- scenes & type ---- */
.scene { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0; }
.col { width: min(560px, 46%); }
.hero h1, .phero h1 { font-weight: 600; font-size: clamp(48px, 6.4vw, 104px); line-height: .94; letter-spacing: -.045em; margin: 22px 0 28px; }
.phero h1 { font-size: clamp(44px, 5.6vw, 92px); }
/* home headline is the longest; a wider column keeps it to four lines */
.hero .col { width: min(680px, 50%); }
.hero h1 { font-size: clamp(46px, 5.6vw, 92px); }
.hero h1 .soft, .phero h1 .soft { color: var(--muted); font-weight: 400; }
.hero p, .phero p { color: #b6bbcc; font-size: 17px; max-width: 470px; }
.ctas { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 12px; font: 500 15px var(--sans); color: var(--text); border: 1px solid var(--line); background: rgba(18, 20, 28, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .25s, color .25s, border-color .25s; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: rgba(221, 227, 241, .35); }
.btn-p { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.btn-p:hover { background: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn small { font: 300 10px var(--mono); letter-spacing: .06em; color: var(--muted); }
.scroll { margin-top: 56px; display: flex; gap: 12px; align-items: center; }
.scroll i { width: 1px; height: 44px; background: linear-gradient(var(--mist), transparent); position: relative; overflow: hidden; }
.scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--champagne); animation: drip 2s ease-in-out infinite; }
@keyframes drip { to { top: 100%; } }

h2.h { font-weight: 600; font-size: clamp(38px, 4.4vw, 68px); line-height: .98; letter-spacing: -.04em; margin: 16px 0 18px; }
h2.h span { color: var(--muted); font-weight: 400; }
.lede { color: var(--soft); max-width: 460px; margin-bottom: 36px; }
.link { display: inline-flex; gap: 8px; margin-top: 22px; color: var(--mist); font-weight: 500; font-size: 14px; transition: color .25s; }
.link:hover { color: var(--champagne); }

/* ---- home: benchmark accordion ---- */
.blist { border-top: 1px solid var(--line); }
.brow { display: block; border-bottom: 1px solid var(--line); padding: 16px 0; }
.brow .h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.brow h3 { font-weight: 500; font-size: 21px; letter-spacing: -.02em; transition: color .25s, transform .4s var(--ease); }
.brow .h .mono { white-space: nowrap; }
.brow .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.brow .more > div { overflow: hidden; }
.brow .more p { color: var(--soft); font-size: 14px; padding-top: 8px; }
.brow:hover h3, .brow:focus-visible h3 { color: #fff; transform: translateX(8px); }
.brow:hover .more, .brow:focus-visible .more { grid-template-rows: 1fr; }

/* ---- post cards (home + blog) ---- */
.plist { display: grid; gap: 14px; }
.p { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: center; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: rgba(18, 20, 28, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .3s, border-color .3s; }
.p:hover { background: rgba(28, 31, 42, .8); border-color: rgba(221, 227, 241, .25); }
.img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(140deg, #c2b7ee, #a3b2d8 50%, #2a2e40); }
.img img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: multiply; filter: grayscale(1); transition: filter .5s, mix-blend-mode .5s, transform .8s var(--ease); }
a:hover .img img, a:focus-visible .img img { filter: none; mix-blend-mode: normal; }
.p h3 { font-weight: 500; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; margin-top: 6px; }
.p p { color: var(--soft); font-size: 14px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- home: join ---- */
.roles { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 30px; }
.roles a { display: inline-block; padding: 10px 15px; border-radius: 10px; border: 1px solid var(--line); background: rgba(18, 20, 28, .55); font-size: 14.5px; transition: border-color .25s, background .25s, color .25s; }
.roles a:hover { border-color: var(--champagne); color: var(--champagne); }
.mailbig { display: inline-block; font-weight: 600; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; border-bottom: 2px solid var(--champagne); padding-bottom: 4px; transition: color .25s; }
.mailbig:hover { color: var(--champagne); }

/* ---- inner page hero ---- */
.phero { min-height: 88vh; min-height: 88svh; display: flex; align-items: center; padding: 130px 0 70px; }
.phero .count { display: flex; gap: 34px; margin-top: 34px; }
.phero .count div { border-top: 1px solid var(--line); padding-top: 12px; min-width: 110px; }
.phero .count b { display: block; font-weight: 500; font-size: 32px; letter-spacing: -.03em; color: var(--mist); }
.section { position: relative; padding: 40px 0 140px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }

/* ---- benchmarks index ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 13.5px var(--sans); color: var(--soft); padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(18, 20, 28, .55); cursor: pointer; transition: color .25s, border-color .25s, background .25s; }
.chip:hover { color: #fff; border-color: rgba(221, 227, 241, .3); }
.chip[aria-pressed="true"] { color: var(--ink); background: var(--mist); border-color: var(--mist); }
.chip span { font: 300 10px var(--mono); margin-left: 6px; opacity: .7; }
.btable { border-top: 1px solid var(--line); }
.brow2 { display: grid; grid-template-columns: 76px minmax(0, 1fr) 220px 20px; gap: 28px; align-items: center; padding: 22px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); border-radius: 14px; position: relative; transition: background .35s, opacity .45s var(--ease), transform .45s var(--ease); }
.brow2:hover, .brow2:focus-visible { background: rgba(28, 31, 42, .55); }
.brow2 .img { aspect-ratio: 1; border-radius: 12px; }
.brow2 .img img { object-fit: cover; }
.brow2 h3 { font-weight: 500; font-size: 23px; letter-spacing: -.02em; line-height: 1.15; transition: color .25s; }
.brow2 p { color: var(--soft); font-size: 14px; margin-top: 6px; max-width: 620px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brow2 .go { color: var(--muted); transition: color .25s, transform .4s var(--ease); }
.brow2:hover h3 { color: #fff; }
.brow2:hover .go { color: var(--champagne); transform: translate(3px, -3px); }
.brow2.is-out { display: none; }
.empty { color: var(--soft); padding: 28px 0; }

/* ---- blog index ---- */
.feat { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: center; padding: 16px; border-radius: 26px; border: 1px solid var(--line); background: rgba(18, 20, 28, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin-bottom: 18px; transition: border-color .3s, background .3s; }
.feat:hover { border-color: rgba(221, 227, 241, .25); background: rgba(28, 31, 42, .75); }
.feat .img { aspect-ratio: 16 / 10; border-radius: 16px; }
.feat h2 { font-weight: 600; font-size: clamp(28px, 3vw, 44px); line-height: 1.04; letter-spacing: -.035em; margin: 14px 0 16px; }
.feat p { color: var(--soft); max-width: 500px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feat .link { margin-top: 26px; }
.feat > div:last-child { padding-right: 24px; }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.posts .p { grid-template-columns: 180px minmax(0, 1fr); align-items: stretch; }
.posts .p .img { aspect-ratio: auto; min-height: 136px; }
.posts .p > div:last-child { padding: 8px 8px 8px 0; }

/* ---- join us ---- */
.team { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 26px 0; border-top: 1px solid var(--line); }
.team > .mono { padding-top: 14px; color: var(--mist); }
.team ul { list-style: none; }
.jrole { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 12px; margin: 0 -12px; border-radius: 12px; transition: background .3s; }
.jrole + .jrole { border-top: 1px solid var(--line); }
.jrole b { font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.025em; transition: transform .4s var(--ease), color .25s; }
.jrole span { font-size: 14px; color: var(--muted); white-space: nowrap; transition: color .25s; }
.jrole:hover, .jrole:focus-visible { background: rgba(28, 31, 42, .55); }
.jrole:hover b { transform: translateX(8px); color: #fff; }
.jrole:hover span { color: var(--champagne); }
.define { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.define .word { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.define .word b { font-weight: 600; font-size: clamp(52px, 6vw, 96px); letter-spacing: -.05em; line-height: 1; }
.define .word i { font: 300 15px var(--mono); color: var(--muted); font-style: normal; }
.define p { color: #c3c7d4; font-size: 19px; max-width: 520px; }
.define p em { font-style: normal; color: var(--muted); margin-right: 8px; }

/* ---- article / benchmark detail ---- */
.dhero { min-height: 92vh; min-height: 92svh; display: flex; align-items: center; padding: 130px 0 90px; }
.dhero .col { width: min(640px, 52%); }
.dhero h1 { font-weight: 600; font-size: clamp(38px, 4.6vw, 76px); line-height: 1; letter-spacing: -.04em; margin: 20px 0 24px; text-wrap: balance; }
.dhero p.sum { color: #b6bbcc; font-size: 17px; max-width: 540px; }
.dhero .facts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.dhero .facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.dhero .facts b { display: block; font-weight: 500; font-size: 15px; color: var(--champagne); margin-top: 2px; }
.dhero.compact { min-height: 0; padding: 150px 0 70px; }
.dhero.compact .col { width: 100%; }
.crumb { display: inline-flex; gap: 10px; align-items: center; }
.crumb a:hover { color: var(--mist); }

.paper { --text: #0f172a; --muted: #6b7280; --border: #e5e7eb; --line: #e3e7ef; --card-bg: rgba(255, 255, 255, .68); --border-hero: #cbd5e1; --accent: #111827; --pill: #eef1f6; --ink: var(--paper-ink);
    position: relative; z-index: 2; background: var(--paper); color: var(--paper-ink); border-radius: 30px 30px 0 0; padding: 64px 0 110px; color-scheme: light; box-shadow: 0 -30px 80px rgba(10, 11, 16, .55); font-family: var(--sans); }
.paper::before { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(236, 217, 166, .9), rgba(194, 183, 238, .9), transparent); }
.paper { --sv-header-height: 80px; }
/* articles that paint their own ground: the paper takes that colour so no inner box shows */
.paper:has(.sv-layout) { --paper: var(--sv-ground, #fafafa); }
.paper:has(.pbx-hero) { --paper: var(--pbx-paper, #fff); }
.paper .container { width: min(980px, 100% - 48px); margin: 0 auto; }
:where(.paper) a { color: var(--text); }
:where(.paper) a:hover { text-decoration: underline; text-underline-offset: 4px; }
:where(.paper) p { margin: 0 0 16px; }
:where(.paper) h1, :where(.paper) h2, :where(.paper) h3 { margin: 6px 0 12px; line-height: 1.25; }
:where(.paper) ul, :where(.paper) ol { padding-left: 1.6em; margin: 0 0 16px; }
:where(.paper) table { border-collapse: collapse; }
:where(.paper) blockquote { margin: 0 0 16px; padding-left: 16px; border-left: 3px solid var(--border-hero); color: #374151; }
.paper a:focus-visible { outline-color: #4a5b8c; }

/* Article prose. Articles bring their own components and CSS; these base rules keep the
   specificity the old site used (.markdown x) so any article stylesheet still wins. */
.markdown { max-width: 85%; margin: 0 auto; font-family: var(--sans); color: #2a2f3c; line-height: 1.75; }
.markdown h1 { font-size: 1.9em; }
.markdown h2 { font-size: 1.55em; }
.markdown h3 { font-size: 1.18em; }
.markdown a { text-decoration-line: underline; text-underline-offset: 3px; }
.markdown .bv-toc a, .bv-toc a, .bv-toc-link { text-decoration: none !important; }
.markdown img { max-width: 100%; height: auto; border-radius: 12px; }
.markdown pre { background: var(--paper-ink); color: var(--mist); padding: 16px 18px; border-radius: 12px; border: 1px solid #262b3a; overflow: auto; font: 300 12.5px/1.7 var(--mono); }
.markdown code { background: #e7eaf2; color: #2b3352; padding: .12em .42em; border-radius: 6px; border: 0; font-family: var(--mono); font-size: .8em; font-weight: 400; }
.markdown pre code { background: transparent; border: none; color: inherit; padding: 0; font-size: inherit; }

/* Plain-Markdown prose: only direct children of .markdown (what Markdown itself emits),
   at element-level specificity, so article components keep their own look. */
:where(.markdown) > :is(h1, h2, h3, h4) { color: var(--paper-ink); font-weight: 600; letter-spacing: -.02em; line-height: 1.22; margin: 1.9em 0 .6em; text-wrap: balance; }
:where(.markdown) > :is(h3, h4) { margin: 1.6em 0 .5em; letter-spacing: -.012em; }
:where(.markdown) > :first-child { margin-top: 0; }
:where(.markdown) > :is(p, ul, ol) { margin: 0 0 1.15em; }
:where(.markdown) > :is(ul, ol) > li + li { margin-top: .35em; }
:where(.markdown) > :is(ul, ol) > li::marker { color: #8a90a6; }
:where(.markdown) > :is(p, ul, ol, blockquote, table, h2, h3, h4) a { color: #34447a; text-decoration-color: rgba(52, 68, 122, .35); text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s; }
:where(.markdown) > :is(p, ul, ol, blockquote, table, h2, h3, h4) a:hover { color: var(--paper-ink); text-decoration-color: currentColor; }
:where(.markdown) > :is(p, ul, ol) strong { color: var(--paper-ink); font-weight: 600; }
:where(.markdown) > blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid #a99ee0; color: #3b4152; font-size: 1.04em; }
:where(.markdown) > hr { border: 0; height: 1px; background: #dfe3ec; margin: 2.8em 0; }
:where(.markdown) > table { width: 100%; margin: 1.6em 0; font-size: .9em; font-variant-numeric: tabular-nums; }
:where(.markdown) > table th { font: 400 10.5px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #6b7183; text-align: left; padding: 10px 12px; border-bottom: 1px solid #cfd5e1; }
:where(.markdown) > table td { padding: 10px 12px; border-bottom: 1px solid #e6e9f0; vertical-align: top; }
:where(.markdown) > table tr:hover td { background: #eef1f7; }
.markdown ::selection { background: rgba(194, 183, 238, .45); }
.detail { padding: 0; }
/* article-specific floating TOCs stay out of the night hero until reading starts */
.markdown :is(.bv-toc, .ex-toc, .ec-toc, .tb-toc, .sb-toc, .vca-toc, .fs-toc-float, .fs-toc) { transition: opacity .5s ease, visibility .5s; }
body:not(.is-reading) .markdown :is(.bv-toc, .ex-toc, .ec-toc, .tb-toc, .sb-toc, .vca-toc, .fs-toc-float, .fs-toc) { opacity: 0; visibility: hidden; pointer-events: none; }
.back-link { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-weight: 500; font-size: 15px; }
.back-link a { text-decoration: none !important; }
.back-link a:hover { color: #4a5b8c; }

/* ---- 404 ---- */
.lost { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 0; }
.lost .col { width: min(620px, 100%); margin: 0 auto; }
.lost h1 { font-weight: 600; font-size: clamp(44px, 6vw, 88px); line-height: .96; letter-spacing: -.045em; margin: 18px 0 22px; }
.lost .lede { margin: 0 auto; }
.lost .ctas { justify-content: center; }

/* ---- footer ---- */
.site-footer { position: relative; z-index: 3; border-top: 1px solid var(--line); background: rgba(10, 11, 16, .9); padding: 34px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.site-footer .logo { height: 24px; }
.site-footer nav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.site-footer a { transition: color .25s; }
.site-footer a:hover { color: #fff; }
.site-footer .x { display: inline-flex; gap: 8px; align-items: center; }
.site-footer .x svg { width: 13px; height: 13px; }
.paper + .site-footer { border-top: 0; background: var(--ink); }

/* ---- blog preview version switcher (/blog/preview/<slug>) ---- */
.preview-switcher { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 14px; background: rgba(18, 20, 28, .9); color: var(--muted); border: 1px solid rgba(221, 227, 241, .14); border-radius: 999px; font: 300 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.preview-switcher span { margin-right: 6px; }
.preview-switcher a { padding: 5px 12px; border-radius: 999px; color: var(--mist); }
.preview-switcher a:hover { background: rgba(255, 255, 255, .1); }
.preview-switcher a.active { background: var(--mist); color: var(--ink); }

/* ---- motion layer (driven by motion.js) ---- */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms + 120ms); }
[data-split].is-in .w > span { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1s var(--ease); transition-delay: calc(var(--si, 0) * 80ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-magnetic] { transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s; }

@media (max-width: 1100px) {
    .brow2 { grid-template-columns: 64px minmax(0, 1fr) 20px; }
    .brow2 .dom { display: none; }
}
@media (max-width: 900px) {
    .col, .dhero .col, .hero .col { width: 100%; }
    .scene { min-height: 0; padding: 110px 0 60px; }
    .hero, .phero, .dhero { min-height: 100vh; min-height: 100svh; align-items: flex-end; }
    .phero, .dhero { min-height: 92svh; }
    .scenes { display: none; }
    #field { opacity: .45; }
    .feat { grid-template-columns: 1fr; gap: 22px; }
    .feat > div:last-child { padding: 0 8px 10px; }
    .posts { grid-template-columns: 1fr; }
    .team { grid-template-columns: 1fr; gap: 6px; }
    .team > .mono { padding-top: 0; }
    .markdown { max-width: 100%; }
    .paper { border-radius: 22px 22px 0 0; padding-top: 44px; }
}
@media (max-width: 680px) {
    .brow2 { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
    .brow2 .go { display: none; }
    .posts .p { grid-template-columns: 112px minmax(0, 1fr); }
    .posts .p .img { min-height: 104px; }
}
@media (max-width: 600px) {
    .wrap, .paper { --sv-header-height: 80px; }
.paper .container { width: calc(100% - 32px); }
    .nav { gap: 16px; font-size: 13.5px; }
    .p { grid-template-columns: 96px minmax(0, 1fr); }
    .phero .count { gap: 20px; }
    .jrole { flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 420px) {
    .site-header .logo { display: none; }
    .logo-mark { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    [data-split] .w > span, [data-reveal] { transform: none !important; opacity: 1 !important; }
    html { scroll-behavior: auto; }
}
