:root {
  --bg: #0b0b0d;
  --surface: #131317;
  --surface-elevated: #1a1a20;
  --text: #f5f4f0;
  --text-muted: #9b9992;
  --border: #27272e;
  --accent: #e5a93c;
  --accent-hover: #f0bc5e;
  --accent-ink: #0b0b0d;
  --accent-soft: rgba(229, 169, 60, 0.12);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "Archivo", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

[data-theme="light"] {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-elevated: #efede7;
  --text: #151517;
  --text-muted: #575650;
  --border: #dfddd5;
  --accent: #b86e00;
  --accent-hover: #9a5b00;
  --accent-ink: #ffffff;
  --accent-soft: rgba(184, 110, 0, 0.09);
  --shadow: 0 8px 24px rgba(21, 21, 23, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.22s ease, color 0.22s ease;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background-color: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  color: var(--accent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.18s ease;
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

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

.theme-icon-moon {
  display: none;
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-icon-moon {
  display: block;
}

/* Hero */
.hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: end;
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-avatar {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-lead {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--accent);
}

.hero-bio {
  margin: 0 0 30px;
  max-width: 58ch;
  font-size: 1rem;
  color: var(--text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

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

.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.84rem;
}

.hero-spec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

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

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.spec-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.spec-row dt {
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-row dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

/* Sections */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 72px;
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.section-head .section-title {
  margin-bottom: 4px;
}

.section-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

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

.filter-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-item[hidden],
.gallery-item.is-collapsed {
  display: none;
}

.gallery-more {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.gallery-more[hidden] {
  display: none;
}

/* Gallery */
.gallery-masonry {
  columns: 3;
  column-gap: 16px;
}

.gallery-item {
  margin: 0 0 16px;
  break-inside: avoid;
}

.gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.22s ease;
}

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

.gallery-trigger img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.gallery-trigger:hover img {
  transform: scale(1.02);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #f5f4f0;
  background: linear-gradient(to top, rgba(11, 11, 13, 0.78), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.gallery-trigger:hover .gallery-caption,
.gallery-trigger:focus-visible .gallery-caption {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  width: min(100vw - 32px, 1120px);
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(11, 11, 13, 0.96);
  color: #f5f4f0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lightbox-counter {
  font-size: 0.88rem;
  color: #a9a7a0;
}

.lightbox-controls {
  display: flex;
  gap: 8px;
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(100vh - 120px);
  overflow: hidden;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: calc(100vh - 156px);
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.84rem;
  color: #b5b2a8;
}

/* Disciplines */
.discipline-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.discipline-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.discipline-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.discipline-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.discipline-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.discipline-desc {
  margin: 0;
  max-width: 65ch;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

/* Engineering / SolidWorks Auto-Drawing Showcase */
.eng-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: stretch;
}

.cad-viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: #091118;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px, 80px 80px, 80px 80px;
  color: #7dd3fc;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, border-color 0.2s ease;
}

[data-theme="light"] .cad-viewport {
  background-color: #f0f5f9;
  background-image:
    linear-gradient(rgba(14, 116, 144, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 116, 144, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(14, 116, 144, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 116, 144, 0.12) 1px, transparent 1px);
  color: #0e7490;
}

.cad-viewport:hover {
  border-color: var(--accent);
}

.cad-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.cad-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #bae6fd;
  font-weight: 600;
}

[data-theme="light"] .cad-badge {
  background: rgba(14, 116, 144, 0.1);
  border-color: rgba(14, 116, 144, 0.28);
  color: #0e7490;
}

.cad-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.cad-coords {
  opacity: 0.78;
  letter-spacing: 0.04em;
}

.cad-canvas-wrap {
  width: 100%;
  overflow: hidden;
}

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

.cad-frame {
  opacity: 0.55;
}

.cad-frame-inner,
.cad-titleblock {
  opacity: 0.4;
}

.cad-text-sm {
  fill: currentColor;
  font-size: 9px;
  font-family: var(--font-display);
  opacity: 0.8;
}

.cad-text-accent {
  fill: var(--accent);
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-display);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cad-viewport[data-stage="4"] .cad-text-accent {
  opacity: 1;
}

.cad-layer-geo,
.cad-layer-cl,
.cad-layer-proj,
.cad-layer-dim {
  transition: opacity 0.35s ease;
}

.cad-layer-cl {
  color: #f59e0b;
  opacity: 0.15;
}

.cad-layer-proj {
  opacity: 0.15;
}

.cad-layer-dim {
  color: var(--accent);
  opacity: 0.12;
}

.cad-dim-text {
  fill: currentColor;
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-display);
}

.cad-viewport[data-stage="2"] .cad-layer-cl,
.cad-viewport[data-stage="2"] .cad-layer-proj,
.cad-viewport[data-stage="3"] .cad-layer-cl,
.cad-viewport[data-stage="3"] .cad-layer-proj,
.cad-viewport[data-stage="4"] .cad-layer-cl,
.cad-viewport[data-stage="4"] .cad-layer-proj {
  opacity: 1;
}

.cad-viewport[data-stage="3"] .cad-layer-dim,
.cad-viewport[data-stage="4"] .cad-layer-dim {
  opacity: 1;
}

.cad-scan-beam {
  color: #22c55e;
  opacity: 0;
}

.cad-viewport[data-stage="4"] .cad-scan-beam {
  opacity: 0.75;
  animation: cadScan 2.6s ease-in-out infinite;
}

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

.cad-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(15, 23, 42, 0.55);
  color: #bae6fd;
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

[data-theme="light"] .cad-step {
  border-color: rgba(14, 116, 144, 0.22);
  background: rgba(255, 255, 255, 0.75);
  color: #0e7490;
}

.cad-step:hover,
.cad-step.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* Telemetry & Milestones */
.eng-telemetry {
  display: grid;
  gap: 16px;
}

.eng-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.eng-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
}

.eng-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.eng-status-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.eng-goal-desc {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.eng-progress-block {
  margin-bottom: 18px;
}

.eng-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.eng-progress-head span {
  color: var(--text-muted);
}

.eng-progress-head strong {
  color: var(--accent);
}

.eng-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
}

.eng-progress-fill {
  height: 100%;
  width: var(--target-width, 0%);
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.eng-metric {
  padding: 10px 8px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
}

.eng-metric-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.eng-metric-key {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

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

.eng-milestones li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ms-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
}

.eng-milestones li.is-done .ms-dot {
  border-color: #22c55e;
  background: #22c55e;
}

.eng-milestones li.is-active .ms-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.eng-milestones strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.eng-milestones p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

@keyframes cadScan {
  0% { transform: translateX(0); }
  50% { transform: translateX(514px); }
  100% { transform: translateX(0); }
}

/* Focus Bento */
.focus-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bento-feature,
.bento-sub {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bento-feature {
  grid-column: 1 / -1;
  background: var(--surface);
}

.bento-feature.bento-photopilot {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-photopilot:hover {
  border-color: var(--border);
  transform: none;
}

/* 1. Editorial Masthead */
.pp-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: 32px 28px 28px;
}

.pp-masthead-copy {
  display: flex;
  flex-direction: column;
}

.pp-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.bento-photopilot .pp-title-line h3 {
  font-size: 1.48rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.pp-role-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 500;
}

.bento-photopilot .pp-lead {
  margin-top: 12px;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.72;
}

.pp-specs {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
}

.pp-specs div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pp-specs dt {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.pp-specs dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
}

.pp-pass {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.pp-pass-qr {
  padding: 8px;
  border-radius: 12px;
  background: #faf9f5;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.pp-pass-qr img {
  width: 132px;
  height: auto;
  display: block;
}

.pp-pass figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* 2. Precision Optical Darkroom Deck */
.pp-deck {
  border-top: 1px solid var(--border);
  background: #09090b;
  color: #f5f4f0;
}

.pp-cinema-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.pp-exif-readout {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}

.pp-stage-name {
  color: #e5a93c;
  font-weight: 600;
}

.pp-sep {
  color: rgba(245, 244, 240, 0.3);
}

.pp-camera-meta {
  color: #a8a49c;
}

.pp-scene-tabs {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.pp-scene-btn {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 4px 2px;
  font: inherit;
  font-size: 0.82rem;
  color: #a8a49c;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.pp-scene-btn:hover {
  color: #f5f4f0;
}

.pp-scene-btn.is-active {
  color: #f5f4f0;
  border-bottom-color: #e5a93c;
  font-weight: 600;
}

/* Native 3:2 Full-Frame Sensor Viewport */
.pp-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  user-select: none;
  --split: 54%;
}

.pp-frame {
  position: absolute;
  inset: 0;
}

.pp-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Camera RAW Linear / Log ungraded sensor feed */
.pp-frame-raw img {
  filter: saturate(0.46) contrast(0.74) brightness(0.94) sepia(0.04);
}

.pp-frame-master {
  clip-path: inset(0 0 0 var(--split));
}

.pp-frame-master img {
  transition: filter 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pp-corner-mark {
  position: absolute;
  top: 16px;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.pp-mark-left {
  left: 16px;
  background: rgba(9, 9, 11, 0.72);
  color: #d6d3cb;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pp-mark-right {
  right: 16px;
  background: rgba(9, 9, 11, 0.72);
  color: #f3c878;
  border: 1px solid rgba(229, 169, 60, 0.38);
}

/* Machined Optical Split Loupe */
.pp-loupe-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 34px;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-loupe-rule {
  width: 1px;
  height: 100%;
  background: rgba(245, 244, 240, 0.82);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.pp-loupe-knob {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(12, 12, 15, 0.86);
  border: 1px solid rgba(245, 244, 240, 0.42);
  color: #f5f4f0;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.48);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, color 0.18s ease;
}

.pp-loupe-line:hover .pp-loupe-knob,
.pp-loupe-line:focus-visible .pp-loupe-knob {
  transform: scale(1.08);
  border-color: #e5a93c;
  color: #e5a93c;
}

/* 3. Calibration Instrument Bar */
.pp-instrument-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  background: #0d0d11;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pp-transport {
  padding: 14px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.pp-transport-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pp-icon-ctrl,
.pp-rate-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f4f0;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.pp-icon-ctrl {
  width: 28px;
}

.pp-rate-btn {
  padding: 0 9px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
}

.pp-icon-ctrl:hover,
.pp-rate-btn:hover {
  border-color: #e5a93c;
  color: #e5a93c;
}

.pp-deck[data-playing="true"] .pp-svg-play { display: none; }
.pp-deck[data-playing="false"] .pp-svg-pause { display: none; }

.pp-scrub-track {
  flex: 1;
  display: flex;
  align-items: center;
}

.pp-scrubber {
  width: 100%;
  height: 3px;
  appearance: none;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.pp-scrubber::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f5f4f0;
  border: 2px solid #09090b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.pp-scrubber:hover::-webkit-slider-thumb {
  background: #e5a93c;
  transform: scale(1.12);
}

.pp-timecode {
  font-size: 0.76rem;
  color: #a8a49c;
  white-space: nowrap;
}

.pp-telemetry-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.76rem;
  color: #a8a49c;
}

.pp-telemetry-line span:first-child {
  color: #d6d3cb;
  font-weight: 500;
}

.pp-scope-panel {
  padding: 10px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.pp-scope-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #a8a49c;
  letter-spacing: 0.04em;
}

.pp-scope-label .tabular {
  color: #e5a93c;
  font-weight: 600;
}

.pp-scope-panel canvas {
  width: 100%;
  height: 54px;
  display: block;
}

/* 4. Architectural 5-Stage Horizontal Flow Rail */
.pp-flow-wrap {
  background: var(--surface);
  color: var(--text);
  border-top: 1px solid var(--border);
  padding: 20px 28px 24px;
}

.pp-flow-progress {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.pp-flow-bar {
  height: 100%;
  width: 50%;
  background: var(--accent);
  transition: width 0.12s linear;
}

.pp-flow-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pp-node {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  padding: 12px 16px 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background-color 0.2s ease;
}

.pp-node:first-child {
  padding-left: 12px;
}

.pp-node:last-child {
  border-right: 0;
}

.pp-node:hover {
  background: color-mix(in srgb, var(--surface-elevated) 70%, transparent);
}

.pp-node.is-active {
  background: var(--accent-soft);
}

.pp-node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.pp-node.is-active .pp-node-head {
  color: var(--accent);
}

.pp-node strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.pp-node p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

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

.bento-meta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
}

.bento-feature h3,
.bento-sub h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
}

.bento-feature p,
.bento-sub p {
  margin: 0;
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
}

.bento-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mono-id {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.text-action {
  background: none;
  border: none;
  padding: 6px 8px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
}

.text-action:hover {
  background: var(--accent-soft);
}

/* Journal & Photo Essays */
.journal-filters,
.gear-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.journal-card[hidden],
.gear-item[hidden] {
  display: none;
}

.journal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.journal-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.journal-trigger {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.journal-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
}

.journal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.journal-card:hover .journal-thumb img {
  transform: scale(1.03);
}

.journal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 11, 13, 0.78);
  color: #f5f4f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.journal-badge-inline {
  position: static;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}

.journal-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.journal-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.journal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.journal-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.38;
}

.journal-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.journal-more {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* Journal Reader Dialog */
.journal-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: min(88vh, 860px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.journal-dialog[open] {
  display: flex;
}

.journal-dialog::backdrop {
  background: rgba(8, 8, 10, 0.74);
  backdrop-filter: blur(6px);
}

.journal-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-elevated);
}

.journal-dialog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.journal-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.journal-dialog-content {
  padding: 26px 28px 34px;
  overflow-y: auto;
}

.journal-dialog-content h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.journal-dialog-lead {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.journal-dialog-figure {
  margin: 0 0 22px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.journal-dialog-figure img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.journal-dialog-figure figcaption {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.journal-dialog-body h3 {
  margin: 22px 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.journal-dialog-body p {
  margin: 0 0 14px;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text);
}

.journal-dialog-body blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

/* Gear */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gear-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gear-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gear-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
}

.gear-spec {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.gear-item h3 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.gear-item p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.booking-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.booking-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
}

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

.booking-list li {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  gap: 4px;
}

.booking-list strong {
  font-size: 0.92rem;
}

.booking-list span {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.booking-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.booking-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.booking-steps li > span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.booking-steps strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.booking-steps p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.booking-actions {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Contact */
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}

.contact-copy .section-title {
  margin-bottom: 10px;
}

.contact-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 48px;
}

.contact-value {
  font-size: 0.94rem;
  font-weight: 500;
  margin-right: auto;
  word-break: break-all;
}

a.contact-value:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 36px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 900px) {
  .gallery-masonry {
    columns: 2;
  }

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

  .pp-node {
    border-bottom: 1px solid var(--border);
  }

  .pp-node:nth-child(2n) {
    border-right: 0;
  }

  .pp-node:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
    border-right: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero-grid,
  .discipline-item,
  .eng-grid,
  .focus-bento,
  .pp-masthead,
  .pp-instrument-bar,
  .journal-grid,
  .booking-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .pp-masthead {
    padding: 24px 20px 22px;
    gap: 24px;
  }

  .pp-pass {
    align-items: flex-start;
  }

  .pp-cinema-head,
  .pp-transport,
  .pp-flow-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pp-scope-panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 18px 14px;
  }

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

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

  .discipline-item {
    gap: 10px;
  }

  .nav-links {
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .gallery-masonry {
    columns: 1;
  }

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

  .journal-dialog-content {
    padding: 20px 18px 26px;
  }

  .pp-flow-rail {
    grid-template-columns: 1fr;
  }

  .pp-node {
    border-right: 0;
  }

  .pp-corner-mark {
    top: 10px;
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .pp-mark-left { left: 10px; }
  .pp-mark-right { right: 10px; }
}

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

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