/* ============================================================
   Local Minima — a dark, typographic theme
   Palette and type inspired by hermes-agent.nousresearch.com
   ============================================================ */

:root {
  --bg: #19192f;
  --bg-deep: #0d0d22;
  --panel: #1f1f3a;
  --panel-soft: #222241;

  --ink: #f2f2f2;
  --ink-dim: #c9c9d8;
  --ink-soft: #a7a7bf;
  --muted: #85859f;

  --line: rgba(242, 242, 242, 0.14);
  --line-soft: rgba(242, 242, 242, 0.075);

  --blue: #0000f2;
  --blue-bright: #2b2bff;
  --periwinkle: #9d9dff;

  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1220px;
  --gutter: 32px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #3a3a5c var(--bg);
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #34344f;
  border: 2px solid var(--bg);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: #46466a; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* fine film grain over everything, like the Hermes site */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms var(--ease), opacity 160ms var(--ease);
}

button { font: inherit; color: inherit; }

::selection {
  background: var(--blue);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--periwinkle);
  outline-offset: 3px;
}

/* ---------- layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 104px 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 96px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--blue-bright);
  flex: none;
}

.eyebrow .sep { opacity: 0.45; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 12px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease),
              border-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-bright);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(242, 242, 242, 0.4);
  background: rgba(242, 242, 242, 0.04);
}

.btn .arrow {
  font-size: 13px;
  transition: transform 180ms var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 25, 47, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  flex: none;
}

.brand:hover { color: #fff; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.nav-link:hover { color: #fff; }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  background: var(--blue-bright);
}

.nav-cta {
  padding: 12px 18px;
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, rgba(0, 0, 242, 0.22), rgba(0, 0, 242, 0) 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 88px;
}

.hero-title {
  font-size: clamp(3.2rem, 7.6vw, 6.9rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0 0 30px;
}

.hero-title .accent {
  color: var(--periwinkle);
}

.hero-sub {
  max-width: 520px;
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--ink-soft);
}

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

.hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(157, 157, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 22px 0;
}
.hero-stat + .hero-stat {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}

.hero-stat .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stat .value {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* ---------- section headings ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.section-link {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.section-link:hover { color: #fff; border-color: var(--ink); }

/* ---------- post listing ---------- */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.post-item { border-bottom: 1px solid var(--line-soft); }

.post-item a {
  display: grid;
  grid-template-columns: 46px 72px minmax(0, 1fr) 42px;
  align-items: start;
  gap: 20px;
  padding: 26px 14px;
  margin: 0 -14px;
  transition: background 200ms var(--ease), padding 200ms var(--ease);
}

.post-item a:hover {
  background: rgba(242, 242, 242, 0.032);
}

.post-item .num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  padding-top: 8px;
}

.post-item .year {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 8px;
}

.post-item .title {
  display: block;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color 180ms var(--ease);
}

.post-item a:hover .title { color: var(--periwinkle); }

.post-item .snip {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.post-item .go {
  justify-self: end;
  font-size: 18px;
  color: var(--muted);
  padding-top: 5px;
  transition: transform 180ms var(--ease), color 180ms var(--ease);
}
.post-item a:hover .go {
  color: var(--periwinkle);
  transform: translate(2px, -2px);
}

/* ---------- about teaser ---------- */

.about-teaser {
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.about-teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: start;
}

.about-teaser h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 1.06;
}
.about-teaser h2 em {
  font-style: normal;
  color: var(--periwinkle);
}

.about-teaser p {
  margin: 0 0 22px;
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 300;
  color: var(--ink-soft);
}

.about-teaser .more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.about-teaser .more:hover { color: var(--periwinkle); border-color: var(--periwinkle); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  padding: 72px 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr));
  gap: 64px;
  padding-bottom: 64px;
}

