.project-intro { padding: 32px 0 45px; }
.back-link { display: inline-block; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; margin-bottom: 42px; }
.project-summary { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.project-summary p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 570px; margin: 0; }
.project-summary .tag { padding: 6px 10px; }
.project-skill-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.project-skill-links a { font-size: 11px; line-height: 1.5; padding: 8px 10px; background: #edf0e7; border: 1px solid #d2d8c8; border-radius: 4px; color: #46513c; }
.project-skill-links a:hover { background: var(--accent); color: var(--ink); text-decoration: none; }
.model-figure { margin: 0; }
.model-stage { position: relative; background: #edf0e6; background-image: linear-gradient(#dce1d440 1px, transparent 1px), linear-gradient(90deg, #dce1d440 1px, transparent 1px); background-size: 40px 40px; }
.model-label { position: absolute; z-index: 1; top: 22px; left: 24px; font: 10px/1.6 'Courier New', monospace; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); pointer-events: none; }
model-viewer { display: block; width: 100%; height: 500px; --progress-bar-color: var(--ink); --progress-bar-height: 2px; --poster-color: transparent; }
model-viewer:focus-visible { outline: 3px solid #526e10; outline-offset: -4px; }
.viewer-status { position: absolute; left: 20px; right: 20px; top: 46%; text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted); pointer-events: none; }
.viewer-status[hidden] { display: none; }
.viewer-no-script { position: absolute; top: 40%; left: 20px; right: 20px; background: #edf0e6; padding: 24px; text-align: center; }
.viewer-caption { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.viewer-caption p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.viewer-reset { flex-shrink: 0; font: inherit; font-size: 12px; color: var(--ink); background: transparent; padding: 11px 16px; border: 1px solid var(--line); cursor: pointer; }
.viewer-reset:disabled { opacity: .45; cursor: default; }
.viewer-reset:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.viewer-reset:focus-visible { outline: 3px solid #526e10; outline-offset: 3px; }
.placeholder-note { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 15px 0 0; }
.project-details { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 62px 0; }
.project-details h2 { font-size: 34px; line-height: 1.15; letter-spacing: -1.4px; margin-top: 16px; }
.project-copy p { color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0 0 16px; }
.project-pagination { border-top: 1px solid var(--line); padding: 24px 0; font-size: 13px; justify-content: space-between; }
.project-jump-links { flex-wrap: wrap; gap: 8px 28px; margin-top: 27px; font-size: 13px; }
.project-jump-links a { border-bottom: 1px solid #9da98c; padding: 8px 0; }
.project-interface { padding-bottom: 42px; scroll-margin-top: 28px; }
.interface-figure { margin: 24px 0 0; }
.interface-image-link { display: block; }
.interface-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.interface-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.interface-figure figcaption p { flex: 1 1 380px; margin: 0; }
.interface-figure figcaption a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.interface-link-note { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.project-overview { border-top: 1px solid var(--line); }
.project-documentation { padding-top: 60px; scroll-margin-top: 28px; }
.documentation-intro { max-width: 720px; color: var(--muted); font-size: 14px; line-height: 1.75; margin: 21px 0 26px; }
.documentation-intro a { text-decoration: underline; text-underline-offset: 3px; }
.hardware-table-wrap { width: 100%; }
.hardware-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 13px; line-height: 1.65; }
.hardware-table caption { text-align: left; color: var(--muted); font-size: 12px; padding-bottom: 14px; }
.hardware-table th, .hardware-table td { padding: 17px 18px 17px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.hardware-table thead th { font: 11px/1.6 'Courier New', monospace; text-transform: uppercase; letter-spacing: .5px; border-bottom-color: var(--ink); }
.hardware-table th:first-child { width: 28%; }
.hardware-table th:nth-child(2) { width: 17%; }
.hardware-table tbody th { font-weight: 600; }
.hardware-table td { color: var(--muted); }
.hardware-table td:last-child { padding-right: 0; }
.hardware-table code { font-size: .92em; color: var(--ink); }
.project-documentation > .text-link { margin-top: 20px; }
.dev-log-section { padding-bottom: 48px; }
.dev-log { margin: 32px 0 0 8px; border-left: 1px solid #a9b39b; }
.dev-entry { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 36px; padding: 0 0 38px 30px; }
.dev-entry::before { content: ''; position: absolute; top: 3px; left: -5px; width: 9px; height: 9px; background: var(--accent); border: 1px solid #71864c; border-radius: 50%; }
.dev-entry:last-child { padding-bottom: 0; }
.dev-entry-meta { display: flex; flex-direction: column; gap: 6px; font: 11px/1.6 'Courier New', monospace; color: var(--muted); }
.dev-entry-meta > :first-child { color: var(--ink); }
.dev-entry-body { max-width: 700px; }
.dev-entry-body h3 { font-size: 22px; line-height: 1.3; }
.dev-entry-body p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 13px 0; }
.dev-entry-body .text-link { margin-top: 0; font-size: 13px; }
.dev-entry-body figure { margin: 24px 0 0; }
.dev-entry-body img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); }
.dev-entry-body figcaption { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--muted); }
@media (max-width: 500px) {
  .project-jump-links { gap: 8px 19px; font-size: 12px; }
  .project-documentation { padding-top: 42px; }
  .hardware-table { font-size: 11px; line-height: 1.65; }
  .hardware-table th, .hardware-table td { padding: 14px 9px 14px 0; }
  .hardware-table th:first-child { width: 31%; }
  .hardware-table th:nth-child(2) { width: 21%; }
  .hardware-table thead th { font-size: 9px; letter-spacing: 0; }
  .dev-entry { grid-template-columns: 1fr; gap: 12px; padding-left: 22px; padding-bottom: 33px; }
  .dev-entry-meta { flex-direction: row; flex-wrap: wrap; gap: 7px 18px; }
  .dev-entry-body h3 { font-size: 20px; }
  .dev-log-section { padding-bottom: 36px; }
}
@media (max-width: 760px) {
  .project-intro { padding: 25px 0 32px; }
  .back-link { margin-bottom: 30px; }
  .project-summary { flex-direction: column; align-items: flex-start; gap: 17px; }
  .project-summary p { font-size: 16px; }
  .model-label { top: 16px; left: 16px; font-size: 9px; }
  model-viewer { height: 360px; }
  .viewer-caption { align-items: flex-start; gap: 13px; }
  .viewer-caption p { font-size: 11px; }
  .viewer-reset { padding: 12px; min-height: 44px; }
  .project-details { grid-template-columns: 1fr; padding: 42px 0; gap: 25px; }
  .project-details h2 { font-size: 30px; }
  .project-pagination { gap: 25px; font-size: 12px; }
  .project-pagination a:last-child { text-align: right; }
}
