:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202124;
  background: #f7f7f4;
  --page: #f7f7f4;
  --surface: #ffffff;
  --surface-muted: #f0f1ed;
  --text: #202124;
  --muted: #5f666d;
  --line: #dfe2dc;
  --accent: #1f6f62;
  --accent-soft: #e4f2ee;
  --experienced: #6f5b1f;
  --experienced-soft: #f3ead4;
  --shadow: 0 1px 2px rgba(32, 33, 36, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration-color: rgba(31, 111, 98, 0.35);
  text-underline-offset: 3px;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(31, 111, 98, 0.3);
  outline-offset: 4px;
  border-radius: 6px;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.92);
  backdrop-filter: blur(12px);
}

.top-nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--accent);
}

main {
  padding-bottom: 72px;
}

.hero,
.section {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 44px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 750;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 20px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0;
}

h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 760px;
  margin: 22px 0 0;
  color: #3f454b;
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.snapshot-item,
.skill-card,
.entry-card,
.project-card,
.compact-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.snapshot-item {
  min-height: 118px;
  padding: 18px;
}

.snapshot-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.snapshot-item span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.prose {
  max-width: 860px;
}

.prose p,
.entry-summary,
.compact-list p,
.contact-list p {
  margin: 0;
  color: #3f454b;
  font-size: 16px;
  line-height: 1.75;
}

.prose p + p {
  margin-top: 10px;
}

.details-block {
  max-width: 860px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.details-block summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--accent);
  font-weight: 750;
}

.detail-list,
.bullet-list,
.compact-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list {
  padding: 0 16px 16px;
}

.detail-list li,
.bullet-list li,
.compact-bullets li {
  position: relative;
  padding-left: 16px;
  color: #3f454b;
  font-size: 15px;
  line-height: 1.7;
}

.detail-list li::before,
.bullet-list li::before,
.compact-bullets li::before {
  position: absolute;
  left: 0;
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.skills-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill-card {
  padding: 18px;
}

.skill-card h3 {
  margin-bottom: 14px;
}

.badge-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge-row + .badge-row {
  margin-top: 10px;
}

.badge-row.empty,
.project-links.empty {
  display: none;
}

.badge-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge,
.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.badge.production {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge.experienced {
  background: var(--experienced-soft);
  color: var(--experienced);
}

.tag {
  background: var(--surface-muted);
  color: #3f454b;
}

.stack {
  display: grid;
  gap: 14px;
}

.entry-card,
.project-card {
  padding: 20px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.entry-summary {
  margin-top: 10px;
}

.bullet-list {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.project-grid {
  align-items: start;
}

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.project-card .tag-row {
  margin-top: 14px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.text-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
}

.compact-list {
  display: grid;
  gap: 10px;
}

.compact-list article {
  padding: 16px;
}

.period {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.compact-bullets {
  display: grid;
  gap: 8px;
}

.contact-list {
  display: grid;
  gap: 8px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ai-hero-panel,
.ai-summary-card,
.project-detail-hero,
.project-detail-highlights article,
.project-detail-card,
.workflow-card,
.routing-list article,
.ai-group-card,
.agent-card,
.example-card,
.takeaway-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
}

.project-page-hero {
  padding-bottom: 30px;
}

.project-detail-page {
  border-top: 0;
  padding-top: 0;
}

.project-detail-copy h3 {
  max-width: 720px;
  font-size: 26px;
}

.project-detail-copy h2 {
  margin-bottom: 12px;
}

.project-detail-copy .entry-summary {
  max-width: 760px;
}

.project-detail-media {
  display: grid;
  gap: 10px;
}

.project-detail-media.empty {
  display: none;
}

.project-detail-media figure {
  margin: 0;
}

.project-detail-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-muted);
}

.project-detail-media figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.event-flow-visual {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 236, 154, 0.34), rgba(255, 255, 255, 0.75)),
    var(--surface-muted);
}

.event-flow-node {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(38, 48, 45, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: #26302d;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.event-flow-entry {
  background: #fff6c7;
}

.event-flow-arrow {
  justify-self: center;
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: #7d8b85;
  position: relative;
}

.event-flow-arrow::after {
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #7d8b85;
  border-bottom: 2px solid #7d8b85;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.project-detail-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.project-detail-highlights article {
  min-height: 84px;
  padding: 16px;
  background: #f4faf8;
}

.project-detail-highlights strong {
  display: block;
  color: #26302d;
  font-size: 15px;
  line-height: 1.55;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.project-detail-card {
  padding: 18px;
}

.project-detail-card h4 {
  margin-bottom: 12px;
}

.ai-hero-panel {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf8 100%);
}

.ai-hero-panel h3 {
  max-width: 820px;
  font-size: 26px;
  line-height: 1.35;
}

.ai-hero-panel .entry-summary {
  max-width: 820px;
}

.ai-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.7fr));
  gap: 10px;
  margin-top: 14px;
}

