:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7faf9;
  --surface-strong: #eef7f6;
  --ink: #111827;
  --muted: #5b6472;
  --subtle: #d9e4e2;
  --line: #c8d7d5;
  --accent: #0f766e;
  --accent-2: #0891b2;
  --accent-soft: #dff7f4;
  --shadow: 0 22px 70px rgba(17, 24, 39, 0.08);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 118, 110, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--ink);
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    "PingFang TC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(8, 145, 178, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  padding: 8px 12px;
  font-size: 0.9rem;
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(200, 215, 213, 0.78);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
}

.brand,
.nav-links,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.nav-links {
  gap: 26px;
  color: var(--muted);
  font-size: 0.93rem;
}

.nav-links a,
.nav-action {
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 13px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-action:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 128px);
  padding: 60px 0 46px;
}

.role-line {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 5.45rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  display: block;
  margin-top: 8px;
  font-size: 0.62em;
  line-height: 1.08;
}

.hero-subtitle {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
}

.hero-statement {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.06rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.2);
}

.button.primary:hover {
  background: #115e59;
}

.button.secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

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

.action-card {
  display: inline-flex;
  flex: 1 1 210px;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 15px;
  color: var(--ink);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.action-card:hover {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.action-card.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.22);
}

.action-card.primary:hover {
  background: #115e59;
}

