/* Roman — site styles
   Direction: bright academic-portfolio language. White page, rounded mesh-gradient
   hero panels over a faint grid, bold geometric display type with an indigo→teal
   gradient line, pill links, tabbed stat cards. Teal still marks agent actions,
   amber still marks human checkpoints. */
:root {
  --paper: #FFFFFF;
  --paper-2: #F5F6FB;
  --surface: #FFFFFF;
  --ink: #0E0F1A;
  --muted: #5B5E72;
  --rule: #E6E7F0;
  --indigo: #3B3FC4;
  --agent: #1F6F78;
  --agent-soft: #DDF0EE;
  --check: #C98A06;
  --check-soft: #FBF0D6;
  --rust: #A2492F;
  --plum: #8A2F63;
  --mesh-a: #CBC8FF;
  --mesh-b: #CFEDE3;
  --mesh-c: #FFDCCB;
  --glass: rgba(255, 255, 255, .74);
  --grad: linear-gradient(100deg, #3B3FC4 0%, #3A55B6 45%, #1F6F78 100%);
  --shadow: 0 1px 2px rgba(14, 15, 26, .04), 0 14px 34px -14px rgba(40, 42, 100, .2);
  --display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  --r: 22px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0B0C13; --paper-2: #151624; --surface: #111220; --ink: #F1F2F8; --muted: #A2A5BA; --rule: #262839;
  --indigo: #9396FF; --agent: #6FC7BE; --agent-soft: #133331; --check: #F2C14E; --check-soft: #2E2612;
  --rust: #F09A7E; --plum: #E58BC0;
  --mesh-a: #2C2A6E; --mesh-b: #113A36; --mesh-c: #4A2B22; --glass: rgba(20, 21, 34, .72);
  --grad: linear-gradient(100deg, #A0A3FF 0%, #8FB2FF 45%, #7FD6CC 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -16px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--indigo); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 700; letter-spacing: -0.045em; line-height: .98; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -0.035em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; gap: 22px;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2)); height: 68px;
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 1.02rem; text-decoration: none; letter-spacing: -0.01em; margin-right: auto; line-height: 1.15; }
.brand .mk { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; box-shadow: 0 6px 16px -6px var(--indigo); flex: none; }
.brand span { color: var(--muted); font-weight: 500; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 24px; font-family: var(--body); font-size: 0.92rem; }
.nav a { text-decoration: none; color: var(--muted); padding: 23px 0; position: relative; }
.nav a:hover { color: var(--indigo); }
.nav a[aria-current="page"] { color: var(--indigo); font-weight: 500; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 15px; height: 2px; border-radius: 2px; background: var(--indigo); }
.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.theme-toggle:hover { border-color: var(--indigo); color: var(--indigo); }
.header-cta { gap: 7px !important; padding: 10px 18px !important; font-size: .9rem !important; border-radius: 12px !important; }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--rule); font: 600 0.9rem var(--display); padding: 8px 14px; border-radius: 999px; color: var(--ink); cursor: pointer; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-block; }
  .header-cta { display: none !important; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); display: none; padding: 8px var(--gutter) 18px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"]::after { display: none; }
}

/* ---------- Layout ---------- */
main { padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 112px) 0 0; }
.section > h2 { margin-bottom: 36px !important; }
.split { display: grid; grid-template-columns: minmax(200px, 1fr) 2.6fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.split > h2 { position: sticky; top: 100px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.split > h2::before, .section > h2::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--grad); margin-bottom: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > h2 { position: static; } }

/* Mesh panel shared by home hero, page heads and CTA */
.hero, .page-head, .cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 32px;
}
.hero::before, .page-head::before, .cta-band::before {
  content: ""; position: absolute; inset: -25%; z-index: -2; filter: blur(80px); opacity: .78;
  background:
    radial-gradient(32% 40% at 22% 30%, var(--mesh-a), transparent 70%),
    radial-gradient(30% 38% at 82% 35%, var(--mesh-b), transparent 70%),
    radial-gradient(28% 34% at 58% 82%, var(--mesh-c), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate;
}
.hero::after, .page-head::after, .cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 65% at 50% 45%, #000 15%, transparent 75%);
  mask-image: radial-gradient(70% 65% at 50% 45%, #000 15%, transparent 75%);
}
@keyframes drift { to { transform: translate(3%, -4%) scale(1.08); } }

.page-head { margin-top: 16px; padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 64px); text-align: center; }
.page-head h1 { max-width: 18ch; margin: 0 auto 22px; }
.page-head .lede { margin: 0 auto; }
.page-head .figures { justify-content: center; }

