:root {
  --bg: #fbfbf9;
  --panel: #f1f3ef;
  --surface: #ffffff;
  --border: #e2e6de;
  --borderS: #cdd4c6;
  --ink: #14171a;
  --ink-soft: #4a524b;
  --muted: #868f83;
  --accent: #0b6e5c;
  --accent-strong: #085246;
  --accent-soft: #e2f0ec;
  --disp: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --maxw: 1080px;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important
  }
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 251, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-name {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--accent)
}

.nav-cta {
  font-family: var(--body);
  font-weight: 600;
  font-size: 12.5px;
  background: var(--accent);
  color: #fff;
  padding: 9px 16px;
  border-radius: 7px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s;
}

.nav-cta:hover {
  background: var(--accent-strong)
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 1px
}

@media (max-width:860px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }

  .nav-links.open {
    max-height: 460px;
    overflow-y: auto
  }

  .nav-links a {
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid transparent
  }

  .nav-links a.active {
    border-left-color: var(--accent);
    border-bottom-color: var(--border);
    background: var(--panel)
  }

  .nav-toggle {
    display: block
  }

  .nav-cta {
    display: none
  }
}

section {
  padding: 72px 0
}

.sec-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

.sec-head {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.sec-sub {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.65
}

/* SIGNAL TRACE (signature element) */
.signal {
  width: 100%;
  height: 56px;
  display: block
}

.signal path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6
}

.signal .noise {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 1.6s ease forwards
}

.signal .clean {
  opacity: 0;
  animation: fadeIn .8s ease 1.3s forwards
}

@keyframes draw {
  to {
    stroke-dashoffset: 0
  }
}

@keyframes fadeIn {
  to {
    opacity: 1
  }
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0
}

/* HERO */
#home {
  padding-top: 56px;
  padding-bottom: 0
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-name {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(38px, 6.2vw, 62px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 16px;
}

.hero-line {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-line strong {
  color: var(--ink)
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px
}

.btn {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
  border: 1px solid transparent;
}

.btn-p {
  background: var(--accent);
  color: #fff
}

.btn-p:hover {
  background: var(--accent-strong)
}

.btn-g {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--borderS)
}

.btn-g:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.open-to {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px
}

.open-to-l {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px
}

.tag {
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--borderS);
  color: var(--ink-soft);
  white-space: nowrap;
}

.tag-a {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft)
}

/* SNAPSHOT STRIP */
.snap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

@media (max-width:700px) {
  .snap-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

.snap-cell {
  padding: 22px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.snap-cell:nth-child(4n) {
  border-right: none
}

@media (max-width:700px) {
  .snap-cell:nth-child(2n) {
    border-right: none
  }
}

.snap-n {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 26px;
  color: var(--accent);
  letter-spacing: -0.02em
}

.snap-l {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.4
}

/* PHILOSOPHY */
.phil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 44px
}

.phil-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px
}

.phil-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px
}

.phil-txt {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65
}

.phil-txt strong {
  color: var(--ink);
  font-weight: 600
}

/* FRAMEWORK STEPPER */
.stepper {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 44px
}

.step-row {
  display: flex;
  flex-wrap: wrap
}

.step-btn {
  flex: 1 1 140px;
  padding: 13px 14px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  font-family: var(--body);
}

.step-btn:hover {
  background: var(--panel)
}

.step-btn.open {
  background: var(--accent-soft)
}

.step-idx {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em
}

.step-btn.open .step-idx {
  color: var(--accent-strong)
}

.step-lbl {
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 5px;
  line-height: 1.3
}

.step-detail {
  padding: 22px 24px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  background: var(--panel)
}

/* PARTNERSHIP */
.part-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden
}

.part-card {
  background: var(--surface);
  padding: 18px
}

.part-h {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--accent-strong);
  margin-bottom: 6px
}

.part-p {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6
}

/* EXPERIENCE */
.exp-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}

.exp-card.current {
  border-color: var(--accent)
}

.exp-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.exp-side {
  padding: 20px 18px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px
}

.exp-co {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 13px
}

.exp-sub {
  font-size: 10.5px;
  color: var(--muted)
}

