:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-elevated: #11161c;
  --panel: #151b22;
  --panel-strong: #1b242e;
  --text: #f2f5f8;
  --muted: #9aa8b6;
  --subtle: #6f7d8b;
  --line: #26313d;
  --accent: #C9A82D;
  --accent-strong: #C9A82D;
  --accent-warm: #C9A82D;
  --link-hover: #ECD292;
  --danger: #ff7a7a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  --content: min(1120px, calc(100vw - 32px));
  --reading: 760px;
  font-family: Carlito, Inter, Atkinson Hyperlegible, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img,
picture {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--accent-warm);
  outline-offset: 3px;
}

.skip-link {
  left: 16px;
  position: fixed;
  top: 16px;
  transform: translateY(-160%);
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  align-items: center;
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #202020;
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  min-height: 72px;
  padding: 0 clamp(16px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-wordmark,
.site-brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.site-wordmark {
  display: inline-block;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  width: max-content;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: 6px;
  color: #071014;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.home-hero {
  background-image: linear-gradient(90deg, rgba(11, 13, 16, 0.95), rgba(11, 13, 16, 0.58), rgba(11, 13, 16, 0.92)), url("/assets/images/knowledge-workspace.png");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
  min-height: min(760px, calc(100vh - 72px));
  padding: clamp(72px, 12vw, 128px) clamp(16px, 5vw, 56px) clamp(64px, 10vw, 112px);
}

.hero-inner {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.post-meta {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
}

.home-hero h1 {
  font-size: clamp(3rem, 10vw, 7.5rem);
  margin: 0;
}

.hero-copy {
  color: #dbe5ed;
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  margin: 24px 0 0;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #071014;
}

.button-secondary {
  background: rgba(21, 27, 34, 0.78);
  color: var(--text);
}

.page-band {
  border-bottom: 1px solid var(--line);
  padding: clamp(44px, 7vw, 84px) max(16px, calc((100vw - 1120px) / 2));
}

.intro-band {
  background: #0e1217;
}

.content-grid {
  margin: 0 auto;
  max-width: var(--content);
}

.two-columns {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
}

.content-grid h2,
.section-heading h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0;
}

.section-heading {
  margin: 0 auto 24px;
  max-width: var(--content);
}

.post-list-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--content);
}

.post-card,
.blog-list-item,
.section-row,
.focus-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-card {
  min-height: 250px;
  padding: 20px;
}

.post-card h3 {
  font-size: 1.35rem;
  margin: 0 0 12px;
}

.post-card h3 a,
.section-row {
  color: var(--text);
  text-decoration: none;
}

.post-card p,
.blog-list-item p,
.section-row small,
.focus-list span {
  color: var(--muted);
}

.post-card time,
.blog-list-item time {
  color: var(--subtle);
  font-size: 0.9rem;
}

.section-list {
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: var(--content);
}

.section-row {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 20px;
}

.section-row strong,
.section-row small {
  display: block;
}

.projects-band {
  background: #0d1115;
}

.focus-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.focus-list li {
  padding: 16px 18px;
}

.focus-list strong,
.focus-list span {
  display: block;
}

.home-page {
  background: #050505;
}

.home-page .site-header {
  background: rgba(5, 5, 5, 0.92);
  border-bottom-color: #202020;
}

.home-page .brand-mark {
  background: #f4f4f4;
  border-radius: 3px;
  color: #050505;
}

.personal-hero {
  background:
    linear-gradient(135deg, rgba(97, 218, 251, 0.1), transparent 28%),
    linear-gradient(225deg, rgba(247, 201, 72, 0.12), transparent 30%),
    #0d0d0e;
  border-bottom: 1px solid #242424;
  margin: 0;
  max-width: none;
  min-height: 680px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 44px) 0 0;
  position: relative;
  width: 100%;
}

.personal-hero::before,
.personal-hero::after {
  border: 1px solid rgba(242, 245, 248, 0.6);
  content: "";
  height: 78px;
  position: absolute;
  right: clamp(80px, 14vw, 190px);
  top: -24px;
  transform: rotate(-42deg);
  width: 1px;
}