.ai-media-grid.empty {
  display: none;
}

.ai-media-grid figure {
  margin: 0;
}

.ai-media-grid figure:first-child {
  grid-row: span 2;
}

.ai-media-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-muted);
}

.ai-media-grid figure:first-child img {
  min-height: 274px;
}

.ai-media-grid figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.phone-shot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.phone-shot-grid figure {
  margin: 0;
}

.phone-shot-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  background: var(--surface-muted);
  box-shadow: var(--shadow);
}

.phone-shot-grid figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ai-summary-grid,
.workflow-grid,
.ai-group-grid,
.example-grid {
  display: grid;
  gap: 12px;
}

.ai-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.ai-summary-card {
  min-height: 116px;
  padding: 18px;
}

.ai-summary-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.ai-summary-card span {
  color: #3f454b;
  font-size: 15px;
  line-height: 1.6;
}

.ai-block {
  margin-top: 24px;
}

.ai-block > h3 {
  margin-bottom: 14px;
}

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

.workflow-card {
  padding: 18px;
}

.workflow-name {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.workflow-steps {
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: #30363d;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.7;
}

.workflow-diagram {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-muted);
}

.workflow-diagram-fork {
  align-items: flex-start;
}

.workflow-node {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #30363d;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
}

.skill-node {
  border-color: rgba(31, 111, 98, 0.24);
  background: var(--accent-soft);
  color: var(--accent);
}

.workflow-arrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.workflow-branches {
  display: grid;
  gap: 10px;
  min-width: min(100%, 360px);
  flex: 1 1 360px;
}

.workflow-branch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.workflow-branch-label {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--experienced-soft);
  color: var(--experienced);
  font-size: 12px;
  font-weight: 850;
}

.routing-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.routing-list article {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(110px, 0.6fr) minmax(0, 2fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
}

.routing-list span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
}

.routing-list p,
.ai-group-card p,
.agent-card p,
.example-card p {
  margin: 0;
  color: #3f454b;
  font-size: 14px;
  line-height: 1.65;
}

.ai-group-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-group-card,
.agent-card,
.example-card {
  padding: 16px;
}

.ai-group-card p {
  margin-top: 8px;
}

.ai-group-card .tag-row {
  margin-top: 12px;
}

.agent-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.agent-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.agent-card strong {
  display: block;
  margin-bottom: 8px;
}

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

.takeaway-panel {
  margin-top: 24px;
  padding: 20px;
  background: #f4faf8;
}

.takeaway-summary {
  max-width: 840px;
  margin: 0 0 14px;
  color: #26302d;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.75;
}

@media (max-width: 860px) {
  .snapshot-grid,
  .skills-grid,
  .project-grid,
  .project-detail-hero,
  .project-detail-highlights,
  .project-detail-grid,
  .ai-media-grid,
  .ai-summary-grid,
  .workflow-grid,
  .ai-group-grid,
  .agent-pipeline,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .phone-shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .routing-list article {
    grid-template-columns: 1fr;
  }

  .ai-media-grid figure:first-child {
    grid-row: auto;
  }

  .ai-media-grid figure:first-child img {
    min-height: 210px;
  }
}

@media (max-width: 720px) {
  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 8px 12px;
  }

  .top-nav a {
    flex: 0 0 auto;
  }

  .hero,
  .section {
    width: min(100% - 32px, 1080px);
  }

  .hero {
    padding: 52px 0 34px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 23px;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
    font-size: 15px;
  }

  .hero-summary {
    font-size: 17px;
  }

  .section {
    padding: 34px 0;
  }

  .snapshot-item {
    min-height: 0;
  }

  .entry-card,
  .project-card,
  .skill-card,
  .project-detail-hero,
  .project-detail-card,
  .ai-hero-panel,
  .ai-summary-card,
  .workflow-card,
  .ai-group-card,
  .agent-card,
  .example-card,
  .takeaway-panel {
    padding: 16px;
  }

  .ai-hero-panel h3 {
    font-size: 21px;
  }

  .project-detail-copy h3 {
    font-size: 21px;
  }

  .takeaway-summary {
    font-size: 16px;
  }
}