.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid color-mix(in srgb, var(--indigo) 55%, var(--rule)); background: var(--glass); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--ink); margin-bottom: 22px; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: #2FA36B; box-shadow: 0 0 0 3px color-mix(in srgb, #2FA36B 25%, transparent); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .95rem var(--body); text-decoration: none;
  padding: 13px 22px; border-radius: 999px; border: 0;
  background: var(--grad); color: #fff; cursor: pointer;
  box-shadow: 0 10px 24px -10px var(--indigo);
  transition: transform .3s, box-shadow .3s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--indigo); }
.btn.ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--rule); box-shadow: none; backdrop-filter: blur(8px); }
.btn.ghost:hover { color: var(--indigo); border-color: var(--indigo); }

:root[data-theme="dark"] .btn:not(.ghost) { color: #0B0C13; }

/* ---------- Home hero ---------- */
.hero { margin-top: 16px; display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 64px) 0; }
.hero-copy { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); margin-bottom: 22px; max-width: 15ch; }
.hero h1 .second { display: block; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; margin-top: .08em; }
.hero .lede { margin: 0 auto; }
.hero .actions { justify-content: center; }
.portrait { position: relative; width: min(500px, 88%); margin-top: clamp(28px, 4vw, 44px); }
.portrait::before { content: ""; position: absolute; left: 8%; right: 8%; top: 6%; bottom: 0; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--indigo) 16%, transparent), transparent 90%); border: 1px solid color-mix(in srgb, var(--indigo) 22%, transparent); border-bottom: 0; z-index: -1; }
.portrait img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.hero-side { position: absolute; right: 4%; top: 64%; z-index: 3; max-width: 250px; text-align: left; display: grid; gap: 18px; justify-items: start; animation: float 8s ease-in-out infinite; animation-delay: -4s; }
.hero-side p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.5; }
.hero-side p b { color: var(--ink); }
.hero-note { position: absolute; z-index: 3; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow); font-size: .82rem; color: var(--muted); line-height: 1.45; text-align: left; padding: 13px 18px; animation: float 7s ease-in-out infinite; max-width: 230px; }
.hero-note b { color: var(--ink); font-weight: 600; }
.hero-note.n1 { left: 3%; top: 64%; display: flex; gap: 10px; align-items: center; border-radius: 999px; }
.hero-note.n1 i { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); flex: none; }
.hero-note.n2 { left: 4%; bottom: 8%; animation-delay: -2.5s; }
.hero-note.n3 { right: 3%; top: 62%; animation-delay: -4.5s; }
.hero-note.n3 i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--check); margin-right: 6px; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 1180px) { .hero .hero-note { display: none !important; } .hero-side { position: static; max-width: 460px; justify-items: center; text-align: center; margin-top: 26px; animation: none; } .hero-side { order: 2; } .portrait { order: 3; } }