.action-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.26);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.action-card.primary .action-icon {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.action-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.action-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.action-title {
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.2;
}

.action-meta {
  overflow: hidden;
  color: var(--muted);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-card.primary .action-meta {
  color: rgba(255, 255, 255, 0.78);
}

.workflow-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 24%, rgba(8, 145, 178, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
  box-shadow: var(--shadow);
}

.workflow-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
  pointer-events: none;
}

.panel-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
  color: var(--muted);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.83rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.workflow-svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.flow-line {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.flow-line.main {
  stroke: url("#flowGradient");
}

.flow-line.muted {
  stroke: rgba(91, 100, 114, 0.36);
  stroke-dasharray: 7 8;
}

.node rect {
  fill: rgba(255, 255, 255, 0.94);
  stroke: var(--line);
  stroke-width: 1.4;
}

.node.core rect {
  fill: #ecfffc;
  stroke: rgba(15, 118, 110, 0.48);
}

.node text {
  fill: var(--ink);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 18px;
  font-weight: 700;
}

.node .node-meta {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.workflow-caption text {
  fill: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 15px;
  font-weight: 700;
}

.fit,
.value,
.projects,
.impact,
.experience,
.stack,
.credentials,
.contact {
  padding: 78px 0;
}

.fit {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.fit-heading {
  color: var(--accent);
  font-weight: 800;
}

.fit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fit-tags span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 12px;
  color: var(--ink);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.section-heading {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 30px;
}

.section-index {
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.9rem;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.16;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.value-item {
  min-height: 220px;
  padding: 26px;
}

.value-item + .value-item {
  border-left: 1px solid var(--line);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.38;
}

.value-item p,
.project-card dd,
.timeline-item p,
.credential-grid p,
.contact p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 24px;
}

.project-card h3 {
  min-height: 58px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 1.12rem;
}

.project-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.project-card dt {
  margin-bottom: 4px;
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card dd {
  margin-left: 0;
  font-size: 0.94rem;
  line-height: 1.62;
}

.impact-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.impact-list article {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 24px 0 24px 28px;
}

.impact-list article::before {
  position: absolute;
  top: 34px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.impact-list p {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.impact-list h3 {
  margin-bottom: 8px;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.timeline {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 34px;
  padding: 28px;
}

.timeline-item + .timeline-item {
  border-top: 1px solid var(--line);
}

.timeline-item time {
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.93rem;
  font-weight: 800;
}

.stack-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.stack-table div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  min-height: 74px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
}

.stack-table div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.stack-table div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stack-table span {
  color: var(--muted);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.86rem;
}

.stack-table strong {
  font-size: 0.98rem;
  line-height: 1.45;
}

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

.credential-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  margin-bottom: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f1fffd 0%, #ffffff 62%);
  padding: 36px;
}

.contact h2 {
  max-width: 760px;
  margin-bottom: 12px;
}

@media (max-width: 920px) {
  .nav {
    width: min(100% - 28px, var(--max));
  }

  .nav-links {
    display: none;
  }

  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
    padding: 46px 0 54px;
  }

  .workflow-panel {
    max-width: 720px;
  }

  .action-card {
    flex-basis: 100%;
  }

  .fit,
  .value-grid,
  .project-list,
  .stack-table,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .value-item + .value-item,
  .stack-table div:nth-child(odd) {
    border-left: 0;
    border-right: 0;
  }

  .value-item {
    min-height: auto;
    border-top: 1px solid var(--line);
  }

  .value-item:first-child {
    border-top: 0;
  }

  .stack-table div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

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

  .project-card h3 {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  body {
    background-size: 54px 54px;
  }

  .nav {
    min-height: 64px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .nav-action {
    padding: 8px 10px;
  }

  .hero {
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 22px;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(1.95rem, 11vw, 2.85rem);
  }

  h1 span {
    margin-top: 4px;
  }

  .hero-statement {
    margin-bottom: 16px;
    font-size: 1rem;
  }

  .hero-subtitle {
    margin-bottom: 14px;
  }

  .role-line {
    margin-bottom: 12px;
  }

  .button {
    width: 100%;
  }

  .action-card {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .workflow-panel {
    overflow: hidden;
  }

  .panel-header {
    padding: 10px 12px;
  }

  .workflow-svg {
    max-height: 188px;
  }

  .node text {
    font-size: 20px;
  }

  .node .node-meta,
  .workflow-caption text {
    display: none;
  }

  .fit,
  .value,
  .projects,
  .impact,
  .experience,
  .stack,
  .credentials,
  .contact {
    padding: 54px 0;
  }

  .fit {
    gap: 14px;
    padding: 22px 0;
  }

  .fit-tags span {
    font-size: 0.82rem;
  }

  .section-heading {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }

  .value-item,
  .project-card,
  .timeline-item {
    padding: 22px;
  }

  .impact-list article,
  .timeline-item,
  .stack-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .impact-list article::before {
    display: none;
  }

  .impact-list article {
    padding-left: 0;
  }

  .contact {
    margin-bottom: 42px;
    padding: 26px 20px;
  }
}

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

.slide-show {
  padding: 78px 0;
}

.slide-show-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.slide-figure {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #ffffff;
}

.slide-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.slide-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(200, 215, 213, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  cursor: pointer;
  font-size: 2.1rem;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.slide-control:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-50%) scale(1.02);
}

.slide-control.previous {
  left: 14px;
}

.slide-control.next {
  right: 14px;
}

.slide-status {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  border: 1px solid rgba(200, 215, 213, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 11px;
  color: var(--ink);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
}

@media (max-width: 620px) {
  .slide-show {
    padding: 54px 0;
  }

  .slide-control {
    width: 38px;
    height: 46px;
    font-size: 1.8rem;
  }

  .slide-control.previous {
    left: 8px;
  }

  .slide-control.next {
    right: 8px;
  }

  .slide-status {
    right: 10px;
    bottom: 8px;
    padding: 5px 9px;
    font-size: 0.78rem;
  }
}
/* Presentation deck */
.presentation-page {
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    #f7faf9;
  background-size: 52px 52px;
}

.deck-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(200, 215, 213, 0.9);
  background: rgba(247, 250, 249, 0.9);
  backdrop-filter: blur(18px);
}

.deck-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.deck-nav-links a:hover {
  color: var(--ink);
}

.slide-deck {
  display: grid;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 72px;
}

.slide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: min(720px, calc(100vh - 112px));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 252, 251, 0.96) 62%),
    #ffffff;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.1);
}

.slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.68), transparent 76%);
  pointer-events: none;
}

.slide-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 72px);
}

.cover-slide {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
}

.slide-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  background: rgba(236, 255, 252, 0.72);
  padding: clamp(28px, 4vw, 48px);
}

.slide-kicker,
.side-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: clamp(0.82rem, 1.2vw, 0.96rem);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.slide h1,
.slide h2 {
  max-width: 980px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(2.25rem, 5.2vw, 4.7rem);
  line-height: 1.07;
  letter-spacing: 0;
}

.slide h1 span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.48em;
  line-height: 1.15;
}

.slide h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.slide-lead {
  max-width: 880px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.75vw, 1.38rem);
  line-height: 1.6;
}

.slide-grid {
  display: grid;
  gap: 16px;
}

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

.signal-card,
.project-proof div,
.send-instructions {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.signal-card {
  min-height: 210px;
  padding: 24px;
}

.signal-card span,
.project-proof span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.82rem;
  font-weight: 850;
}