.exp-dates {
  font-size: 10.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.7;
  font-family: var(--mono)
}

.exp-main {
  padding: 22px 24px
}

.exp-role {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px
}

.exp-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 900px
}

.exp-ul li {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-left: 16px;
  position: relative
}

.exp-ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700
}

.exp-ul li strong {
  color: var(--ink);
  font-weight: 600
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px
}

.chip {
  font-size: 10.5px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted)
}

@media (max-width:700px) {
  .exp-card {
    grid-template-columns: 1fr
  }

  .exp-side {
    border-right: none;
    border-bottom: 1px solid var(--border)
  }
}

.edu-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  margin-top: 6px;
  margin-bottom: 14px
}

.edu-side {
  padding: 18px;
  background: var(--panel);
  border-right: 1px solid var(--border)
}

.edu-main {
  padding: 18px
}

@media (max-width:700px) {
  .edu-card {
    grid-template-columns: 1fr
  }

  .edu-side {
    border-right: none;
    border-bottom: 1px solid var(--border)
  }
}

.edu-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px
}

/* CASE STUDIES */
.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden
}

.case-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer
}

.case-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase
}

.case-tag.flag {
  color: var(--accent-strong)
}

.case-title {
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.35
}

.case-chevron {
  font-size: 16px;
  color: var(--muted);
  transition: transform .25s;
  flex-shrink: 0;
  margin-top: 2px
}

.case-card.open .case-chevron {
  transform: rotate(180deg);
  color: var(--accent)
}

.case-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease
}

.case-body-in {
  padding: 0 20px 22px;
  display: grid;
  gap: 14px;
  max-width: 820px
}

.case-row {
  border-left: 2px solid var(--border);
  padding-left: 14px
}

.case-card.open .case-row {
  border-left-color: var(--accent)
}

.case-lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  text-transform: uppercase;
  margin-bottom: 4px
}

.case-txt {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65
}

/* WRITING */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px
}

.writing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s, transform .15s
}

.writing-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px)
}

.writing-num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase
}

.writing-title {
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35
}

.writing-hook {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1
}

.writing-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-strong)
}

.writing-more {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted)
}

/* PROJECTS */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 20px
}

.proj-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden
}

.proj-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px
}

.proj-type {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px
}

.proj-name {
  font-family: var(--disp);
  font-size: 14px;
  font-weight: 700
}

.proj-status {
  font-size: 9.5px;
  padding: 4px 9px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  white-space: nowrap;
  flex-shrink: 0
}

.proj-body {
  padding: 16px 18px;
  flex: 1
}

.proj-prob {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px
}

.proj-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 14px
}

.proj-metric {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px
}

.proj-mn {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-strong)
}

.proj-ml {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4
}

.proj-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-size: 11px
}

.proj-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600
}

.proj-link:hover {
  text-decoration: underline
}

.oss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px
}

.oss-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  background: var(--surface);
  transition: border-color .15s
}

.oss-item:hover {
  border-color: var(--accent)
}

.oss-n {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 3px
}

.oss-t {
  font-size: 10.5px;
  color: var(--muted)
}

/* SKILLS */
.tk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 28px
}

.tk-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px
}

.tk-head {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px
}

.tk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 12.5px
}

.tk-row:last-child {
  margin-bottom: 0
}

.sk-tag {
  font-size: 9.5px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink-soft)
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-bottom: 36px
}

.cert {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface)
}

.cert::before {
  content: '✓';
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden
}

.docs-card {
  background: var(--surface);
  padding: 18px
}

.docs-h {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--accent-strong);
  margin-bottom: 7px
}

.docs-p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6
}

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start
}

@media (max-width:800px) {
  .contact-layout {
    grid-template-columns: 1fr
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}

@media (max-width:500px) {
  .contact-grid {
    grid-template-columns: 1fr
  }
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface)
}

.cc-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px
}

.cc-val {
  font-size: 14px;
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
  display: block
}

.cc-val:hover {
  color: var(--accent)
}

.cc-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px
}

.qr-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  text-align: center
}

.qr-card img {
  margin: 0 auto 12px;
  border-radius: 6px;
  border: 1px solid var(--border)
}

