/* Shared responsive sizing and spacing for the complete site. */
:root {
  --gutter: clamp(16px, 4vw, 64px);
  --grid-gap: 32px;
  --section-space: 64px;
  --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; overflow-wrap: break-word; }
main > section { padding: 64px var(--gutter); }
main > section > *, .split > *, .product-hero > *, .context-card > *,
.career-research-intro > *, .intro-with-media > * { min-width: 0; }
img { max-width: 100%; }
h1 { font-size: clamp(32px, 4.5vw, 64px); line-height: 1.125; }
h2 { font-size: clamp(28px, 3.2vw, 48px); line-height: 1.25; }
h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.4; }
h1, h2, h3 { margin-top: 0; margin-bottom: 24px; letter-spacing: -.02em; text-wrap: balance; }
p, li { line-height: 1.75; letter-spacing: normal; }
p { margin-top: 0; margin-bottom: 24px; }
button, input, select, textarea { font: inherit; }
button, .button, .textlink, .round, .menu,
nav a, .mobile a, .footlinks a, .product-jump a {
  min-height: 44px;
}
.button, .textlink, nav a, .mobile a, .footlinks a, .product-jump a {
  display: inline-flex; align-items: center;
}
.button { padding: 12px 24px; line-height: 1.5; text-align: center; justify-content: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
a, button { transition: color .2s ease, background-color .2s ease, box-shadow .2s ease; }
:focus-visible { outline: 3px solid #806018; outline-offset: 4px; }
.dark :focus-visible { outline-color: #edce82; }
input, select, textarea { width: 100%; max-width: 100%; min-height: 48px; }
table { width: 100%; table-layout: fixed; }
td, th { overflow-wrap: anywhere; }
.deck-track > .deck-card { min-width: 0; }
.deck-controls { gap: 16px; margin-top: 32px; }
.deck-copy { min-width: 0; }
.deck-status { overflow-wrap: anywhere; }
main > .cinema-hero.final-hero { margin-top: 32px; }
.final-hero .brain-stage { width: 100%; margin-left: 0; }
.final-hero .brain-cutout { scale: 1.04; }
@media (max-width: 1100px) {
  header nav { display: none; }
  header .menu { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; }
  .split, .feature, .editorial, .product-hero, .intro-with-media,
  .career-research-intro, .contact-grid { gap: 32px; }
}
@media (max-width: 768px) {
  :root { --section-space: 40px; --grid-gap: 24px; }
  main { padding: 16px 8px 0; }
  main > section { padding: 40px 16px; margin-bottom: 16px; }
  .split, .feature, .editorial, .product-hero, .intro-with-media,
  .career-research-intro, .contact-grid, .cinema-hero.final-hero { grid-template-columns: minmax(0,1fr); }
  .deck-track.product-grid > .product,
  .deck-track.context-grid--media > .context-card,
  .deck-track.skin-grid > .skin-card { grid-template-columns: minmax(0,1fr); }
  .deck-track .deck-copy { padding: 24px; }
  .hero-actions { align-items: stretch; }
  header { gap: 8px; padding-inline: 16px; }
  header .logo { max-width: 144px; height: auto; }
  header .contact-link { font-size: 14px; }
  .mobile.open { max-height: calc(100dvh - 80px); overflow-y: auto; }
  .final-hero .brain-stage { margin: 0 auto -48px; }
  .final-hero .brain-cutout { scale: 1; }
  main > .cinema-hero.final-hero { margin-bottom: 32px; }
  .spec-strip { display: grid; grid-template-columns: minmax(0,1fr); }
  .product-jump { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .footer-top, .bottom { flex-wrap: wrap; gap: 24px; }
  footer { padding-inline: 24px; }
}
@media (max-width: 400px) {
  header .contact-link { display: none; }
  .hero-actions .button { width: 100%; }
  .deck-controls button { padding: 12px; }
  .library-controls { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  a, button { transition: none; }
}

/* Raised artwork extends beyond the desktop hero without entering the text column. */
@media (min-width: 961px) {
  main > .cinema-hero.final-hero {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: stretch;
    margin-top: 64px;
    margin-bottom: 80px;
    padding-block: 40px;
  }
  .final-hero .brain-stage {
    position: relative;
    align-self: stretch;
    margin: -96px -24px -96px 0;
    width: auto;
    min-height: 0;
    padding: 0;
  }
  .final-hero .brain-cutout {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    scale: 1.16;
    filter: drop-shadow(0 32px 20px #51302538);
  }
}
.hero-actions .button { font-weight: 600; }
.eyebrow { font-weight: 600; }
a.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* One light palette for the workflow sections on every product page. */
main > section.dark,
main > section.source-panel {
  background: #f3ead7;
  border-color: #dfd1b3;
  color: #252e27;
}
.dark h2, .dark h3 { color: #252e27; }
.dark .eyebrow, .dark h2 i, .dark h2 em { color: #765911; }
.dark p, .dark .deck-status, .source-panel p { color: #4c574e; }
.dark :focus-visible { outline-color: #806018; }

/* Follow touch movement immediately while allowing vertical page scrolling. */
.deck-track { touch-action: pan-y pinch-zoom; }
.deck-track.deck-dragging > .deck-card {
  transition: none;
  cursor: grabbing;
  will-change: transform;
}
.deck-track img { -webkit-user-drag: none; }