.signal-card h3,
.send-instructions h3 {
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.signal-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.25vw, 1.03rem);
  line-height: 1.58;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 13px;
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

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

.metric-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list li {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid rgba(200, 215, 213, 0.9);
  padding-bottom: 14px;
}

.metric-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.metric-list strong {
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.46rem);
  line-height: 1.2;
}

.metric-list span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.capability-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.capability-map div {
  display: grid;
  gap: 12px;
  min-height: 170px;
  align-content: start;
  padding: 22px;
}

.capability-map div + div {
  border-left: 1px solid var(--line);
}

.capability-map strong {
  color: var(--ink);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.96rem;
}

.capability-map span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.talk-track {
  max-width: 900px;
  margin: 28px 0 0;
  border-left: 4px solid var(--accent);
  padding-left: 18px;
  color: var(--muted);
  font-size: 1.02rem;
}

.project-slide .slide-content {
  justify-content: center;
}

.project-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 4px 0 22px;
}

.project-proof div {
  min-height: 160px;
  padding: 22px;
}

.project-proof strong {
  color: var(--ink);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.55;
}

.timeline.compact {
  margin: 4px 0 22px;
}

.timeline.compact .timeline-item {
  padding: 22px 24px;
}

.closing-slide .slide-content {
  justify-content: center;
}

.send-instructions {
  margin: 20px 0 0;
  padding: 20px 22px;
}

.send-instructions p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.send-instructions p:last-child {
  margin-bottom: 0;
}

.send-instructions code {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.92em;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contact-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 7px 11px;
  color: var(--accent);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-strip a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 920px) {
  .deck-nav {
    width: min(100% - 28px, 1180px);
  }

  .deck-nav-links {
    gap: 12px;
    font-size: 0.86rem;
  }

  .slide-deck {
    width: min(100% - 28px, 1180px);
    margin-top: 20px;
  }

  .slide,
  .cover-slide {
    grid-template-columns: 1fr;
    min-height: auto;
    aspect-ratio: auto;
  }

  .slide-side {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .slide-grid.three,
  .project-proof,
  .capability-map {
    grid-template-columns: 1fr;
  }

  .capability-map div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .signal-card,
  .project-proof div,
  .capability-map div {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .deck-nav {
    min-height: 62px;
  }

  .deck-nav-links a:nth-child(1) {
    display: none;
  }

  .slide-content,
  .slide-side {
    padding: 26px 20px;
  }

  .slide h1,
  .slide h2 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
  }

  .slide-lead {
    margin-bottom: 18px;
    font-size: 1rem;
  }

  .repo-link {
    width: 100%;
  }
}

.image-slide-deck {
  gap: 28px;
}

.image-slide {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #ffffff;
}

.image-slide::before {
  display: none;
}

.image-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

@media (max-width: 920px) {
  .image-slide {
    aspect-ratio: 16 / 9;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }

  html,
  body {
    width: 297mm;
    background: #ffffff !important;
  }

  .presentation-page {
    background: #ffffff !important;
  }

  .deck-nav,
  .skip-link {
    display: none !important;
  }

  .slide-deck {
    display: block;
    width: 100%;
    margin: 0;
  }

  .slide {
    width: 297mm;
    height: 210mm;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }

  .slide:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .slide-content {
    padding: 22mm;
  }

  .slide-grid.three,
  .project-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .signal-card {
    min-height: 0;
    padding: 14px 16px;
  }

  .signal-card span {
    margin-bottom: 10px;
  }

  .signal-card h3 {
    margin-bottom: 8px;
  }

  .signal-card p {
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .slide-side {
    padding: 18mm;
  }

  .closing-slide .slide-content {
    padding: 15mm 18mm;
  }

  .closing-slide h2 {
    margin-bottom: 14px;
    font-size: 2.35rem;
    line-height: 1.12;
  }

  .closing-slide .send-instructions {
    margin-top: 14px;
    padding: 14px 16px;
  }

  .closing-slide .send-instructions h3 {
    margin-bottom: 6px;
  }

  .closing-slide .send-instructions p {
    margin-bottom: 5px;
    font-size: 0.84rem;
    line-height: 1.36;
  }

  .contact-strip {
    gap: 6px;
    margin-top: 9px;
    padding-top: 9px;
  }

  .contact-strip a {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .repo-link {
    color: var(--ink);
    text-decoration: none;
  }
}
