/* Refinamentos da prévia: preservam paleta, Manrope e arte da Cevixa. */
:root { --text-small: .875rem; --text-label: .8125rem; }
html { scrollbar-color: #698598 var(--night); }
::selection { color: var(--night); background: var(--sand); }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.035em; }
p { text-wrap: pretty; }
.hero h1 { letter-spacing: -.04em; }
.hero-content { padding-top: 16px; }
.hero-illustration figcaption { font-size: var(--text-label); letter-spacing: .045em; gap: 12px 24px; }
.scene-category { display: none; }
.module-section .module-heading h2 { letter-spacing: -.035em; }
.module-section { padding-block: 88px; }
.module-situations .situation-heading, .module-solutions .module-heading { display: block; }
.situation-row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); }
.situation-note { margin-left: 0; }
.nature-label { font-size: var(--text-label); letter-spacing: .04em; border-left-width: 1px; }
.example-toolbar p, .example-toolbar .visual-label, .flow-controls button, .node-number, .panel-heading { font-size: var(--text-small); }
.example-description .muted { font-size: var(--text-small); }
.flow-caption { display: none; }
.flow-node p, .failure-explanation p { font-size: 1rem; line-height: 1.65; }
.failure-explanation { border-left-width: 1px; }
.solutions-overview { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; }
.solutions-fronts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.solution-front { padding-block: 24px; }
.solution-front:first-child { padding-top: 0; border-top: 0; }
.solution-front h3 { font-size: 26px; min-height: 0; max-width: none; margin-bottom: 12px; }
.solution-front p { font-size: 1rem; line-height: 1.7; max-width: 58ch; }
.solutions-figure { border-radius: 16px; background: transparent; }
.solutions-scene { aspect-ratio: 1902 / 827; background: transparent; }
.solutions-scene > img { object-fit: contain; }
.solution-custom { margin-top: 32px; gap: 32px; }
.solution-custom .text-link { margin-top: 20px; }
.project-story h3 { max-width: 480px; }
.project-story > p:not(.project-label) { font-size: 1rem; }
.project-story > .project-participation { font-size: var(--text-small); }
.project-figure figcaption { border-left-width: 1px; font-size: var(--text-small); }
.project-image-link { display: block; border-radius: 14px; }
.project-image-link:focus-visible { outline-offset: -4px; }
.project-expand { margin-top: 12px; color: #12666b; }
.project-case { row-gap: 20px; padding-block: 48px; }
.project-detail { grid-column: 1 / -1; color: var(--night); margin: 0; }
.project-detail summary { cursor: pointer; min-height: 44px; padding-block: 10px; color: #12666b; font-size: var(--text-small); font-weight: 750; text-underline-offset: 4px; }
.project-detail summary:hover { text-decoration: underline; }
.project-detail p { max-width: 72ch; font-size: 1rem; color: #34485c; margin: 12px 0 0; }
.founder-copy h2 { letter-spacing: -.035em; }
.faq-layout { display: block; }
.module-faq .module-heading { margin-bottom: 48px; }
.faq-groups { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; }
.faq-group h3 { font-size: 24px; margin-bottom: 24px; color: #12666b; }
.faq-answer p { font-size: 1rem; }
.contact-copy h2 { letter-spacing: -.035em; }
.channel-label, .channel-explanation, .footer p, .footer .text-link { font-size: var(--text-small); }
.nav-cta, .desktop-links a { font-size: var(--text-small); }
.project-viewer-open { overflow: hidden; }
.project-viewer { width: min(1500px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 24px; margin: auto; border: 1px solid #698598; border-radius: 16px; background: var(--night); color: var(--white); }
.project-viewer::backdrop { background: #061324e8; }
.project-viewer[open] { display: flex; flex-direction: column; gap: 16px; }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.viewer-toolbar h2 { font-size: clamp(20px, 2vw, 30px); line-height: 1.25; margin: 0; max-width: 28ch; }
.viewer-actions { display: flex; flex-shrink: 0; gap: 12px; }
.viewer-actions button { min-height: 44px; padding: 10px 16px; border: 1px solid #698598; border-radius: 8px; background: transparent; color: var(--white); font: inherit; font-size: var(--text-small); cursor: pointer; }
.viewer-actions button:hover { background: #17384d; }
.viewer-actions [data-viewer-close] { background: var(--turquoise); color: var(--night); border-color: var(--turquoise); font-weight: 750; }
.viewer-actions [data-viewer-close]:hover { background: var(--sand); color: var(--night); border-color: var(--sand); }
#viewer-caption { margin: 0; font-size: var(--text-small); color: var(--secondary); max-width: 85ch; }
.viewer-stage { min-height: 0; overflow: auto; scrollbar-color: #698598 var(--night); }
.viewer-image { display: block; width: 100%; height: auto; max-width: none; }
.project-viewer.is-zoomed .viewer-image { width: auto; }
.viewer-status { margin: 0; font-size: var(--text-small); color: var(--secondary); }
.viewer-actions button:disabled { opacity: .6; cursor: wait; }
.viewer-recovery { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.viewer-recovery button { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--turquoise); color: var(--night); font: inherit; font-size: var(--text-small); font-weight: 750; cursor: pointer; }
.viewer-recovery button:hover { background: var(--sand); }
.viewer-recovery a { display: inline-flex; align-items: center; min-height: 44px; color: var(--turquoise); font-size: var(--text-small); text-underline-offset: 4px; }
@media (max-height: 500px) {
  .project-viewer { padding: 12px; }
  .project-viewer[open] { gap: 10px; }
  .project-viewer .viewer-toolbar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .viewer-toolbar h2 { font-size: 18px; max-width: none; }
  .project-viewer .viewer-actions { width: auto; }
  .project-viewer .viewer-stage { min-height: 0; flex: 1 1 auto; }
  #viewer-caption, .viewer-status { font-size: 13px; }
}
@media (max-width: 1100px) {
  .solutions-overview { gap: 32px; }
  .faq-groups { gap: 40px; }
  .viewer-toolbar { flex-direction: column; }
}
@media (max-width: 900px) {
  .solutions-overview { grid-template-columns: 1fr; gap: 24px; }
  .solutions-art { max-width: 560px; width: 100%; margin: auto; }
  .solutions-scene { aspect-ratio: 1902 / 827; }
  .project-detail { margin-top: 20px; }
  .faq-groups { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .module-section { padding-block: 56px; }
  .situation-row { display: block; }
  .situation-row h3 { margin-bottom: 12px; }
  .situation-row p, .process-step p, .founder-copy > p:not(.module-kicker), .projects-heading > p, .solution-custom p { font-size: 1rem; }
  .solution-front { padding-block: 20px; }
  .solution-front h3 { font-size: 24px; margin-bottom: 12px; }
  .solution-custom { margin-top: 24px; }
  .solution-custom .text-link { font-size: var(--text-small); }
  .project-case, .project-case:nth-of-type(even) { padding-block: 32px; }
  .project-story h3 { font-size: 30px; }
  .project-story > p:not(.project-label) { font-size: 1rem; }
  .founder-mark { width: 144px; height: 144px; margin-bottom: 28px; }
  .faq-item summary { min-height: 72px; padding-block: 20px; }
  .module-faq .module-heading { margin-bottom: 32px; }
  .project-viewer { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 16px; }
  .viewer-actions { flex-wrap: wrap; width: 100%; gap: 8px; }
  .viewer-actions button { padding-inline: 12px; }
  .viewer-stage { min-height: 110px; }
  .hero-illustration figcaption { font-size: var(--text-label); }
}