.footer-wordmark {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.footer-blurb {
  max-width: 360px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-col h3 {
  margin: 4px 0 18px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-dim);
}
.footer-col a:hover { color: #fff; }

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer-base .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-base .status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

/* ---------- generic page ---------- */

.page-head {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--line-soft);
}

.page-head h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.2rem);
  line-height: 0.98;
  margin-bottom: 22px;
}

.page-lead {
  max-width: 680px;
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink-soft);
}

.page-body {
  padding: 64px 0 104px;
}

/* ---------- prose ---------- */

.prose {
  max-width: 760px;
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--ink-dim);
}

.prose > *:first-child { margin-top: 0; }

.prose p { margin: 0 0 1.4em; }

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  margin: 2.2em 0 0.6em;
  line-height: 1.12;
}
.prose h1 { font-size: 2.4rem; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.45rem; }
.prose h4 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--periwinkle);
}

.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }

.prose a {
  color: var(--periwinkle);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: #fff; }

.prose ul,
.prose ol { margin: 0 0 1.5em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose li > p { margin-bottom: 0.6em; }

.prose blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  border-left: 2px solid var(--blue-bright);
  background: rgba(0, 0, 242, 0.07);
  color: var(--ink-soft);
  font-size: 0.96em;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3em 0;
}

.prose img {
  margin: 2em 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.prose figcaption {
  margin-top: -1.4em;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: #101026;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 0.14em 0.4em;
  color: #c3c3ff;
  word-break: break-word;
}

.prose pre,
.prose .highlight {
  margin: 2em 0;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.prose .highlight pre {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.prose pre {
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.68;
  -webkit-overflow-scrolling: touch;
}

.prose pre code {
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink-dim);
  font-size: inherit;
  word-break: normal;
}

.prose table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: 14.5px;
}
.prose th {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px 10px 0;
}
.prose td {
  border-bottom: 1px solid var(--line-soft);
  padding: 11px 14px 11px 0;
  vertical-align: top;
}

/* rouge tokens */
.highlight .c, .highlight .c1, .highlight .cm,
.highlight .cs, .highlight .ch { color: #6f6f91; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr,
.highlight .kt, .highlight .kc { color: #9d9dff; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb,
.highlight .sc, .highlight .se, .highlight .sh, .highlight .si,
.highlight .sx, .highlight .sr { color: #7ee2b8; }
.highlight .m, .highlight .mf, .highlight .mh, .highlight .mi,
.highlight .mo, .highlight .il { color: #ffb86b; }
.highlight .nf, .highlight .fm { color: #8fb8ff; }
.highlight .nc, .highlight .nn { color: #ffd479; }
.highlight .nd, .highlight .na { color: #d0a6ff; }
.highlight .o, .highlight .ow { color: #d5d5e6; }
.highlight .p, .highlight .pun { color: #b8b8cd; }
.highlight .nv, .highlight .vi, .highlight .vg { color: #a6d9ff; }
.highlight .nb, .highlight .bp { color: #ff9dc0; }
.highlight .err { color: #ff6b6b; }

/* ---------- article ---------- */

.post-header {
  padding: 68px 0 46px;
  border-bottom: 1px solid var(--line-soft);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.back-link:hover { color: #fff; }

.post-header h1 {
  max-width: 940px;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.post-deck {
  max-width: 700px;
  margin: 0 0 32px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink-soft);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-meta .tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
}

.post-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 64px;
  padding: 64px 0 96px;
  align-items: start;
}

.post-rail {
  position: sticky;
  top: 104px;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.9;
  color: var(--muted);
}
.post-rail .rail-label {
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.post-footer {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

/* keep article-body link styling from leaking into cards and buttons */
.prose .post-footer a,
.prose .post-list a,
.prose .contact-panel a {
  text-decoration: none;
}
.prose .btn { font-family: var(--mono); font-size: 11px; }
.prose .btn-primary { color: #fff; }
.prose .btn-ghost { color: var(--ink); }
.prose .btn-primary:hover { color: #fff; }
.prose .btn-ghost:hover { color: #fff; }

.prose .post-list,
.prose .fact-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.prose .post-list { border-top: 1px solid var(--line); }

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.post-nav a {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(242, 242, 242, 0.018);
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.post-nav a:hover {
  border-color: var(--line);
  background: rgba(242, 242, 242, 0.04);
}
.post-nav .dir {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-nav .name {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.25;
  color: var(--ink);
}
.post-nav .next { text-align: right; }

/* ---------- about page ---------- */

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line-soft);
}

.about-hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
  margin-bottom: 24px;
}

.about-hero .page-lead { margin-bottom: 0; }

.about-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 0, 242, 0.5), transparent 58%),
    var(--bg-deep);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: screen;
}
.about-portrait .monogram {
  position: relative;
  font-family: var(--display);
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.about-portrait .corner {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  padding: 64px 0 88px;
  align-items: start;
}

.about-layout .prose { max-width: none; }

.about-aside {
  position: sticky;
  top: 104px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.about-aside h2 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.fact-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.fact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.fact-list .k {
  display: block;
  margin-bottom: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-aside .btn { width: 100%; }

.pull-quote {
  margin: 56px 0;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pull-quote p {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink);
}
.pull-quote cite {
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin: 8px 0 0;
}

.practice {
  background: var(--bg);
  padding: 30px 26px 34px;
}
.practice .idx {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--blue-bright);
}
.practice h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.practice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.contact-panel {
  margin-top: 72px;
  padding: 48px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 10%, rgba(0, 0, 242, 0.28), transparent 60%),
    var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.contact-panel h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 10px;
}
.contact-panel p {
  margin: 0;
  max-width: 460px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.contact-panel .btn {
  flex: none;
  white-space: nowrap;
}

/* ---------- misc ---------- */

.center-note {
  padding: 96px 0 140px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .hero-grid { gap: 24px; }
  .hero-art { max-width: 480px; }
  .post-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .post-rail { display: none; }
  .about-hero { grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; }
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .about-aside { position: static; max-width: 420px; }
  .about-aside .btn { width: auto; }
}

@media (max-width: 820px) {
  :root { --gutter: 22px; }

  .section { padding: 76px 0; }

  .nav-inner { height: 68px; }

  .nav-toggle { display: block; }

  .contact-panel .btn { white-space: normal; }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  }
  .site-header.is-open .site-nav { display: flex; }
  .nav-link {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 12px;
  }
  .nav-link.is-active::before { left: 0; display: none; }
  .nav-link.is-active { color: var(--periwinkle); }
  .nav-cta { margin: 18px 0 0; width: 100%; }

  .hero { padding-top: 64px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-bottom: 56px;
  }
  .hero-art {
    justify-self: center;
    max-width: 360px;
    order: 2;
  }
  .hero-sub { font-size: 16.5px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { padding: 16px 0; }
  .hero-stat + .hero-stat {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-left: 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
  }

  .post-item a {
    grid-template-columns: 32px minmax(0, 1fr) 26px;
    gap: 12px;
    padding: 22px 0;
    margin: 0;
  }
  .post-item .year { display: none; }
  .post-item .title { font-size: 22px; }
  .post-item .num { padding-top: 6px; }
  .post-item .snip { font-size: 13px; }

  .about-teaser-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
  .footer-wordmark { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 10px; }

  .page-head { padding: 56px 0 40px; }
  .page-lead { font-size: 17.5px; }
  .page-body { padding: 44px 0 76px; }

  .post-header { padding: 48px 0 32px; }
  .back-link { margin-bottom: 28px; }
  .post-deck { font-size: 17.5px; }
  .post-wrap { padding: 44px 0 72px; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav .next { text-align: left; }

  .about-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 0 40px;
    gap: 32px;
  }
  .about-portrait {
    max-width: 260px;
    aspect-ratio: 1;
    justify-self: center;
  }
  .about-layout { padding: 44px 0 64px; }

  .practice-grid { grid-template-columns: minmax(0, 1fr); }

  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 26px;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
