/* Product screenshots retain their full framing and original proportions. */
.trace-hero-heading { display: flex; align-items: center; gap: 32px; }
.trace-hero-heading h1 { margin: 0; }
.trace-hero-logo { width: 144px; height: 144px; flex-shrink: 0; }
@media (max-width: 760px) {
  .trace-hero-heading { gap: 16px; align-items: flex-start; }
  .trace-hero-logo { width: 64px; height: 64px; }
  .trace-hero-heading h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
}
@media (max-width: 400px) {
  .trace-hero-logo { width: 44px; height: 44px; }
  .trace-hero-heading { gap: 12px; }
}
.trace-interest-trigger {
  position: fixed;
  right: 0;
  top: 40%;
  z-index: 45;
  writing-mode: vertical-rl;
  padding: 20px 14px;
  border: 0;
  border-radius: 6px 0 0 6px;
  background: var(--ink);
  color: var(--surface);
  font: 500 0.88rem var(--font-mono);
  cursor: pointer;
  box-shadow: 0 4px 20px #10101420;
}
.trace-interest-trigger:hover { background: var(--accent); }
.trace-interest-panel {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(560px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}
.trace-interest-panel[open] {
  display: flex;
  flex-direction: column;
  animation: trace-panel-in 240ms ease-out;
}
.trace-interest-panel::backdrop { background: #0d111699; }
html:has(.trace-interest-panel[open]) { overflow: hidden; }
.trace-interest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.trace-interest-header .eyebrow { margin: 0; }
.trace-interest-header .btn { padding: 8px 12px; }
.trace-interest-body { overflow-y: auto; padding: 28px; }
.trace-interest-body .cf-turnstile { margin-top: 24px; }
.trace-interest-body .form-note { margin-top: 18px; }
.trace-interest-body form > .btn { margin-top: 12px; }
.trace-interest-body form > label { margin-top: 28px; }
.trace-interest-body .name-row > div { min-width: 0; }
@keyframes trace-panel-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .trace-interest-panel[open] { animation: none; }
}
@media (max-width: 480px) {
  .trace-interest-body { padding: 20px; }
  .trace-interest-header { padding: 16px 20px; }
  .trace-interest-trigger { padding: 14px 8px; font-size: 0.78rem; }
}
.trace-shot { margin: 0; min-width: 0; }
.trace-shot-hero { margin-top: 48px; }
.trace-image-link {
  position: relative;
  display: block;
  padding: 12px;
  background: #edf1f4;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: zoom-in;
}
.trace-image-link:hover { border-color: var(--accent); }
.trace-image-link img { width: 100%; height: auto; border-radius: 4px; }
.trace-image-action {
  display: block;
  width: fit-content;
  margin: 12px 0 0 auto;
  font: 0.75rem var(--font-mono);
  color: var(--accent);
}
.trace-shot figcaption {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.trace-shot figcaption .mono { color: var(--accent); }
.trace-image-note {
  margin: 32px 0 0;
  padding: 20px 24px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}
.trace-image-note strong { font-weight: 600; }
.trace-image-note + .trace-shot-hero { margin-top: 24px; }
.trace-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.trace-feature:last-child { border-bottom: 0; padding-bottom: 0; }
.trace-feature-copy .index-num { display: block; color: var(--accent); margin-bottom: 16px; }
.trace-feature-copy h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.trace-feature-copy p { margin: 16px 0 0; }
.trace-feature-media { min-width: 0; }
.trace-feature-media .trace-image-link img { max-height: 460px; object-fit: contain; }
.trace-feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trace-feature-pair .trace-image-link img { height: 260px; object-fit: contain; }
.trace-viewer {
  width: min(1500px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.trace-viewer::backdrop { background: rgba(13, 17, 22, 0.85); }
.trace-viewer[open] { display: flex; flex-direction: column; }
html:has(.trace-viewer[open]) { overflow: hidden; }
.trace-viewer-toolbar, .trace-viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  flex-shrink: 0;
}
.trace-viewer-toolbar { border-bottom: 1px solid var(--border); }
.trace-viewer-toolbar h2 { font-size: 1.2rem; margin: 0; }
.trace-viewer-footer { flex-wrap: wrap; border-top: 1px solid var(--border); }
.trace-viewer-body { overflow: auto; padding: 24px; min-height: 0; }
.trace-viewer-body img { width: auto; height: auto; max-width: 100%; margin: auto; }
.trace-viewer .btn { padding: 8px 12px; }
@media (max-width: 760px) {
  .trace-feature { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .trace-feature-pair { grid-template-columns: 1fr; gap: 28px; }
  .trace-feature-pair .trace-image-link img { height: auto; max-height: 460px; }
  .trace-shot-hero { margin-top: 32px; }
  .trace-image-link { padding: 8px; }
  .trace-viewer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .trace-viewer-toolbar, .trace-viewer-footer { padding: 12px; gap: 12px; }
  .trace-viewer-body { padding: 8px; }
  .trace-viewer-footer a { order: 1; width: 100%; text-align: center; }
}

.trace-workspace-preview { margin-top: 40px; }
.trace-motion video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #142031;
}
.trace-still-thumbnail { display: none; }
.trace-motion figcaption a { width: fit-content; margin-top: 6px; }