/* Trace log: the signature element */
.trace {
  background: #10121F; color: #DCE1EA; border: 1px solid #23263A;
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.55; border-radius: 18px;
  padding: 0; overflow: hidden; margin: 0;
  box-shadow: 0 40px 80px -36px rgba(22, 25, 60, .6);
}
.trace-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #23263A; color: #8C93A8; font-size: 0.76rem; }
.trace-bar strong { color: #DCE1EA; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.trace-bar strong::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #FF6B5E; box-shadow: 14px 0 0 #F2C14E, 28px 0 0 #5FCB7F; margin-right: 30px; }
.trace ol { list-style: none; margin: 0; padding: 14px 0 18px; }
.trace li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 5px 18px; }
.trace .t { color: #6B7290; }
.trace .k { color: #7FC4CB; }
.trace li.checkpoint { background: rgba(242, 193, 78, 0.12); border-left: 3px solid #F2C14E; padding-left: 15px; }
.trace li.checkpoint .k { color: #F2C14E; }
.trace li.done .k { color: #A5D6A7; }
.trace .detail { color: #AEB5C7; }
.trace-foot { padding: 12px 18px; border-top: 1px solid #23263A; color: #8C93A8; font-size: 0.76rem; }
.trace.animate li { opacity: 0; transform: translateY(4px); animation: line-in 0.35s ease forwards; }
@keyframes line-in { to { opacity: 1; transform: none; } }

/* ---------- Home: pill links, marquee, stat cards ---------- */
.link-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 9px 16px; font-size: .86rem; font-weight: 500; text-decoration: none; transition: border-color .25s, transform .25s, box-shadow .25s; }
.chip:hover { border-color: var(--indigo); transform: translateY(-2px); box-shadow: var(--shadow); }
.chip svg { color: var(--indigo); }
.marquee-caption { text-align: center; color: var(--indigo); font-weight: 500; font-size: .86rem; margin: 34px auto 0; }
.marquee { overflow: hidden; margin: 12px auto 0; max-width: 880px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee .track { display: flex; width: max-content; animation: mq 36s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { padding: 10px 22px; color: var(--muted); font-weight: 500; white-space: nowrap; }
@keyframes mq { to { transform: translateX(-50%); } }
.rule-fade { height: 1px; background: linear-gradient(90deg, transparent, var(--rule), transparent); margin: 28px auto 0; max-width: 820px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.stat-card { position: relative; border: 1px solid var(--rule); border-radius: var(--r); padding: 28px 22px 22px; background: var(--surface); transition: transform .35s, box-shadow .35s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card::before { content: ""; position: absolute; top: -1px; left: 18px; width: 26px; height: 6px; border-radius: 0 0 6px 6px; background: var(--c); }
.stat-card b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 4.2vw, 3.4rem); letter-spacing: -.045em; line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; }
.stat-card span { display: block; margin-top: 10px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
@media (max-width: 900px) { .stat-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stat-cards { grid-template-columns: 1fr; } }

/* ---------- LinkedIn series ---------- */
.series-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.series-head h2::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--grad); margin-bottom: 16px; }
.series-head h2 { margin-bottom: 12px; }
.series-head p { margin: 0; max-width: 58ch; }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.post { display: flex; flex-direction: column; gap: 14px; text-decoration: none; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); padding: clamp(22px, 3vw, 32px); transition: transform .35s, box-shadow .35s, border-color .35s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--indigo) 40%, var(--rule)); color: var(--ink); }
.post-top { display: flex; justify-content: space-between; font: 600 .72rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.post-top span:last-child { font-family: var(--display); font-size: .9rem; letter-spacing: 0; }
.post h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.post h3 em { display: block; font-style: normal; color: var(--indigo); }
.post p { margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.015em; }
.post-foot { margin-top: auto; padding-top: 14px; border-top: 1.5px solid var(--ink); font-size: .92rem; }
.post-foot b { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.post-foot em { font-style: normal; color: var(--indigo); font-weight: 600; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }
.split .trace { max-width: 760px; }

/* ---------- Threads (home) ---------- */
.threads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.thread { position: relative; overflow: hidden; padding: 30px 28px 32px; text-decoration: none; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); transition: transform .35s, box-shadow .35s, border-color .35s; }
.thread::after { content: ""; position: absolute; right: -60px; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: var(--c, var(--indigo)); opacity: .08; transition: opacity .35s, transform .5s; }
.thread:nth-child(1) { --c: var(--indigo); } .thread:nth-child(2) { --c: var(--check); } .thread:nth-child(3) { --c: var(--agent); }
.thread:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 45%, var(--rule)); color: var(--ink); }
.thread:hover::after { opacity: .16; transform: scale(1.2); }
.thread h3 { font-size: 1.6rem; margin-bottom: 12px; }
.thread p { color: var(--muted); font-size: 1rem; }
.thread .go { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--c); display: inline-flex; align-items: center; gap: 6px; }
.thread .go::after { content: "→"; transition: transform .3s; }
.thread:hover .go::after { transform: translateX(4px); }
@media (max-width: 860px) { .threads { grid-template-columns: 1fr; } }

/* ---------- Work ---------- */
.projects { display: grid; gap: 16px; }
.project { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 28px; padding: 28px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); align-items: start; transition: transform .35s, box-shadow .35s; }
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project h3 { font-size: 1.6rem; }
.project .where { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.project p { margin: 0 0 .6em; }
.project p:last-child { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 0.8rem; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.status { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--agent-soft); color: var(--agent); margin-top: 12px; }
.project .gov { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--check); background: var(--check-soft); border-radius: 0 12px 12px 0; font-size: 0.95rem; color: var(--ink); }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; gap: 14px; } }

.figures { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.figures div { position: relative; font-size: .9rem; color: var(--muted); background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--rule); border-radius: 18px; padding: 22px 26px 18px; min-width: 180px; text-align: left; }
.figures div::before { content: ""; position: absolute; top: -1px; left: 16px; width: 24px; height: 5px; border-radius: 0 0 5px 5px; background: var(--c); }
.figures div:nth-child(1) { --c: var(--indigo); } .figures div:nth-child(2) { --c: var(--agent); } .figures div:nth-child(3) { --c: var(--rust); }
.figures b { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--c); letter-spacing: -0.045em; line-height: 1.05; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.services > div { border: 1px solid var(--rule); border-radius: var(--r); padding: 26px; background: var(--surface); }
.services h3 { margin-bottom: 8px; }
.services p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* ---------- Long-form (governance / agentic) ---------- */
.prose h3 { margin: 40px 0 12px; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.1em; max-width: var(--measure); }
.prose li { margin-bottom: 0.5em; }

.questions { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.questions li { padding: 22px 24px; border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); display: grid; grid-template-columns: 1fr 2fr; gap: 28px; transition: border-color .3s; }
.questions li:hover { border-color: color-mix(in srgb, var(--indigo) 40%, var(--rule)); }
.questions h4 { font-size: 1.1rem; }
.questions p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .questions li { grid-template-columns: 1fr; gap: 8px; } }