.personal-hero::after {
  right: clamp(52px, 11vw, 150px);
}

.hero-topline {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(140px, 0.5fr) minmax(0, 1.5fr);
  margin: 0 auto;
  position: relative;
  width: min(1480px, calc(100% - clamp(32px, 8vw, 112px)));
  z-index: 2;
}

.home-logo {
  color: var(--text);
  display: inline-block;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  text-decoration-color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  width: max-content;
}

.hero-jump-nav {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, 240px);
  justify-content: end;
}

.hero-jump-nav a {
  border-top: 1px solid #f2f5f8;
  color: var(--text);
  min-height: 72px;
  padding-top: 9px;
  position: relative;
  text-decoration: none;
}

.hero-jump-nav a::after {
  content: "->";
  position: absolute;
  right: 0;
  top: 7px;
}

.hero-jump-nav strong,
.hero-jump-nav span {
  display: block;
}

.hero-jump-nav strong {
  font-size: 0.92rem;
}

.hero-jump-nav span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 150px;
}

.hero-stage {
  align-items: end;
  display: grid;
  gap: clamp(20px, 4vw, 58px);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  margin: 0 auto;
  min-height: 560px;
  position: relative;
  width: min(1480px, calc(100% - clamp(32px, 8vw, 112px)));
  z-index: 1;
}

.hero-copy-block {
  align-self: center;
  padding-bottom: clamp(40px, 8vw, 96px);
}

.wave {
  color: var(--accent-warm);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.hero-copy-block h1 {
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  letter-spacing: 0;
  line-height: 0.93;
  margin: 0;
  max-width: 740px;
}

.hero-role {
  align-items: center;
  color: #d9dde1;
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(1rem, 2vw, 1.32rem);
  gap: 10px;
  margin: 22px 0 0;
}

.hero-role::before {
  background: #f2f5f8;
  content: "";
  height: 1px;
  width: clamp(54px, 9vw, 120px);
}

.hero-intro {
  color: var(--muted);
  font-size: 1rem;
  margin: 26px 0 0;
  max-width: 620px;
}

.portrait-wrap {
  align-self: end;
  min-height: 520px;
  position: relative;
}

.portrait-wrap::before {
  content: none;
}

.portrait-placeholder {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(242, 245, 248, 0.16), rgba(242, 245, 248, 0)),
    #151515;
  border: 1px solid #303030;
  border-bottom: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  height: min(520px, 62vw);
  justify-content: center;
  min-height: 420px;
  position: absolute;
  right: 0;
  width: min(430px, 100%);
}

.portrait-placeholder span {
  color: #f2f5f8;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 1;
}

.portrait-placeholder small {
  color: var(--muted);
  text-transform: uppercase;
}

.capability-strip {
  align-items: center;
  background: #f2f5f8;
  border: 1px solid #f2f5f8;
  color: #050505;
  display: flex;
  flex-wrap: wrap;
  font-weight: 950;
  gap: 0;
  justify-content: center;
  margin: 0;
  max-width: none;
  min-height: 58px;
  overflow: hidden;
  text-transform: uppercase;
}

.capability-strip span {
  align-items: center;
  display: inline-flex;
  gap: 26px;
  padding: 12px 22px;
  white-space: nowrap;
}

.capability-strip span:not(:last-child)::after {
  color: #7e7e7e;
  content: "/";
  font-weight: 700;
}

.social-strip {
  align-items: center;
  display: flex;
  gap: 22px;
  margin: 42px auto 0;
  max-width: 1040px;
  padding: 0 16px;
}

.social-strip .rule {
  background: #2b2b2b;
  flex: 1;
  height: 1px;
}