.qr-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px
}

.qr-url {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong)
}

.open-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface);
  margin-top: 16px
}

.ob-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px
}

.ob-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px
}

.ob-loc {
  font-size: 11.5px;
  color: var(--muted)
}

.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease
}

.reveal.visible {
  opacity: 1;
  transform: none
}

/* BLOG POST PAGES */
.post-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px
}

.post-hero {
  padding: 52px 0 8px
}

.post-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px
}

.post-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 10px
}

.post-sub {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 28px
}

.post-body {
  padding: 12px 0 40px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft)
}

.post-body h3 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin: 32px 0 12px
}

.post-body p {
  margin-bottom: 18px
}

.post-body strong {
  color: var(--ink);
  font-weight: 600
}

.post-nav-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.post-nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
  max-width: 260px
}

.post-nav-link .dir {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px
}

.back-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none
}

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

/* VALUE PILLARS ("why work with me") */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 48px
}

.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px
}

.value-icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 12px
}

.value-icon svg {
  width: 100%;
  height: 100%;
  display: block
}

.value-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.3
}

.value-txt {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 12px
}

.value-proof {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 20px
}

/* PHILOSOPHY RING */
.philosophy-loop {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-bottom: 44px
}

.phil-ring-wrap {
  flex: 0 0 220px
}

.phil-ring {
  width: 100%;
  height: auto;
  display: block
}

.phil-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0
}

.phil-row {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--border)
}

.phil-row:first-child {
  border-top: none;
  padding-top: 0
}

.phil-row-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-strong);
  flex-shrink: 0;
  width: 20px;
  padding-top: 2px
}

.phil-row-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 4px;
  line-height: 1.3
}

.phil-row-txt {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.55
}

@media (max-width:700px) {
  .philosophy-loop {
    flex-direction: column;
    align-items: stretch;
    gap: 16px
  }

  .phil-ring-wrap {
    flex: 0 0 auto;
    max-width: 190px;
    margin: 0 auto
  }
}

/* VERTICAL CONNECTED TIMELINE (investigation loop) */
.flow-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px 24px 12px;
  margin-bottom: 44px
}

.timeline {
  position: relative
}

.tl-line {
  position: absolute;
  left: 21px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--border);
  z-index: 0
}

.tl-phase-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0 8px
}

.tl-phase-row:first-child {
  padding-top: 0
}

.tl-phase-marker {
  width: 44px;
  flex-shrink: 0;
  display: flex;
  justify-content: center
}

.tl-phase-marker span {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--accent);
  display: block
}

.tl-phase-title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600
}

.tl-item {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px
}

.tl-dot-wrap {
  width: 44px;
  flex-shrink: 0;
  display: flex;
  justify-content: center
}

.tl-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--borderS);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all .15s;
  flex-shrink: 0
}

.tl-item.open .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff
}

.tl-item:hover .tl-dot {
  border-color: var(--accent)
}

.tl-body {
  flex: 1;
  padding-bottom: 18px;
  cursor: pointer;
  min-width: 0
}

.tl-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px
}

.tl-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink)
}

.tl-chev {
  font-size: 13px;
  color: var(--muted);
  transition: transform .2s;
  flex-shrink: 0
}

.tl-item.open .tl-chev {
  transform: rotate(180deg);
  color: var(--accent)
}

.tl-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease
}

.tl-detail-in {
  padding: 8px 0 4px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 520px
}

/* HUB-AND-SPOKE PARTNERSHIP DIAGRAM */
.hub-wrap {
  margin-bottom: 8px
}

.hub-svg {
  width: 100%;
  height: auto;
  display: block
}

.hub-svg line {
  stroke: var(--borderS);
  stroke-width: 1.5
}

.hub-center {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 8px
}

.hub-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  text-align: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.hub-role {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--accent-strong);
  margin-bottom: 3px;
  line-height: 1.25
}

.hub-need {
  font-size: 10.5px;
  color: var(--ink-soft);
  line-height: 1.35
}

.hub-fallback {
  display: none
}

@media (max-width:760px) {
  .hub-wrap {
    display: none
  }

  .hub-fallback {
    display: grid
  }
}