.frameworks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.frameworks div { padding: 22px; border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); position: relative; }
.frameworks div::before { content: ""; position: absolute; top: -1px; left: 16px; width: 22px; height: 5px; border-radius: 0 0 5px 5px; background: var(--grad); }
.frameworks h4 { font-size: 1.05rem; margin-bottom: 6px; }
.frameworks p { font-size: 0.95rem; color: var(--muted); margin: 0; }

.callout { border-left: 3px solid var(--check); background: var(--check-soft); padding: 22px 26px; border-radius: 0 18px 18px 0; max-width: 72ch; }
.callout p:last-child { margin-bottom: 0; }

/* Autonomy dial */
.dial { border: 1px solid var(--rule); border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.dial-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 8px; background: var(--paper-2); }
.dial-steps button {
  font: 600 0.95rem var(--display); color: var(--muted); background: transparent; border: 0; border-radius: 14px;
  padding: 14px 12px; cursor: pointer; text-align: left; line-height: 1.25; transition: background .25s, color .25s;
}
.dial-steps button:hover { color: var(--ink); background: var(--surface); }
.dial-steps button small { display: block; font-weight: 500; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.dial-steps button[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -10px var(--indigo); }
.dial-steps button[aria-selected="true"] small { color: rgba(255, 255, 255, .78); }
.dial-meter { height: 5px; background: var(--paper-2); }
.dial-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--agent), var(--check)); width: 20%; transition: width 0.35s ease; border-radius: 0 5px 5px 0; }
.dial-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 30px; }
.dial-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.dial-body dl { margin: 0; font-size: 1rem; }
.dial-body dt { font-family: var(--display); font-weight: 600; margin-top: 12px; }
.dial-body dt:first-child { margin-top: 0; }
.dial-body dd { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 760px) {
  .dial-steps { grid-template-columns: 1fr; }
  .dial-body { grid-template-columns: 1fr; }
}

