/* Ajustes de integração V3.3. Os quatro estilos originais da V6 continuam separados. */
[data-v32] {
  --max: 1340px;
  --surface: #101c2b;
  --surface2: #152235;
  --border: #304253;
  --muted2: #8a9caf;
  --gold2: #f2ce94;
  --white: #f7f7f5;
  --shadow: 0 25px 60px #0005;
}
[hidden] { display: none !important; }
[data-v32] :is(h2, .birth-detail-copy h3) { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
[data-v32] :is(h2, .birth-detail-copy h3) em { color: var(--gold); font-weight: 400; }

@media (min-width: 761px) {
  .projects .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .projects .thumb,
  .projects .project-card:hover .thumb {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .projects .thumb {
    --project-light: #87988a;
    --project-middle: #203a31;
    --project-shadow: #102a24;
  }
  .projects .thumb.immersao {
    --project-light: #dfb77b;
    --project-middle: #805340;
    --project-shadow: #332d28;
  }
  .projects .thumb.juliana {
    --project-light: #a1a0a7;
    --project-middle: #374c65;
    --project-shadow: #172231;
  }
  .projects .thumb::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(circle at 82% 26%, var(--project-light), var(--project-middle) 64%, var(--project-shadow));
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent),
                linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    mask-composite: intersect;
  }
}
.projects .thumb.juliana { background-color: #30445b; }
@media (min-width: 761px) {
  .projects .thumb.juliana { background-color: transparent; }
}
.projects .project-card:focus-visible .preview-browser { transform: rotateZ(-1deg) translateY(0); }
.projects .project-card:focus-visible .thumb-corner { transform: rotate(-40deg); }
.projects .project-card:active .thumb-corner { transform: rotate(-40deg); }
@media (prefers-reduced-motion: reduce) {
  .projects .project-card:is(:hover, :focus-visible, :active) :is(.thumb, .preview-browser, .thumb-corner) { transition: none; }
}

[data-v32] .birth { padding-block: 52px 38px; background: #0c1723; }
[data-v32] .birth-overview { grid-template-columns: minmax(0, .84fr) minmax(0, 2fr); }
[data-v32] .birth-track { min-width: 0; }
[data-v32] .birth-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
[data-v32] .birth-card { min-height: 128px; padding: 13px 10px; }
[data-v32] .birth-card span { font-size: clamp(15px, 1.6vw, 22px); }
[data-v32] .birth-card strong { font-size: clamp(12px, 1.25vw, 16px); }
[data-v32] .birth-detail { gap: 24px; }
[data-v32] .birth-copy .ghost-link { margin-top: 16px; }
[data-v32] .compare {
  padding-block: 36px 66px;
  background: linear-gradient(0deg,#0c1723 1%,#0c1723b3 43%,#0c1723 98%),
              url("/assets/interlude-ribbons.webp") center 50% / cover;
}
[data-v32] .compare-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 26px;
}
[data-v32] .compare-stage { --compare-pos: 58%; --compare-x: 0px; --compare-y: 0px; min-height: 430px; background: #081521; }
[data-v32] .compare-stage::before { display: none; }
[data-v32] .compare-side {
  padding: 31px;
  background: radial-gradient(ellipse at 71% 47%, #4c3f2b, transparent 43%), #102033;
}
[data-v32] .compare-animated { clip-path: inset(0 0 0 var(--compare-pos)); transition: none; }
[data-v32] .compare-label {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 24px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #0b1624cf;
  color: #efd8b3;
  letter-spacing: .13em;
}
[data-v32] .compare-animated .compare-label { left: auto; right: 24px; }
[data-v32] .compare-story { position: relative; z-index: 2; margin: 83px 0 0; max-width: 330px; pointer-events: none; }
[data-v32] .compare-story small { color: #dfbd86; letter-spacing: .14em; font-size: 10px; }
[data-v32] .compare-story h3 { font: 400 clamp(36px, 5vw, 69px)/1 Georgia, serif; margin: 13px 0; }
[data-v32] .compare-story p { color: #d2dce5; font-size: 13px; }
[data-v32] .animated-scene { transform: translate(var(--layer-x, 0), var(--layer-y, 0)); }
[data-v32] .compare-animated .animated-scene {
  --layer-x: var(--compare-x);
  --layer-y: var(--compare-y);
  transition: transform .26s ease-out;
}
[data-v32] .compare-symbol {
  position: absolute;
  width: min(25%, 250px);
  height: auto;
  right: 15%;
  top: 17%;
  transform: rotate(-8deg);
  filter: drop-shadow(0 18px 28px #a77d4865);
}
[data-v32] .compare-side .scene-ring,
[data-v32] .compare-side .scene-card { animation: none; }
[data-v32] .compare-stage.motion-visible .compare-animated .compare-symbol { animation: v33-drift 6s ease-in-out infinite alternate; }
[data-v32] .compare-stage.motion-visible .compare-animated .scene-card { animation: v32-floatY 6s ease-in-out infinite; }
[data-v32] .compare-stage.motion-visible .compare-animated .scene-card-b { animation-delay: -3s; }
@keyframes v33-drift { to { transform: translateY(-12px) rotate(-2deg); } }
[data-v32] .compare-rule {
  position: absolute;
  z-index: 4;
  inset: 0 auto 0 var(--compare-pos);
  width: 2px;
  background: #eac58a;
  pointer-events: none;
}
[data-v32] .compare-rule span {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #edce96;
  color: #16212c;
  font-size: 24px;
}
[data-v32] #compareHandle {
  position: absolute;
  z-index: 5;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
}
[data-v32] .compare-stage:has(input:focus-visible) { outline: 2px solid #f2d49a; outline-offset: 4px; }

[data-v32] .solutions {
  padding-top: 72px;
  background: linear-gradient(180deg,#0c1723 0%,#0b1724dc 28%,#0a1523 80%),
              url("/assets/projects-norwyn-v6.webp") center top / 100% auto no-repeat;
}
[data-v32] .solutions-scroll-zone,
[data-v32] .direction-scrub {
  min-height: 0;
  height: calc(100svh + clamp(320px, 69svh, 670px));
}
[data-v32] .solutions-sticky,
[data-v32] .direction-sticky {
  top: 0;
  height: 100svh;
  min-height: 0;
  max-height: none;
  border-block: 0;
}
[data-v32] .solutions-sticky {
  background: linear-gradient(0deg,#0a1523 1%,#0c1723b8 48%,#0b1724 97%),
              url("/assets/projects-norwyn-v6.webp") center / cover;
}
[data-v32] .direction {
  padding-top: 65px;
  background: linear-gradient(0deg,#0b131d 0%,#0b1521d9 60%,#08131f),
              url("/assets/interlude-ribbons.webp") center / cover;
}
[data-v32] .direction-sticky {
  background: radial-gradient(ellipse at 28% 45%,#8862361a,transparent 55%), #0b1521e8;
}
[data-v32] .direction-canvas-wrap { min-width: 0; }
[data-v32] .lab-section {
  padding-block: 72px;
  background: linear-gradient(0deg,#09121e 0%,#0c1723b3 50%,#0b131d),
              url("/assets/cta-norwyn-v6.webp") center 55% / cover;
}

#processo .chapter { top: 12vh; padding-top: 12px; max-width: 400px; }
#processo .chapter-number { margin-top: 12px; }
#processo .chapter-number > span { font-size: clamp(76px, 10vw, 145px); }
#processo .chapter-name { margin-bottom: 16px; }
#processo .chapter-bottom { margin-top: 15px; }
#processo .chapter-art {
  width: 100%;
  max-width: 365px;
  aspect-ratio: 480 / 290;
  margin-top: 18px;
}
#processo .chapter-art img { display: block; width: 100%; height: auto; }
#processo .chapter-art img[hidden] { display: none; }
#processo .milestone { min-height: 55vh; padding-bottom: 8vh; }
#processo .milestone:last-child { min-height: 55vh; }
#processo .journey-exit { padding-bottom: 35px; }

.footer-brief { appearance: none; background: none; border: 0; color: inherit; font: inherit; padding: 0; }
body:has(#briefDialog[open]) { overflow: hidden; }
[data-v32] #briefDialog:not([open]) { display: none; }
[data-v32] #briefDialog { max-height: 88dvh; overflow: auto; }

@media (max-width: 1080px) {
  [data-v32] .birth-overview { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  [data-v32] .birth { padding-top: 28px; }
  [data-v32] .birth-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-v32] .birth-card { min-height: 95px; }
  [data-v32] .compare { padding-block: 28px 45px; }
  [data-v32] .compare-head { align-items: start; flex-direction: column; gap: 8px; }
  [data-v32] .compare-stage { min-height: 330px; }
  [data-v32] .compare-side { padding: 14px; }
  [data-v32] .compare-label { top: 12px; left: 9px; font-size: 9px; }
  [data-v32] .compare-animated .compare-label { right: 9px; }
  [data-v32] .compare-story { margin-top: 81px; max-width: 145px; }
  [data-v32] .compare-story small { font-size: 8px; }
  [data-v32] .compare-story h3 { font-size: clamp(25px, 7.6vw, 39px); }
  [data-v32] .compare-story p { font-size: 11px; }
  [data-v32] .compare-symbol { width: 37%; right: 8%; top: 30%; }
  [data-v32] .compare-side .scene-card { display: none; }
  [data-v32] .solutions, [data-v32] .direction { padding-top: 45px; }
  [data-v32] .lab-section { padding-block: 46px; }
  #processo .milestone, #processo .milestone:last-child { min-height: 0; padding-bottom: 9vh; }
}
@media (max-height: 650px) {
  [data-v32] .solutions-sticky .solutions-scene { height: 240px; min-height: 0; }
  [data-v32] .direction-sticky .direction-canvas-wrap { height: 235px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-v32] *,
  [data-v32] *::before,
  [data-v32] *::after { animation: none !important; transition: none !important; }
}



@media (max-width: 760px) {
  [data-v32] .solutions-layout {
    height: auto;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 18px;
  }
  [data-v32] .solutions-sticky .solutions-scene { height: min(42svh, 340px); min-height: 240px; }
  #processo .journey-head h2 { font-size: clamp(36px, 10vw, 53px); }
}
@media (max-width: 760px) and (max-height: 640px) {
  [data-v32] .solutions-sticky .solutions-scene { height: 37svh; min-height: 190px; }
}
/* Conexão das etapas e continuidade entre as dobras. */
[data-v32] .birth-shell {
  display: block;
  overflow: hidden;
}
[data-v32] .birth-overview {
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
  padding-block: 22px 16px;
}
[data-v32] .birth-copy .eyebrow { margin-bottom: 8px; }
[data-v32] .birth-copy h2 { font-size: clamp(32px, 3.6vw, 52px); }
[data-v32] .birth-copy p:not(.eyebrow) { margin-top: 10px; font-size: 14px; }
[data-v32] .birth-track { min-height: 0; }
[data-v32] .birth-card { min-height: 76px; gap: 8px; }
[data-v32] .birth-cards { padding: 3px; }
[data-v32] .birth-line { margin-top: 9px; margin-bottom: 6px; }
[data-v32] .birth-detail {
  border-top: 1px solid #43516a69;
  padding-top: 18px;
  background: linear-gradient(135deg,#0a1522,#16263874);
}
[data-v32] .birth-detail-copy .eyebrow { margin: 0 0 9px; }
[data-v32] .birth-detail-copy h3 { font-size: clamp(28px, 3vw, 44px); }
[data-v32] .birth-detail-copy p { margin-top: 12px; }
[data-v32] .birth-method-link { display: inline-flex; gap: 10px; margin-top: 14px; color: #e8c28c; font-size: 13px; }
[data-v32] #birthWindowBody { min-height: 264px; }

[data-v32] .solutions-sticky {
  background: linear-gradient(0deg,#0a1523 0%,#0c1723b8 40%,#0b1724 97%),
              url("/assets/projects-norwyn-v6.webp") center / cover;
}
#processo[data-variant="background"] {
  padding-top: clamp(36px, 5.5vw, 86px);
  --method-reveal: 1;
  --method-ambient-scrim: .28;
}
#processo[data-variant="background"]::before {
  background: linear-gradient(to bottom,#0a1523 0,#08131f 21rem,#08131f calc(100% - 19rem),#0b1521 100%);
}
#processo .method-ambient {
  opacity: var(--method-reveal);
  mask-image: linear-gradient(to bottom, transparent, #000 15rem, #000 calc(100% - 16rem), transparent);
}
#processo .method-ambient-pin { background: transparent; }
#processo .method-ambient-media :is(img,canvas) {
  mask-image: linear-gradient(to bottom, transparent, #000 17%, #000 83%, transparent);
}
#processo .method-ambient-media canvas { transition: opacity .3s ease; }
#processo .method-ambient-pin::after {
  background: linear-gradient(180deg,#08131f 2%,#08131f00 23%,#08131f00 74%,#08131f 98%),
              linear-gradient(90deg,#08131f9b,#08131f35 45%,#08131f44 72%,#08131f99);
}
#processo .section-heading { border-image: linear-gradient(90deg,#c29f6730,#c29f678a,transparent) 1; }
#processo .journey-exit {
  position: relative;
  min-height: clamp(85px, 12vw, 160px);
  padding-block: 14px clamp(22px, 5vw, 64px);
  border-image: linear-gradient(90deg,transparent,#d4b37b80 42%,#d4b37b2a) 1;
}
#processo .journey-exit > span { max-width: 350px; line-height: 1.7; }
[data-v32] .direction {
  padding-top: clamp(36px, 5vw, 65px);
  background: linear-gradient(180deg,#0b1521 0%,#0b1521ca 13%,#0b1521e5 57%,#0b131d 100%),
              url("/assets/interlude-ribbons.webp") center / cover;
}
@media (max-width: 760px) {
  [data-v32] .birth-overview { padding: 17px 12px 11px; gap: 14px; }
  [data-v32] .birth-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  [data-v32] .birth-card { padding: 6px 2px; min-height: 56px; gap: 4px; align-items: center; border-radius: 9px; white-space: nowrap; }
  [data-v32] .birth-card small { font-size: 9px; }
  [data-v32] .birth-card span { font-size: clamp(9px, 2.8vw, 13px); }
  [data-v32] .birth-bottom-row { flex-direction: row; align-items: center; font-size: 12px; }
  [data-v32] .birth-arrows button { width: 44px; height: 44px; }
  [data-v32] .birth-detail { padding: 15px 14px 17px; gap: 14px; }
  [data-v32] #birthWindowBody { min-height: 220px; }
  #processo .journey-exit { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  #processo .method-ambient { opacity: 1; }
}
@media (max-width: 700px) {
  #processo .method-ambient { mask-image: none; }
  #processo[data-variant="background"] :is(.milestone-card, .chapter)::before {
    background: radial-gradient(ellipse at center,#08131fce 25%,#08131f3b 76%,transparent);
    filter: none;
  }
  #processo .route-draw, #processo .route-facet, #processo .route-glow { filter: none; }
}
@media (max-width: 580px) {
  [data-v32] .window-code { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-v32] .window-code pre { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
}
