@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-700.ttf") format("truetype");
}

@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/material-symbols-outlined.ttf") format("truetype");
}

:root {
  --primary: #041627;
  --primary-container: #1a2b3c;
  --secondary: #006494;
  --secondary-bright: #2cb2fd;
  --secondary-fixed: #cbe6ff;
  --accent: #b4232a;
  --accent-soft: #f7d7da;
  --surface: #f8f9fb;
  --surface-low: #f2f4f6;
  --surface-card: #ffffff;
  --surface-line: #c4c6cd;
  --surface-muted: #e6e8ea;
  --ink: #191c1e;
  --muted: #44474c;
  --soft-muted: #74777d;
  --on-primary: #ffffff;
  --on-primary-muted: #b7c8de;
  --container: 1200px;
  --gutter: 24px;
  --section: 56px;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(26, 43, 60, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.material-symbols-outlined {
  direction: ltr;
  display: inline-block;
  font-family: "Material Symbols Outlined";
  font-feature-settings: "liga";
  font-size: 24px;
  font-style: normal;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
}

.skip-link {
  background: var(--secondary);
  color: white;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -60px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.portfolio-nav {
  background: rgba(248, 249, 251, 0.96);
  border-bottom: 1px solid var(--surface-line);
  height: 80px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}

.nav-inner {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--container);
  padding: 0 var(--gutter);
}

.brand {
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 16px;
}

.nav-link {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  padding: 6px 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  border-color: var(--accent);
  color: var(--primary);
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.avatar {
  border: 1px solid var(--surface-line);
  border-radius: 999px;
  height: 40px;
  object-fit: cover;
  width: 40px;
}

[data-portrait] {
  opacity: 0;
  transition: opacity 0.18s ease;
}

[data-portrait].is-loaded {
  opacity: 1;
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--primary);
  display: none;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
}

.menu-toggle::before {
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  content: "";
  display: block;
  height: 2px;
  width: 20px;
}

.menu-toggle .material-symbols-outlined {
  display: none;
}

.mobile-menu {
  background: var(--surface-card);
  border-bottom: 1px solid var(--surface-line);
  display: none;
  padding: 12px 16px 20px;
}

.mobile-menu.is-open {
  display: grid;
  gap: 8px;
}

.button {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  line-height: 20px;
  min-height: 44px;
  padding: 10px 18px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: var(--on-primary);
}

.button-primary:hover {
  box-shadow: 0 12px 24px rgba(180, 35, 42, 0.2);
}

.button-secondary {
  background: var(--accent);
  color: white;
}

.button-outline {
  background: transparent;
  border: 1px solid var(--soft-muted);
  color: var(--primary);
}

.main-offset {
  padding-top: 80px;
}

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

.section {
  padding: var(--section) 0;
}

.section-muted {
  background: var(--surface-low);
  border-bottom: 1px solid var(--surface-line);
  border-top: 1px solid var(--surface-line);
}

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

.section-head h2,
.page-hero h1,
.article-header h1 {
  color: var(--primary);
  margin: 0;
}

.section-head h2 {
  font-size: 32px;
  line-height: 40px;
}

.section-head p {
  color: var(--muted);
  margin: 8px 0 0;
}

.hero {
  background:
    linear-gradient(135deg, rgba(180, 35, 42, 0.14), transparent 34%),
    linear-gradient(145deg, #061421 0%, #0b1e31 52%, #111820 100%);
  color: var(--on-primary);
  overflow: hidden;
  padding: calc(var(--section) + 10px) 0 calc(var(--section) + 2px);
  position: relative;
}

.hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  opacity: 0.38;
  pointer-events: none;
  position: absolute;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 6.6fr) minmax(320px, 4.8fr);
}

.hero-grid--compact {
  gap: 42px;
}

.hero-grid > *,
.consulting-grid > * {
  min-width: 0;
}

.eyebrow,
.post-card-kicker,
.article-meta-line,
.breadcrumb {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 20px;
}

.display-title {
  color: var(--primary);
  font-size: 48px;
  font-weight: 800;
  line-height: 58px;
  margin: 0 0 24px;
  overflow-wrap: normal;
  word-break: keep-all;
}

.display-title .title-line,
.display-title .title-role {
  display: block;
}

.display-title .title-keep {
  white-space: nowrap;
}

.accent-text {
  color: var(--secondary);
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 32px;
  margin: 0 0 32px;
  max-width: 680px;
}

.hero .eyebrow {
  color: #f0b9bd;
}

.hero .display-title {
  color: var(--on-primary);
  max-width: 820px;
}

.hero .lead {
  color: #d7e2ee;
}

.hero-proof-strip {
  border-bottom: 1px solid var(--surface-line);
  border-top: 1px solid var(--surface-line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 32px;
  max-width: 680px;
}

.hero .hero-proof-strip {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
}

.hero-proof-strip div {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.hero-proof-strip div + div {
  border-left: 1px solid var(--surface-line);
}

.hero .hero-proof-strip div + div {
  border-left-color: rgba(255, 255, 255, 0.13);
}

.hero-proof-strip strong {
  color: var(--primary);
  font-size: 22px;
  line-height: 28px;
}

.hero .hero-proof-strip strong {
  color: white;
}

.hero-proof-strip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.hero .hero-proof-strip span {
  color: #b8c8d8;
}

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

.portrait-wrap {
  position: relative;
}

.portrait {
  aspect-ratio: 4 / 3;
  background: var(--surface-muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.portrait img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.portrait-wrap::after {
  background: linear-gradient(180deg, transparent 48%, rgba(4, 22, 39, 0.72) 100%);
  border-radius: var(--radius);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.capability-map {
  backdrop-filter: blur(10px);
  background: rgba(4, 22, 39, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  bottom: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  color: var(--on-primary);
  display: grid;
  gap: 12px;
  left: 18px;
  padding: 16px;
  position: absolute;
  right: 18px;
  z-index: 2;
}

.capability-map-head {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  padding-bottom: 10px;
}

.capability-map-head span {
  color: #f0b9bd;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
}

.capability-map-row {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.capability-map-row > span {
  align-items: center;
  background: rgba(180, 35, 42, 0.16);
  border: 1px solid rgba(240, 185, 189, 0.22);
  border-radius: var(--radius);
  color: #f0b9bd;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  line-height: 16px;
}

.capability-map-row p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.capability-map-row strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 20px;
}

.capability-map-row em {
  color: #b8c8d8;
  font-size: 13px;
  font-style: normal;
  line-height: 20px;
}

.hero .button-primary {
  background: var(--accent);
  color: white;
}

.hero .button-primary:hover {
  box-shadow: 0 16px 32px rgba(180, 35, 42, 0.28);
}

.hero .button-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.28);
  color: white;
}

.hero .button-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.value-grid,
.achievement-grid,
.home-post-grid,
.trust-grid,
.observation-grid,
.ai-map,
.resume-summary-grid {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-post-grid--static {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.observation-grid,
.ai-map,
.resume-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card,
.achievement-card,
.sidebar-card,
.experience-card,
.education-card,
.skill-card,
.post-card,
.observation-card,
.resume-summary-card,
.contact-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-card,
.achievement-card,
.education-card,
.skill-card,
.observation-card,
.resume-summary-card,
.contact-card {
  padding: 28px;
}

.value-card .material-symbols-outlined {
  color: var(--accent);
  font-size: 40px;
  margin-bottom: 20px;
}

.value-card h3,
.achievement-card h3,
.experience-card h3,
.education-card h2,
.skill-card h2 {
  color: var(--primary);
  margin: 0 0 12px;
}

.education-card h2 .material-symbols-outlined {
  color: var(--accent);
  margin-right: 8px;
  vertical-align: -5px;
}

.value-card p,
.achievement-card p,
.experience-card p,
.education-card p,
.skill-card p {
  color: var(--muted);
  margin: 0;
}

.achievement-index {
  align-items: center;
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--accent);
  display: inline-flex;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  margin-bottom: 20px;
  width: 40px;
}

.proof-note {
  border-top: 1px solid var(--surface-line);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  margin-top: 18px;
  padding-top: 14px;
}

.deliverable-tags {
  border-top: 1px solid var(--surface-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
}

.deliverable-tags span {
  background: var(--surface-low);
  border: 1px solid var(--surface-muted);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  padding: 6px 10px;
}

.home-brief {
  border-top: 0;
}

.home-brief .value-card {
  padding: 24px;
}

.home-brief .value-card .material-symbols-outlined {
  font-size: 34px;
  margin-bottom: 14px;
}

.home-contact {
  border-bottom: 0;
}

.contact-strip {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
}

.contact-strip h2 {
  color: var(--primary);
  font-size: 30px;
  line-height: 38px;
  margin: 0 0 8px;
}

.contact-strip p {
  color: var(--muted);
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag-row span,
.topic-list a {
  background: var(--surface-muted);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  line-height: 18px;
  padding: 5px 10px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  border-color: var(--secondary);
  transform: translateY(-3px);
}

.post-card--featured {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.post-card--dark {
  background: var(--primary-container);
  color: var(--on-primary);
}

.post-card--dark h3,
.post-card--dark a,
.post-card--dark .post-card-kicker {
  color: var(--secondary-fixed);
}

.post-card--dark p,
.post-card--dark .post-meta {
  color: var(--on-primary-muted);
}

.post-card-media {
  aspect-ratio: 2.35 / 1;
  background: var(--secondary-fixed);
  color: var(--secondary);
  display: block;
  overflow: hidden;
}

.post-card--featured .post-card-media {
  aspect-ratio: 1.55 / 1;
  height: auto;
  min-height: 0;
}

.post-card-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  width: 100%;
}

.post-card:hover .post-card-media img {
  transform: scale(1.04);
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.home-post-grid--static .post-card-body {
  min-height: 220px;
}

.post-card--static-feature,
.home-post-grid--static > .post-card:first-child {
  grid-column: span 2;
}

.post-card--static-feature .post-card-body,
.home-post-grid--static > .post-card:first-child .post-card-body {
  min-height: 0;
  padding: 26px;
}

.post-card--static-feature h3,
.home-post-grid--static > .post-card:first-child h3 {
  font-size: 26px;
  line-height: 34px;
}

.post-card h2,
.post-card h3 {
  color: var(--primary);
  margin: 8px 0 10px;
}

.post-card h2 a,
.post-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-card h2 {
  font-size: 22px;
  line-height: 30px;
}

.post-card h3 {
  font-size: 19px;
  line-height: 27px;
}

.post-card p {
  color: var(--muted);
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-card--featured p {
  -webkit-line-clamp: 2;
}

.post-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.post-keywords span {
  background: var(--surface-low);
  border: 1px solid var(--surface-muted);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  padding: 4px 9px;
}

.post-card.post-card--dark h3,
.post-card.post-card--dark h3 a {
  color: #eef8ff;
}

.post-card.post-card--dark .post-card-kicker,
.post-card.post-card--dark .text-link {
  color: #9ddcff;
}

.post-card.post-card--dark p {
  color: #d6e8f7;
}

.post-card.post-card--dark .post-keywords span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #d6e8f7;
}

.post-card.post-card--dark .post-meta,
.post-card.post-card--dark .post-meta span {
  color: #c2dbef;
}

.post-card-foot {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: auto;
}

.post-meta {
  color: var(--soft-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 12px;
  line-height: 16px;
}

.post-meta span {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.post-meta .material-symbols-outlined,
.text-link .material-symbols-outlined {
  font-size: 16px;
}

.text-link {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 4px;
  white-space: nowrap;
}

.page-hero {
  background: var(--surface-card);
  border-bottom: 1px solid var(--surface-line);
  padding: var(--section) 0;
}

.observation-card h3,
.resume-summary-card h3,
.contact-card h2 {
  color: var(--primary);
  margin: 0 0 12px;
}

.observation-card p,
.resume-summary-card p,
.contact-card p {
  color: var(--muted);
  margin: 0;
}

.resume-summary-card .material-symbols-outlined {
  color: var(--accent);
  font-size: 34px;
  margin-bottom: 16px;
}

.contact-layout {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr);
}

.contact-main,
.contact-side {
  display: grid;
  gap: 20px;
}

.contact-card--primary {
  background: var(--primary);
  color: var(--on-primary);
}

.contact-card--primary h2 {
  color: var(--secondary-fixed);
}

.contact-card--primary p {
  color: var(--on-primary-muted);
}

.contact-email-link {
  color: var(--secondary-fixed);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  margin-top: 12px;
}

.check-list,
.process-list {
  display: grid;
  gap: 14px;
}

.check-list p {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.check-list .material-symbols-outlined {
  color: var(--secondary-fixed);
  flex: 0 0 auto;
  margin-top: 2px;
}

.process-list div {
  border-top: 1px solid var(--surface-line);
  display: grid;
  gap: 6px;
  padding-top: 14px;
}

.process-list strong {
  color: var(--primary);
}

.process-list span {
  color: var(--muted);
}

.page-hero--center {
  text-align: center;
}

.page-hero h1 {
  font-size: 48px;
  line-height: 56px;
  margin: 0 0 16px;
}

.page-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 30px;
  margin: 0;
  max-width: 760px;
}

.filter-bar {
  border-bottom: 1px solid var(--surface-line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 48px;
  padding-bottom: 12px;
}

.filter-button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 2px;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--accent);
  color: var(--primary);
}

.post-list-grid {
  align-items: start;
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-list-grid .post-card--featured {
  grid-column: span 2;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}

.page-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  color: var(--primary);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  min-width: 40px;
}

.page-button.is-active {
  background: var(--primary);
  color: white;
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.content-layout,
.article-layout,
.career-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
}

.main-column {
  display: grid;
  gap: var(--gutter);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}

.sidebar-card {
  padding: 24px;
}

.sidebar-card h2,
.sidebar-card h3,
.sidebar-card h4 {
  color: var(--primary);
  font-size: 14px;
  letter-spacing: 0;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.search-input {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-list a span {
  margin-left: 4px;
}

.category-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.category-list li {
  list-style: none;
}

.category-list a {
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.newsletter-card {
  background: var(--primary);
  color: var(--on-primary);
}

.newsletter-card p {
  color: var(--on-primary-muted);
}

.newsletter-card input {
  background: var(--tertiary-container, #1c2a3c);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--on-primary);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.newsletter-card .button {
  margin-top: 12px;
  width: 100%;
}

.article-header {
  margin: 0 auto;
  max-width: var(--container);
  padding: 48px var(--gutter);
}

.breadcrumb {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.breadcrumb .material-symbols-outlined {
  font-size: 16px;
}

.article-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 48px;
  line-height: 56px;
  margin-bottom: 24px;
  max-width: 980px;
}

.article-header p {
  color: var(--muted);
  font-size: 18px;
  line-height: 30px;
  max-width: 840px;
}

.author-line {
  color: var(--muted);
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.article-cover {
  border-radius: var(--radius);
  height: 400px;
  margin: 0 auto 48px;
  max-width: var(--container);
  overflow: hidden;
}

.article-cover img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.post-content {
  background: var(--surface-card);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.post-heading {
  color: var(--primary);
  font-size: 32px;
  line-height: 40px;
  margin: 40px 0 16px;
}

.post-heading:first-child {
  margin-top: 0;
}

.post-paragraph {
  color: var(--muted);
  font-size: 17px;
  line-height: 30px;
  margin: 0 0 24px;
}

.post-list {
  color: var(--muted);
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding-left: 22px;
}

.post-figure {
  margin: 32px 0;
}

.post-figure img {
  border-radius: var(--radius);
  width: 100%;
}

.post-figure figcaption {
  color: var(--soft-muted);
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}

.post-quote {
  border-left: 4px solid var(--secondary);
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  margin: 32px 0;
  padding-left: 20px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-list a {
  color: var(--primary);
  display: grid;
  gap: 3px;
  font-weight: 700;
}

.related-list span {
  color: var(--secondary);
  font-size: 12px;
}

.timeline {
  display: grid;
  gap: 18px;
  position: relative;
}

.timeline::before {
  background: repeating-linear-gradient(to bottom, #d8dadc 0, #d8dadc 4px, transparent 4px, transparent 8px);
  bottom: 0;
  content: "";
  left: 50%;
  position: absolute;
  top: 0;
  width: 2px;
  display: none;
}

.experience-item {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 136px minmax(0, 1fr);
  margin-bottom: 0;
  position: relative;
}

.experience-item:nth-child(even) .experience-card {
  grid-column: 2;
}

.experience-item:nth-child(even) .experience-date {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
}

.experience-card {
  grid-column: 2;
  padding: 24px 26px;
}

.experience-item::before {
  background: linear-gradient(to bottom, rgba(180, 35, 42, 0.45), rgba(180, 35, 42, 0.08));
  bottom: -18px;
  content: "";
  left: 68px;
  position: absolute;
  top: 42px;
  width: 2px;
}

.experience-item:last-child::before {
  display: none;
}

.timeline-node {
  display: none;
}

.experience-date {
  background: var(--surface-card);
  border: 1px solid rgba(180, 35, 42, 0.22);
  border-radius: var(--radius);
  color: var(--accent);
  grid-column: 1;
  grid-row: 1;
  font-size: 14px;
  font-weight: 800;
  justify-self: start;
  line-height: 20px;
  padding: 10px 14px;
  white-space: nowrap;
}

.skill-card--dark {
  background: var(--primary);
  color: var(--on-primary);
}

.skill-card--dark h2 {
  color: var(--on-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: white;
  padding: 6px 10px;
}

.foundation-card {
  display: grid;
  gap: 20px;
}

.foundation-lead {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.foundation-grid,
.career-side-stack {
  display: grid;
  gap: 16px;
}

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

.foundation-item {
  background: var(--surface-low);
  border: 1px solid var(--surface-muted);
  border-radius: var(--radius);
  padding: 16px;
}

.foundation-item h3 {
  color: var(--primary);
  font-size: 15px;
  line-height: 22px;
  margin: 0 0 8px;
}

.foundation-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}

.consulting-band {
  background: var(--surface-card);
}

.consulting-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 6fr) minmax(320px, 5fr);
}

.consulting-grid h2 {
  color: var(--primary);
  font-size: 40px;
  line-height: 48px;
  margin: 0 0 18px;
  max-width: 680px;
}

.consulting-grid p {
  color: var(--muted);
  font-size: 18px;
  line-height: 30px;
  margin: 0;
  max-width: 720px;
}

.consulting-panel {
  background: var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--on-primary);
  display: grid;
  gap: 28px;
  padding: 32px;
}

.consulting-panel strong {
  color: var(--secondary-fixed);
  display: block;
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 16px;
}

.consulting-panel ul {
  color: var(--on-primary-muted);
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.consulting-panel .button {
  justify-self: start;
}

.cta-band {
  background: var(--primary);
  color: var(--on-primary);
  overflow: hidden;
  padding: var(--section) 0;
  position: relative;
  text-align: center;
}

.cta-band::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  inset: 0;
  opacity: 0.14;
  position: absolute;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: var(--secondary-fixed);
  font-size: 40px;
  line-height: 48px;
  margin: 0 0 20px;
}

.cta-band p {
  color: var(--on-primary-muted);
  margin: 0 auto 32px;
  max-width: 720px;
}

.footer {
  background: var(--surface-muted);
  border-top: 1px solid var(--surface-line);
  padding: 32px 0;
}

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

.footer-copy {
  color: var(--muted);
  display: grid;
  gap: 4px;
  font-size: 14px;
  line-height: 22px;
  max-width: 760px;
}

.footer-copy strong {
  color: var(--primary);
}

.icp-link {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.icp-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-disclaimer {
  color: var(--soft-muted);
  font-size: 13px;
  line-height: 21px;
  margin: 4px 0;
  max-width: 720px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 24px;
  line-height: 20px;
}

.empty-state {
  background: var(--surface-card);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 32px;
}

.legacy-redirect {
  min-height: calc(100vh - 80px);
}

@media (max-width: 960px) {
  .nav-links,
  .nav-actions .button {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .value-grid,
  .achievement-grid,
  .home-post-grid,
  .trust-grid,
  .observation-grid,
  .ai-map,
  .resume-summary-grid,
  .post-list-grid,
  .content-layout,
  .article-layout,
  .career-grid,
  .consulting-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .post-card--featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .post-list-grid .post-card--featured {
    grid-column: auto;
  }

  .post-card--featured .post-card-media {
    aspect-ratio: 2.35 / 1;
    height: auto;
  }

  .post-card--static-feature,
  .home-post-grid--static > .post-card:first-child {
    grid-column: auto;
  }

  .timeline::before {
    display: none;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .experience-item::before {
    display: none;
  }

  .experience-card,
  .experience-item:nth-child(even) .experience-card {
    grid-column: 1;
  }

  .experience-item:nth-child(even) .experience-date,
  .experience-date {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    text-align: left;
  }

  .section-head,
  .footer-inner,
  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --section: 56px;
  }

  .brand {
    font-size: 20px;
    line-height: 28px;
  }

  .nav-inner {
    gap: 20px;
    justify-content: flex-start;
  }

  .nav-actions {
    gap: 0;
    margin-left: 0;
  }

  .nav-actions .avatar {
    display: none;
  }

  .display-title,
  .page-hero h1,
  .article-header h1 {
    font-size: 34px;
    line-height: 42px;
  }

  .display-title .title-name,
  .display-title .title-line,
  .display-title .title-role {
    display: block;
  }

  .display-title .title-divider {
    display: none;
  }

  .hero .portrait-wrap {
    display: none;
  }

  .home-post-grid--static > .post-card:nth-child(n+4) {
    display: none;
  }

  .hero-proof-strip {
    grid-template-columns: 1fr;
  }

  .hero-proof-strip div {
    padding: 14px 0;
  }

  .hero-proof-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--surface-line);
  }

  .hero .hero-proof-strip div + div {
    border-top-color: rgba(255, 255, 255, 0.13);
  }

  .lead,
  .page-hero p,
  .article-header p {
    font-size: 16px;
    line-height: 28px;
  }

  .consulting-grid h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .consulting-grid p {
    font-size: 16px;
    line-height: 28px;
  }

  .consulting-panel {
    padding: 24px;
  }

  .post-card-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .post-card-media,
  .post-card--featured .post-card-media {
    aspect-ratio: 2.75 / 1;
  }

  .post-card h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .post-card h3 {
    font-size: 18px;
    line-height: 26px;
  }

  .post-keywords {
    margin-bottom: 12px;
  }

  .post-content {
    padding: 24px;
  }

  .article-cover {
    height: 260px;
  }

  .cta-band h2 {
    font-size: 30px;
    line-height: 38px;
  }

  .foundation-grid {
    grid-template-columns: 1fr;
  }

  .post-card-body,
  .post-card--static-feature .post-card-body,
  .home-post-grid--static > .post-card:first-child .post-card-body {
    padding: 20px;
  }
}

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