.guardrails { counter-reset: g; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.guardrails li { counter-increment: g; padding: 22px 22px 22px 70px; border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); position: relative; }
.guardrails li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 10px; background: var(--agent-soft); color: var(--agent); font: 700 .82rem var(--display); display: grid; place-items: center; }
.guardrails h4 { font-size: 1.1rem; margin-bottom: 6px; }
.guardrails p { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 760px) { .guardrails { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principles > div { border: 1px solid var(--rule); border-radius: var(--r); padding: 26px; background: var(--surface); position: relative; }
.principles > div::before { content: ""; position: absolute; top: -1px; left: 18px; width: 24px; height: 5px; border-radius: 0 0 5px 5px; background: var(--c); }
.principles > div:nth-child(4n+1) { --c: var(--indigo); } .principles > div:nth-child(4n+2) { --c: var(--agent); }
.principles > div:nth-child(4n+3) { --c: var(--rust); } .principles > div:nth-child(4n+4) { --c: var(--plum); }
.principles h3 { font-size: 1.2rem; margin-bottom: 8px; }
.principles p { font-size: 0.98rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.quotes figure { margin: 0; border: 1px solid var(--rule); border-radius: var(--r); padding: 28px; background: var(--surface); display: flex; flex-direction: column; }
.quotes figure::before { content: "★★★★★"; color: #E2A93B; letter-spacing: 2px; font-size: .85rem; margin-bottom: 12px; }
.quotes blockquote { margin: 0 0 18px; font-family: var(--display); font-weight: 500; font-size: 1.15rem; line-height: 1.4; letter-spacing: -.01em; }
.quotes figcaption { margin-top: auto; font-size: 0.9rem; color: var(--muted); }
.quotes figcaption b { color: var(--ink); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.channel { padding: 24px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); margin-bottom: 14px; }
.channel h3 { font-size: 1.15rem; margin-bottom: 4px; }
.channel p { margin: 0 0 14px; color: var(--muted); font-size: 0.98rem; }
.channel p:last-child { margin-bottom: 0; }
form { display: grid; gap: 18px; border: 1px solid var(--rule); border-radius: 24px; padding: clamp(22px, 3vw, 34px); background: var(--surface); box-shadow: var(--shadow); }
label { font-weight: 600; font-size: 0.92rem; display: grid; gap: 6px; }
input, select, textarea {
  font: 1rem var(--body); color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--indigo); outline-offset: 0; border-color: var(--indigo); background: var(--surface); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.92rem; color: var(--muted); margin: 0; }
.form-result { display: none; padding: 16px 18px; border-radius: 14px; background: var(--agent-soft); }
.form-result.show { display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA + footer ---------- */
.cta-band { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: clamp(48px, 7vw, 88px) 24px; }
.cta-band h2 { max-width: 22ch; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta-band .actions { justify-content: center; margin-top: 22px !important; }

.site-footer { margin-top: clamp(64px, 9vw, 112px); padding: 36px max(var(--gutter), calc((100vw - var(--max)) / 2)) 44px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 0.9rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--indigo); }

/* Gentle entrance, visible at rest when JS is off */
.js .rv { opacity: .001; transform: translateY(16px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .trace.animate li { opacity: 1; transform: none; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- Featured product + screenshot cards ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border: 1px solid var(--rule); border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.feature-img { display: block; position: relative; overflow: hidden; background: #10121F; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.feature:hover .feature-img img { transform: scale(1.04); }
.feature-body { padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; }
.feature-body .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--indigo); }
.feature-body .kicker i { width: 7px; height: 7px; border-radius: 50%; background: #2FA36B; box-shadow: 0 0 0 3px color-mix(in srgb, #2FA36B 25%, transparent); }
.feature-body h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; margin: 12px 0 14px; }
.feature-body > p { color: var(--muted); }
.agents { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.agents li { font-size: .8rem; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.agents b { color: var(--ink); font-weight: 600; margin-right: 3px; }
.feature .gov { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--check); background: var(--check-soft); border-radius: 0 12px 12px 0; font-size: .93rem; color: var(--ink); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature-img img { aspect-ratio: 16 / 10; } }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.shot { border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s; }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.shot-img { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.shot:hover .shot-img img { transform: scale(1.05); }
.shot-img span { position: absolute; left: 12px; top: 12px; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--rule); color: var(--ink); }
.shot-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.shot-body h3 { font-size: 1.3rem; }
.shot-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.shot-body .tags { margin-top: auto; padding-top: 6px; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }
.split .project { grid-template-columns: 1fr 2fr; }
.split .project .tags { grid-column: 2; }
@media (max-width: 900px) { .split .project { grid-template-columns: 1fr; } .split .project .tags { grid-column: auto; } }

/* Research & Writing list (added Nov 2026) */
.rw-list { display: grid; gap: 14px; min-width: 0; }
.rw-item { border: 1px solid var(--rule); background: var(--surface); border-radius: 18px; padding: 22px 24px; min-width: 0; }
.rw-item.compact { padding: 16px 20px; }
.rw-item h3 { font-family: var(--display); font-size: 1.15rem; line-height: 1.25; margin: 6px 0 10px; letter-spacing: -0.01em; }
.rw-item.compact h3 { font-size: 1.02rem; margin: 4px 0 6px; }
.rw-item h3 a { color: var(--ink); text-decoration: none; }
.rw-item h3 a:hover { color: var(--indigo); text-decoration: underline; }
.rw-item p { margin: 0 0 10px; }
.rw-item p:last-child { margin-bottom: 0; }
.rw-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rw-year { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.status-pill { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); background: var(--paper-2); }
.status-pill.progress { color: var(--agent); border-color: color-mix(in srgb, var(--agent) 45%, var(--rule)); background: var(--agent-soft); }
.status-pill.proposed { color: var(--check); border-color: color-mix(in srgb, var(--check) 45%, var(--rule)); background: var(--check-soft); }
.status-pill.pub { color: var(--indigo); border-color: color-mix(in srgb, var(--indigo) 40%, var(--rule)); background: color-mix(in srgb, var(--indigo) 8%, var(--paper)); }
.site-footer a[href^="mailto"] { color: var(--ink); }

/* Blog (rebuilt Nov 2026) */
.blog-post { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.post-head { max-width: 760px; margin: 28px auto 26px; text-align: left; }
.post-head h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -0.02em; margin: 10px 0 14px; }
.post-head .lede { margin: 0 0 14px; }
.post-meta { font-size: .9rem; color: var(--muted); margin: 0; }
.post-meta a { color: var(--ink); text-decoration: none; font-weight: 500; }
.post-hero { margin: 0 auto 36px; max-width: 1000px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow); background: var(--surface); }
.post-hero img { display: block; width: 100%; height: auto; }
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; max-width: 1000px; margin: 0 auto; align-items: start; }
.post-layout .toc { position: sticky; top: 90px; font-size: .88rem; display: grid; gap: 2px; }
.post-layout .toc .lbl { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.post-layout .toc a { color: var(--muted); text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid var(--rule); line-height: 1.35; }
.post-layout .toc a:hover { color: var(--indigo); border-left-color: var(--indigo); }
.blog-body { max-width: var(--measure); font-size: 1.08rem; line-height: 1.7; }
.blog-body > p:first-child { font-size: 1.18rem; line-height: 1.6; }
.blog-body h2 { font-family: var(--display); font-size: 1.4rem; margin: 40px 0 12px; letter-spacing: -0.01em; scroll-margin-top: 90px; }
.blog-body p { margin: 0 0 18px; }
.blog-body ul { margin: 0 0 18px 22px; }
.blog-body li { margin-bottom: 8px; }
.blog-body strong { font-weight: 600; color: var(--ink); }
.blog-by { max-width: var(--measure); margin: 36px auto 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.post-nav { max-width: 1000px; margin: 34px auto 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-nav a { display: block; border: 1px solid var(--rule); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); background: var(--surface); font-weight: 500; }
.post-nav a span { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.post-nav a:hover { border-color: var(--indigo); }
.post-nav a:only-child { grid-column: 1 / -1; }
.related { max-width: 1000px; margin: 48px auto 56px; }
.related h2 { font-size: 1.3rem; margin-bottom: 18px; }
.bgrid { display: grid; gap: 18px; }
.bgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bgrid.featured { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
.bgrid.featured .bcard.big { grid-row: 1 / span 2; }
.bcard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; min-width: 0; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.bcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--indigo) 40%, var(--rule)); }
.bcard img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid var(--rule); }
.bcard-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.bcard-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bcard h3 { font-family: var(--display); font-size: 1.08rem; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.bcard.big h3 { font-size: 1.6rem; }
.bcard p { margin: 0; color: var(--muted); font-size: .95rem; }
.bcard.big p { font-size: 1.05rem; }
@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; gap: 0; } .post-layout .toc { display: none; } .bgrid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-nav, .bgrid.three, .bgrid.featured { grid-template-columns: 1fr; } .bgrid.featured .bcard.big { grid-row: auto; } }
@media (prefers-reduced-motion: reduce) { .bcard { transition: none; } .bcard:hover { transform: none; } }

/* Phone layout (added Nov 2026) */
@media (max-width: 760px) {
  .hero { padding: 30px 16px 0; margin-top: 12px; }
  .hero h1 { font-size: clamp(2rem, 9.6vw, 2.7rem); max-width: none; margin-bottom: 16px; letter-spacing: -0.02em; }
  .hero .lede { font-size: 1rem; line-height: 1.5; max-width: 34ch; }
  .hero .actions { gap: 8px; }
  .hero .actions .btn { padding: 10px 16px; font-size: .92rem; }
  .hero-side { display: none; }
  .portrait { width: min(360px, 82%); margin-top: 20px; }
  .badge { border-radius: 14px; padding: 7px 12px; font-size: .74rem; line-height: 1.35; text-align: center; max-width: 92%; margin-bottom: 16px; gap: 6px; }
  .badge i { display: none; }
  .link-pills { gap: 8px; margin-top: 16px; }
  .chip { padding: 8px 13px; font-size: .82rem; }
  .page-head { padding: 34px 18px 36px; margin-top: 12px; }
  .page-head h1 { font-size: clamp(1.9rem, 9vw, 2.5rem); margin-bottom: 12px; }
  .page-head .lede { font-size: 1rem; line-height: 1.5; }
  .lede { font-size: 1rem; }
  h2 { font-size: 1.5rem; }
  .section { padding-top: 36px; padding-bottom: 36px; }
  .split > h2 { margin-bottom: 14px; }
  .cta-band h2 { font-size: 1.4rem; }
  .post-head h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .post-hero { border-radius: 14px; margin-bottom: 24px; }
  .blog-body { font-size: 1.02rem; line-height: 1.65; }
  .blog-body > p:first-child { font-size: 1.08rem; }
  .blog-body h2 { font-size: 1.22rem; margin: 30px 0 10px; }
  /* compact horizontal cards in series lists; only the featured card keeps a full image */
  .bgrid.three .bcard, .bgrid.featured .bcard:not(.big) { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: stretch; }
  .bgrid.three .bcard img, .bgrid.featured .bcard:not(.big) img { aspect-ratio: 1 / 1; height: 100%; border-bottom: 0; border-right: 1px solid var(--rule); object-position: 50% 35%; }
  .bgrid.three .bcard-body, .bgrid.featured .bcard:not(.big) .bcard-body { padding: 10px 12px; gap: 4px; }
  .bgrid.three .bcard h3, .bgrid.featured .bcard:not(.big) h3 { font-size: .98rem; }
  .bgrid.three .bcard p, .bgrid.featured .bcard:not(.big) p { display: none; }
  .bgrid.three .bcard-meta, .bgrid.featured .bcard:not(.big) .bcard-meta { gap: 6px; }
  .bgrid.three .bcard-meta .status-pill, .bgrid.featured .bcard:not(.big) .bcard-meta .status-pill { display: none; }
  .bgrid.three .rw-year, .bgrid.featured .bcard:not(.big) .rw-year { font-size: .72rem; }
  .bgrid { gap: 10px; }
  .related .bgrid.three .bcard p { display: none; }
  .series-head { margin-bottom: 10px; }
  .rw-item { padding: 16px 16px; border-radius: 14px; }
  .rw-item h3 { font-size: 1.05rem; }
  .project { padding: 16px; }
  .feature-body { padding: 18px; }
}

/* Blog index, news-card layout (added Nov 2026) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.news-head { max-width: 1040px; margin: 0 auto; padding: 64px var(--gutter) 8px; text-align: center; }
.news-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.news-head p { color: var(--muted); font-size: 1.12rem; line-height: 1.6; margin: 0 auto; max-width: 60ch; }
.ntabs { display: inline-flex; flex-wrap: nowrap; justify-content: center; gap: 4px; margin-top: 34px; padding: 6px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.ntab { flex: none; font: 600 0.95rem/1 var(--display); color: var(--ink); background: transparent; border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer; transition: background .2s, color .2s; }
.ntab:hover { color: var(--agent); }
.ntab[aria-pressed="true"] { background: var(--agent); color: #fff; }
.news-wrap { max-width: var(--max); margin: 0 auto; padding: 44px var(--gutter) 80px; }
.ngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.ncard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s; }
.ncard[hidden] { display: none; }
.ncard:hover, .ncard:focus-within { border-color: var(--agent); box-shadow: var(--shadow); transform: translateY(-3px); }
.ncard-media { display: block; aspect-ratio: 1200 / 540; overflow: hidden; background: var(--paper-2); }
.ncard-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; transition: transform .5s; }
.ncard:hover .ncard-media img { transform: scale(1.04); }
.ncard-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 30px 30px 30px; }
.ncard-date { position: static; align-self: flex-start; margin: -18px 0 0 16px; z-index: 1; background: var(--surface); color: var(--ink); font: 600 0.82rem/1 var(--display); padding: 11px 15px; border-radius: 999px; box-shadow: 0 2px 10px rgba(14, 15, 26, .14); }
.ncard-series { font: 600 0.72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--agent); margin: 0 0 12px; }
.ncard h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.015em; margin: 0 0 14px; }
.ncard h3 a { text-decoration: none; color: var(--ink); }
.ncard h3 a:hover { color: var(--agent); }
.ncard-sum { color: var(--muted); font-size: 0.96rem; line-height: 1.6; margin: 0 0 26px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 600 0.9rem/1 var(--display); color: var(--ink); text-decoration: none; padding: 14px 22px; border: 1px solid var(--rule); border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.ncard-btn:hover { background: var(--agent); border-color: var(--agent); color: #fff; }
.ncard-btn span[aria-hidden] { transition: transform .2s; }
.ncard-btn:hover span[aria-hidden] { transform: translateX(3px); }
.nmore-wrap { text-align: center; margin: 44px 0 0; }
.nmore { font: 600 0.95rem/1 var(--display); color: #fff; background: var(--agent); border: 0; border-radius: 999px; padding: 15px 30px; cursor: pointer; }
.nmore:hover { filter: brightness(1.1); }
.nmore[hidden] { display: none; }
@media (max-width: 980px) { .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .news-head { padding-top: 40px; }
  .ntabs { display: flex; flex-wrap: nowrap; justify-content: flex-start; max-width: 100%; overflow-x: auto; margin-top: 24px; scrollbar-width: none; }
  .ntabs::-webkit-scrollbar { display: none; }
  .ntab { flex: none; padding: 11px 16px; font-size: 0.88rem; }
  .ngrid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ncard-body { padding: 26px 22px 24px; }
}
@media (max-width: 860px) { .ntabs { display: flex; max-width: 100%; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; } }
/* Photo credits and photo crops (added Nov 2026) */
.post-hero .photo-credit { font-size: 0.78rem; color: var(--muted); margin: 0; padding: 9px 16px 10px; line-height: 1.5; background: var(--surface); }
.post-hero .photo-credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 2px; }
.post-hero .photo-credit a:hover { color: var(--agent); }
.ncard-media img { object-position: 50% 45%; }
@media (max-width: 640px) {
  .page-head .figures { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
  .page-head .figures div { min-width: 0; padding: 18px 16px 14px; font-size: .82rem; }
  .page-head .figures b { font-size: 1.9rem; }
}

/* Home hero focus areas (added Nov 2026) */
.hero h1 { max-width: 17ch; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(100%, 940px); margin: 34px auto 6px; text-align: left; }
.pillar { position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 3px; align-items: center; padding: 18px 18px 17px; border: 1px solid var(--rule); border-radius: 18px; background: var(--glass); backdrop-filter: blur(10px); text-decoration: none; color: var(--ink); transition: transform .25s, border-color .25s, box-shadow .25s; }
.pillar:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: var(--shadow); color: var(--ink); }
.pillar-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.pillar-t { font: 600 1.05rem/1.2 var(--display); letter-spacing: -0.01em; }
.pillar-d { font-size: .84rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pillars { gap: 10px; margin-top: 22px; }
  .pillar { grid-template-columns: 32px 1fr; column-gap: 10px; padding: 11px 12px; border-radius: 14px; }
  .pillar-ic { grid-row: auto; width: 32px; height: 32px; border-radius: 10px; }
  .pillar-ic svg { width: 18px; height: 18px; }
  .pillar-t { font-size: .88rem; line-height: 1.2; }
  .pillar-d { display: none; }
}

/* Ongoing research / survey landing page (added Nov 2026) */
.sv-hero { max-width: 980px; margin: 16px auto 0; padding: clamp(48px, 7vw, 88px) var(--gutter) 40px; text-align: center; }
.sv-kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 .8rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--agent); background: var(--agent-soft); padding: 9px 14px; border-radius: 999px; margin: 0 0 22px; }
.sv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--agent); box-shadow: 0 0 0 0 var(--agent); animation: sv-pulse 2s infinite; }
@keyframes sv-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--agent) 60%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.sv-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); margin: 0 auto 20px; max-width: 16ch; }
.sv-hero h1 .second { display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.sv-hero .lede { margin: 0 auto; max-width: 60ch; }
.sv-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 8px; }
.sv-facts span { border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 10px 18px; font-size: .92rem; color: var(--muted); }
.sv-facts b { color: var(--ink); font-family: var(--display); margin-right: 4px; }
.sv-hero .actions { justify-content: center; margin-top: 26px; }
.sv-cta { font-size: 1.05rem; padding: 16px 30px; }
.sv-wrap { max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter); }
.sv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sv-card, .sv-paper, .sv-author, .sv-share { border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); padding: clamp(24px, 3.4vw, 40px); }
.sv-card h2, .sv-share h2 { font-size: 1.5rem; margin-bottom: 14px; }
.sv-card p { color: var(--muted); }
.sv-langs { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sv-langs li { font: 500 .92rem/1 var(--body); padding: 9px 14px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--rule); }
.sv-langs li:last-child { background: transparent; border-style: dashed; color: var(--muted); }
.sv-points { margin: 0 0 24px; padding-left: 20px; }
.sv-points li { margin-bottom: 10px; }
.sv-label { font: 600 .76rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--agent); margin: 0 0 12px; }
.sv-paper h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 18px; max-width: 28ch; }
.sv-paper > p { max-width: 72ch; }
.sv-stages { max-width: 72ch; padding-left: 22px; margin: 18px 0; }
.sv-stages li { margin-bottom: 12px; }
.sv-abstract { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 16px; max-width: 72ch; }
.sv-abstract summary { cursor: pointer; font: 600 1rem var(--display); color: var(--indigo); }
.sv-abstract p { color: var(--muted); font-size: .96rem; margin-top: 14px; }
.sv-author { display: grid; grid-template-columns: 240px 1fr; gap: clamp(22px, 4vw, 44px); align-items: center; }
.sv-author img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--rule); background: #fff; }
.sv-author h2 { font-size: 2rem; margin-bottom: 6px; }
.sv-role { color: var(--agent); font-weight: 600; margin: 0 0 14px; }
.sv-left { justify-content: flex-start; }
.sv-share { text-align: center; margin-bottom: 40px; }
.sv-share p { color: var(--muted); max-width: 56ch; margin: 0 auto 20px; }
.sv-share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sv-wa { background: #1F8F4E; }
.sv-wa:hover { background: #18773F; color: #fff; }
@media (max-width: 820px) {
  .sv-grid { grid-template-columns: 1fr; }
  .sv-author { grid-template-columns: 1fr; text-align: left; }
  .sv-author img { max-width: 220px; }
}
@media (max-width: 640px) {
  .sv-hero { padding-top: 36px; }
  .sv-facts span { padding: 8px 13px; font-size: .85rem; }
  .sv-cta { width: 100%; justify-content: center; }
}

/* Blog survey call-out (added Nov 2026) */
.survey-callout { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin: 40px auto 28px; max-width: 1000px; padding: clamp(22px, 3vw, 32px); border: 1px solid color-mix(in srgb, var(--agent) 35%, var(--rule)); border-radius: var(--r); background: linear-gradient(135deg, var(--agent-soft), var(--surface) 70%); }
.survey-callout h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.25; margin: 0 0 8px; }
.survey-callout p { margin: 0; color: var(--muted); }
.sc-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 .74rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--agent) !important; margin-bottom: 12px !important; }
.sc-actions { display: flex; flex-direction: column; gap: 10px; }
.sc-actions .btn { justify-content: center; white-space: nowrap; }
.sc-index { padding-top: 0; padding-bottom: 0; }
.sc-index .survey-callout { margin: 20px auto 0; max-width: none; }
@media (max-width: 720px) {
  .survey-callout { grid-template-columns: 1fr; gap: 16px; }
  .sc-actions { flex-direction: row; flex-wrap: wrap; }
}
