:root {
  color-scheme: dark;
  --bg: #141414;
  --surface: #1f1e1d;
  --surface-hover: #292826;
  --border: #343230;
  --border-strong: #494642;
  --text: #d6d2cc;
  --muted: #96918b;
  --heading: #ffffff;
  --accent: #d97757;
  --accent-hover: #e38859;
  --accent-soft: rgba(217, 119, 87, 0.12);
  --nav: rgba(20, 20, 20, 0.86);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  --serif: "Noto Serif SC", ui-serif, Georgia, serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui,
    sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

html:not(.dark) {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f6f4;
  --surface-hover: #efede9;
  --border: #e2dfdb;
  --border-strong: #c9c5c0;
  --text: #3d3b39;
  --muted: #77726d;
  --heading: #171615;
  --accent-soft: rgba(217, 119, 87, 0.1);
  --nav: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 80px rgba(52, 43, 36, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(217, 119, 87, 0.3);
  color: var(--heading);
}

::-webkit-scrollbar {
  width: 0.5rem;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 0.9rem;
  transform: translateY(-150%);
  border: 1px solid var(--accent);
  border-radius: 0.4rem;
  background: var(--bg);
  color: var(--heading);
  font-size: 0.875rem;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: var(--nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, background-color 0.35s ease;
}

.site-header.is-scrolled {
  border-color: var(--border);
}

.nav-shell,
.page-shell,
.footer-shell {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.nav-shell {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  color: var(--heading);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.brand-mark {
  color: var(--accent);
}

.nav-actions,
.desktop-nav,
.social-links,
.button-row,
.tag-list {
  display: flex;
  align-items: center;
}

.nav-actions {
  gap: 1.1rem;
}

.desktop-nav {
  gap: clamp(1rem, 2.4vw, 2rem);
}

.desktop-nav a,
.mobile-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--heading);
}

.icon-button {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--accent);
}

.icon-button svg,
.inline-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.menu-button {
  display: none;
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height 0.28s ease, border-color 0.28s ease;
}

.mobile-nav.is-open {
  max-height: 25rem;
  border-color: var(--border);
}

.mobile-nav nav {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
  padding: 1rem 0 1.35rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 1.5rem;
}

.page-shell {
  position: relative;
}

.hero {
  min-height: 45rem;
  min-height: 92svh;
  display: grid;
  align-items: center;
  padding: 9rem 0 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.65fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: end;
}

.eyebrow,
.section-kicker,
.editable-label,
.card-kicker,
.meta-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.6rem;
}

.eyebrow::before {
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
  content: "";
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(3.35rem, 8vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero h1 em {
  color: var(--muted);
  font-weight: 400;
}

.hero-copy {
  max-width: 38rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.9;
}

.hero-copy strong {
  color: var(--heading);
  font-weight: 500;
}

.button-row {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button-link {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--heading);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

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

.button-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.button-link.primary:hover {
  background: var(--accent-hover);
  color: #171412;
}

.hero-aside {
  border-top: 1px solid var(--border-strong);
}

.hero-aside-row {
  display: grid;
  grid-template-columns: 5.3rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.hero-aside dt {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-aside dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.section-shell {
  padding: clamp(5.5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(9rem, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-heading h2 {
  max-width: 15ch;
  margin: 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.section-intro {
  max-width: 40rem;
  margin: 0;
  align-self: end;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.section-intro strong {
  color: var(--text);
  font-weight: 500;
}

.about-layout,
.capability-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.about-note {
  align-self: start;
  padding: 1.4rem 0;
  border-block: 1px solid var(--border);
}

.about-note p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-note .accent {
  color: var(--accent);
}

.editable-grid,
.assessment-grid,
.project-grid,
.award-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.editable-block,
.panel,
.assessment-card,
.roadmap-card,
.project-card,
.loading-card,
.error-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.editable-block,
.assessment-card,
.roadmap-card,
.project-card,
.loading-card,
.error-card {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.editable-block {
  position: relative;
  min-height: 14rem;
  overflow: hidden;
}

.editable-block::after {
  position: absolute;
  right: -0.5rem;
  bottom: -2.4rem;
  color: var(--border-strong);
  content: attr(data-index);
  font-family: var(--serif);
  font-size: 7rem;
  line-height: 1;
  opacity: 0.35;
}

.editable-block h3,
.assessment-card h3,
.roadmap-card h3,
.project-card h3 {
  position: relative;
  z-index: 1;
  margin: 0.85rem 0 0.65rem;
  color: var(--heading);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.editable-block p,
.assessment-card p,
.roadmap-card p,
.project-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.2rem;
  padding: 0 0 2rem 1.5rem;
}

.timeline li::before {
  position: absolute;
  top: 0.48rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.timeline li::after {
  position: absolute;
  top: 1.15rem;
  bottom: 0.35rem;
  left: 0.26rem;
  width: 1px;
  background: var(--border);
  content: "";
}

.timeline li:last-child::after {
  display: none;
}

.timeline time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.timeline h3 {
  margin: 0 0 0.25rem;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 500;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

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

.assessment-card {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
}

.assessment-card .card-number,
.roadmap-card .year-number {
  display: block;
  color: var(--border-strong);
  font-family: var(--serif);
  font-size: 2.8rem;
  line-height: 1;
}

.assessment-card ul {
  margin: auto 0 0;
  padding: 1.25rem 0 0;
  list-style: none;
}

.assessment-card li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
}

.assessment-card.placeholder {
  border-style: dashed;
}

.assessment-card.placeholder p {
  margin-top: auto;
  padding-top: 1rem;
}

.direction-panel {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px dashed var(--border-strong);
  border-radius: 1rem;
  background: var(--accent-soft);
}

.direction-panel h3 {
  margin: 0.75rem 0 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.direction-panel p {
  margin: 0;
  color: var(--text);
  line-height: 1.85;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.choice-chip,
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1;
}

.choice-chip {
  padding: 0.55rem 0.75rem;
}

.tag {
  padding: 0.42rem 0.65rem;
}

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

.roadmap-card {
  min-height: 24rem;
}

.roadmap-card dl {
  margin: 1.5rem 0 0;
}

.roadmap-card dl div {
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
}

.roadmap-card dt {
  margin-bottom: 0.3rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.roadmap-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

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

.award-item {
  min-height: 10.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  border-top: 1px solid var(--border-strong);
}

.award-icon {
  color: var(--accent);
}

.award-item strong {
  display: block;
  margin-top: 1.5rem;
  color: var(--heading);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

.award-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.section-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-topline h2 {
  margin: 0.65rem 0 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.text-link:hover,
.back-link:hover {
  color: var(--accent);
}

.project-card {
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(217, 119, 87, 0.55);
  background: var(--surface-hover);
}

.project-card-head,
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-card-head {
  color: var(--muted);
}

.project-meta {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

.loading-card,
.error-card {
  min-height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.project-grid > .loading-card,
.project-grid > .error-card {
  grid-column: 1 / -1;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.post-list {
  border-top: 1px solid var(--border-strong);
}

.post-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 0.25rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, padding 0.2s ease;
}

.post-row:hover {
  padding-inline: 0.8rem;
}

.post-row time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.post-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.post-row:hover h3,
.post-row:hover .row-arrow {
  color: var(--accent);
}

.tag-list {
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.row-arrow {
  color: var(--border-strong);
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-shell {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.social-links {
  gap: 1rem;
}

.social-links a:hover {
  color: var(--accent);
}

.cursor-dot,
.cursor-ring {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  z-index: 1001;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.cursor-ring {
  z-index: 1000;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(217, 119, 87, 0.55);
  border-radius: 50%;
  background: rgba(217, 119, 87, 0.04);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-ring.is-hovering {
  width: 3.25rem;
  height: 3.25rem;
  background: rgba(217, 119, 87, 0.12);
}

.cursor-ring.is-clicking {
  width: 2rem;
  height: 2rem;
}

@media (pointer: fine) {
  html.cursor-ready,
  html.cursor-ready a,
  html.cursor-ready button {
    cursor: none;
  }

  html.cursor-ready .cursor-dot,
  html.cursor-ready .cursor-ring {
    display: block;
  }
}

html.motion-ok .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

html.motion-ok .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Article */
.article-shell {
  width: min(100% - 3rem, 49rem);
  margin-inline: auto;
  padding: 8.5rem 0 7rem;
}

.article-header {
  margin: 2.2rem 0 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.article-header time {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.article-header h1 {
  margin: 1rem 0 1.4rem;
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.article-loading,
.article-error {
  padding: 4rem 1rem;
  border-block: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

.article-error strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--heading);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
}

.article-footer-nav {
  margin-top: 4rem;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
}

.article-footer-nav button {
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.prose-claude {
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.9;
  overflow-wrap: break-word;
}

.prose-claude h1,
.prose-claude h2,
.prose-claude h3,
.prose-claude h4 {
  color: var(--heading);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.35;
}

.prose-claude h1 {
  margin: 3.5rem 0 1rem;
  font-size: 2.2rem;
}

.prose-claude h2 {
  margin: 3rem 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.7rem;
}

.prose-claude h3 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.35rem;
}

.prose-claude h4 {
  margin: 2rem 0 0.7rem;
  font-size: 1.12rem;
}

.prose-claude p {
  margin: 1.15rem 0;
}

.prose-claude a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.prose-claude a:hover {
  color: var(--accent-hover);
}

.prose-claude strong {
  color: var(--heading);
  font-weight: 600;
}

.prose-claude blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.35rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 0.7rem 0.7rem 0;
  background: var(--surface);
  color: var(--muted);
}

.prose-claude blockquote p {
  margin: 0.25rem 0;
}

.prose-claude ul,
.prose-claude ol {
  margin: 1.15rem 0;
  padding-left: 1.6rem;
}

.prose-claude li {
  margin: 0.35rem 0;
}

.prose-claude :not(pre) > code {
  padding: 0.15em 0.42em;
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.88em;
}

.prose-claude pre {
  margin: 1.7rem 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--surface);
}

.prose-claude pre code {
  display: block;
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.75;
}

.prose-claude img {
  margin: 2rem auto;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
}

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

.prose-claude table {
  width: 100%;
  display: block;
  margin: 1.7rem 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose-claude th,
.prose-claude td {
  min-width: 8rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  text-align: left;
}

.prose-claude th {
  background: var(--surface);
  color: var(--heading);
}

.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 0.4rem;
}

@media (max-width: 60rem) {
  .assessment-grid,
  .roadmap-grid,
  .award-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assessment-card:last-child,
  .roadmap-card:last-child {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 48rem) {
  .nav-shell,
  .page-shell,
  .footer-shell,
  .mobile-nav nav,
  .article-shell {
    width: min(100% - 2rem, 72rem);
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .hero {
    min-height: auto;
    padding: 8.5rem 0 5rem;
  }

  .hero-grid,
  .section-heading,
  .about-layout,
  .capability-layout,
  .direction-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 3rem;
  }

  .section-heading {
    gap: 1rem;
  }

  .editable-grid,
  .assessment-grid,
  .roadmap-grid,
  .award-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .assessment-card:last-child,
  .roadmap-card:last-child {
    grid-column: auto;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .roadmap-card,
  .assessment-card,
  .editable-block {
    min-height: auto;
  }

  .post-row {
    grid-template-columns: 1fr auto;
    gap: 0.55rem 1rem;
  }

  .post-row time {
    grid-column: 1 / -1;
  }

  .footer-shell {
    padding: 2rem 0;
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .article-shell {
    padding: 7.5rem 0 5rem;
  }
}

@media (max-width: 30rem) {
  .nav-actions {
    gap: 0.55rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15vw, 4rem);
  }

  .button-row,
  .button-link {
    width: 100%;
  }

  .button-link {
    justify-content: center;
  }

  .article-footer-nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

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