.social-strip a {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.social-strip a:hover {
  color: var(--link-hover);
}

.minimal-section {
  border-bottom: 1px solid #242424;
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(54px, 8vw, 104px) 16px;
}

.about-slab {
  display: grid;
  gap: clamp(28px, 6vw, 80px);
  grid-template-columns: 180px minmax(0, 1fr);
}

.section-label {
  align-self: start;
  border-top: 1px solid var(--text);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  padding-top: 10px;
  text-transform: uppercase;
}

.about-copy h2,
.minimal-heading h2 {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  margin: 0;
  max-width: 860px;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 22px 0 0;
  max-width: 780px;
}

.minimal-heading {
  margin-bottom: 28px;
  max-width: none;
}

.business-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.business-card {
  border: 1px solid #373737;
  color: var(--text);
  display: grid;
  gap: 18px;
  min-height: 280px;
  padding: 26px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.business-card:hover {
  background: #f2f5f8;
  border-color: #f2f5f8;
  color: #050505;
  transform: translateY(-3px);
}

.business-card strong,
.business-card small {
  display: block;
}

.business-card strong {
  align-self: end;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.02;
}

.business-card small {
  color: var(--muted);
  max-width: 280px;
}

.business-card:hover small {
  color: #343434;
}

.logo-placeholder {
  align-items: center;
  aspect-ratio: 1;
  border: 1px dashed #565656;
  color: var(--subtle);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
  width: 84px;
}

.minimal-post-list {
  display: grid;
}

.minimal-post {
  align-items: center;
  border-top: 1px solid #303030;
  color: var(--text);
  display: grid;
  gap: 22px;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  min-height: 104px;
  padding: 20px 0;
  text-decoration: none;
}

.minimal-post:last-child {
  border-bottom: 1px solid #303030;
}

.minimal-post:hover strong {
  color: var(--accent-warm);
}

.post-index {
  align-items: center;
  background: #f2f5f8;
  color: #050505;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.minimal-post small,
.minimal-post time {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
}

.minimal-post strong {
  display: block;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.08;
  margin-top: 4px;
}

.minimal-section-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.minimal-section-card {
  border: 1px solid #303030;
  color: var(--text);
  min-height: 180px;
  padding: 20px;
  text-decoration: none;
}

.minimal-section-card strong,
.minimal-section-card small {
  display: block;
}

.minimal-section-card strong {
  font-size: 1.5rem;
  line-height: 1.05;
  margin-top: 0;
}

.minimal-section-card small {
  color: var(--muted);
  margin-top: 10px;
}

.minimal-section-card:hover {
  border-color: var(--accent-warm);
}

.blog-post-page,
.blog-index-page {
  --bg: #050505;
  --panel: #0d0d0e;
  --panel-strong: #151515;
  --line: #242424;
  --text: #f2f5f8;
  --muted: #a7a7a7;
  --subtle: #777777;
  --accent: #C9A82D;
  --accent-strong: #C9A82D;
  --accent-warm: #C9A82D;
  --link-hover: #ECD292;
  background: var(--bg);
}

.blog-post-page .site-header,
.blog-index-page .site-header {
  background: rgba(5, 5, 5, 0.96);
  border-bottom-color: #202020;
}

.knowledge-shell {
  display: grid;
  gap: 0;
  grid-template-columns: 300px minmax(0, 1fr) 280px;
  margin: 0;
  max-width: none;
  min-height: calc(100vh - 72px);
  padding: 0;
  width: 100%;
}

.blog-index-page .knowledge-shell {
  grid-template-columns: 300px minmax(0, 1fr) 280px;
}

.knowledge-sidebar {
  align-self: start;
  background: #0d0d0e;
  border-right: 1px solid #242424;
  height: calc(100vh - 72px);
  max-height: none;
  overflow: auto;
  padding: 16px 12px;
  position: sticky;
  top: 72px;
}

.note-nav {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.sidebar-heading {
  align-items: center;
  border-bottom: 1px solid #242424;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.sidebar-heading a {
  color: var(--muted);
  font-size: 0.86rem;
}

.nav-section {
  border-bottom: 0;
  padding: 4px 0;
}

.nav-section:last-child {
  border-bottom: 0;
}

.nav-section summary {
  align-items: center;
  border-radius: 5px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  padding: 8px;
}

.nav-section summary::after {
  color: var(--subtle);
  content: ">";
  flex: 0 0 auto;
  font-size: 0.78rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: color 140ms ease, transform 140ms ease;
}

.nav-section[open] > summary::after {
  transform: rotate(90deg);
}

.nav-section summary::-webkit-details-marker {
  display: none;
}

.nav-section summary:hover {
  background: #151515;
  color: #ffffff;
}

.nav-section summary:hover::after {
  color: #ffffff;
}

.nav-section summary small {
  color: var(--subtle);
  font-weight: 700;
}

.nav-section-body {
  display: grid;
  gap: 2px;
  margin-left: 10px;
  padding: 2px 0 6px 8px;
}

.note-link {
  border-radius: 5px;
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  padding: 7px 8px;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, padding-left 140ms ease;
}

.note-link:hover,
.note-link[aria-current="page"] {
  background: #151515;
  color: #ffffff;
  padding-left: 12px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.note-article,
.blog-index-content {
  justify-self: center;
  min-width: 0;
  padding: clamp(32px, 5vw, 64px);
  width: min(100%, 900px);
}

.note-article.standalone,
.single-column-page {
  margin: 0 auto;
  max-width: var(--reading);
  padding: 42px 16px 72px;
}

.breadcrumbs {
  color: var(--subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 8px;
  margin-bottom: 28px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--link-hover);
}

.article-header {
  border-bottom: 1px solid #242424;
  margin-bottom: 30px;
  padding-bottom: 26px;
}

.article-header h1 {
  color: #f2f2f2;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  margin: 0;
}

.article-excerpt {
  color: #c6d0db;
  font-size: 1.15rem;
  margin: 18px 0 0;
}

.article-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
}

.featured-figure {
  margin: 0 0 28px;
}

.featured-image {
  aspect-ratio: 16 / 9;
  border: 1px solid #242424;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.prose {
  color: #d4d4d4;
  font-size: 1.02rem;
}

.prose.compact {
  font-size: 1rem;
}

.prose h2,
.prose h3,
.prose h4 {
  color: #ededed;
  margin: 2.1em 0 0.6em;
  scroll-margin-top: 104px;
}

.prose h2 {
  border-top: 0;
  font-size: 1.8rem;
  padding-top: 0;
}

.prose h3 {
  font-size: 1.35rem;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose table {
  margin: 0 0 1.25rem;
}

.prose blockquote {
  background: #0d0d0e;
  border-left: 3px solid var(--accent);
  color: #cbd7e2;
  margin-left: 0;
  padding-bottom: 12px;
  padding-left: 18px;
  padding-top: 12px;
}

.prose code {
  background: #151515;
  border: 1px solid #242424;
  border-radius: 5px;
  color: #e9f5ff;
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.1em 0.35em;
}

.prose pre {
  background: #0d0d0e;
  border: 1px solid #242424;
  border-radius: 6px;
  overflow: auto;
  padding: 16px;
}

.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

.prose table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  width: 100%;
}

.prose th,
.prose td {
  border: 1px solid #242424;
  padding: 10px 12px;
  text-align: left;
}

.article-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags {
  border-top: 1px solid #242424;
  margin-top: 40px;
  padding-top: 18px;
}

.article-tags span,
.tag-row span {
  background: #0d0d0e;
  border: 1px solid #242424;
  border-radius: 999px;
  color: #c8d4df;
  font-size: 0.82rem;
  padding: 3px 9px;
}

.blog-right-rail,
.toc-panel {
  align-self: start;
  background: #050505;
  border-left: 1px solid #242424;
  height: calc(100vh - 72px);
  overflow: auto;
  padding: 28px 18px;
  position: sticky;
  top: 72px;
}

.toc {
  border-left: 0;
  display: grid;
  gap: 8px;
  padding-left: 16px;
}

.toc strong {
  color: #ededed;
  font-size: 0.86rem;
}

.toc a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.toc-level-3 {
  padding-left: 12px;
}

.filter-bar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 220px;
  margin-bottom: 18px;
}

.filter-bar label {
  display: grid;
  gap: 6px;
}

.filter-bar span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  background: #0d0d0e;
  border: 1px solid #242424;
  border-radius: 6px;
  color: var(--text);
  min-height: 44px;
  padding: 10px 12px;
}

.blog-list {
  display: grid;
  gap: 0;
}

.blog-list-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #242424;
  border-radius: 6px;
  color: inherit;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 22px 16px;
  text-decoration: none;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.blog-list-item h2 {
  font-size: 1.45rem;
  margin: 0 0 8px;
}

.blog-list-item h2 {
  color: #f2f5f8;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.blog-list-item:hover,
.blog-list-item:focus-within {
  background: #0d0d0e;
  box-shadow: inset 3px 0 0 var(--accent-warm);
}

.blog-list-item:hover h2,
.blog-list-item:focus h2,
.blog-list-item:focus-within h2 {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.sidebar-toggle {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #071014;
  display: none;
  font-weight: 900;
  min-height: 42px;
  padding: 8px 12px;
}

.right-author-card {
  border-top: 1px solid #242424;
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
}

.right-author-image,
.post-author-image {
  width: max-content;
}

.author-avatar {
  aspect-ratio: 1;
  border: 1px solid #242424;
  border-radius: 999px;
  display: block;
  height: 84px;
  object-fit: cover;
  width: 84px;
}

.post-author-bio .author-avatar {
  height: 104px;
  width: 104px;
}

.author-avatar-fallback {
  align-items: center;
  background: #a78bfa;
  border-radius: 999px;
  color: #191919;
  display: inline-flex;
  font-weight: 900;
  height: 84px;
  justify-content: center;
  width: 84px;
}

.right-author-card strong {
  color: #f2f2f2;
  display: block;
  font-size: 1rem;
}

.right-author-card span {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
}

.author-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-socials a {
  border: 1px solid #242424;
  border-radius: 999px;
  color: #d7d7d7;
  font-size: 0.78rem;
  padding: 4px 9px;
  text-decoration: none;
}

.author-socials a:hover {
  border-color: var(--accent);
  color: var(--link-hover);
}

.post-author-bio {
  align-items: center;
  background: #0d0d0e;
  border: 1px solid #242424;
  border-radius: 6px;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 42px;
  padding: 22px;
}

.post-author-bio h2 {
  font-size: 1.4rem;
  margin: 0;
}

.post-author-bio p {
  color: var(--muted);
  margin: 8px 0 12px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 28px clamp(16px, 4vw, 40px);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

@media (max-width: 1080px) {
  .knowledge-shell,
  .blog-index-page .knowledge-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-toggle {
    display: inline-flex;
    justify-self: start;
    position: sticky;
    top: 84px;
    z-index: 8;
  }

  .knowledge-sidebar {
    background: var(--bg);
    bottom: 0;
    box-shadow: var(--shadow);
    left: 0;
    max-height: none;
    max-width: 340px;
    padding: 16px;
    position: fixed;
    top: 0;
    transform: translateX(-110%);
    transition: transform 160ms ease;
    width: min(86vw, 340px);
    z-index: 30;
  }

  .knowledge-sidebar.is-open {
    transform: translateX(0);
  }

  .toc-panel,
  .blog-right-rail {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 12px;
    padding-top: 12px;
    position: relative;
  }

  .home-hero {
    min-height: auto;
    padding-top: 64px;
  }

  .two-columns,
  .post-list-grid,
  .filter-bar,
  .blog-list-item {
    grid-template-columns: 1fr;
  }

  .page-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .personal-hero {
    min-height: auto;
  }

  .hero-topline,
  .hero-stage,
  .about-slab {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 0;
  }

  .hero-copy-block {
    padding-bottom: 24px;
    padding-top: 48px;
  }

  .portrait-wrap {
    min-height: 380px;
  }

  .portrait-placeholder {
    height: 380px;
    min-height: 360px;
    position: relative;
    width: 100%;
  }

  .business-grid,
  .minimal-section-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-jump-nav {
    grid-template-columns: 1fr;
  }

  .hero-jump-nav a {
    min-height: 58px;
  }

  .personal-hero {
    border-left: 0;
    border-right: 0;
    margin-top: 0;
    width: 100%;
  }

  .hero-role::before {
    width: 52px;
  }

  .capability-strip {
    justify-content: flex-start;
  }

  .social-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-strip .rule {
    width: 100%;
  }

  .minimal-post {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .minimal-post time {
    grid-column: 2;
  }

  .post-author-bio {
    grid-template-columns: 1fr;
  }
}
