/* A circular path: the middle work sits at the crown, neighbours follow the arc. */
.portfolio-curved { overflow: clip; padding-top: 0; padding-bottom: 58px; }
#projetos { scroll-margin-top: 82px; }
.portfolio-curved .work-heading { position: relative; z-index: 4; display: block; width: min(780px, calc(100% - 48px)); text-align: center; margin: 20px auto 0; }
.portfolio-curved .work-heading h2 { font-size: clamp(3.25rem, 5.8vw, 6.25rem); line-height: 1.02; }
.portfolio-curved .work-heading h2 br { display: none; }
.portfolio-curved .work-heading > p { max-width: 460px; margin: 22px auto 0; font-size: .9375rem; line-height: 1.7; }
.portfolio-orbit { display: block; margin-inline: calc(-1 * var(--gutter)); }
.portfolio-curved .project-grid { position: relative; display: block; height: max(var(--orbit-height, 470px), var(--orbit-envelope, 0px)); padding: 0; overflow: visible; touch-action: pan-y pinch-zoom; cursor: grab; user-select: none; }
.portfolio-curved .project-grid.is-dragging { cursor: grabbing; }
.portfolio-curved .project,
.portfolio-curved .project.is-selected { position: absolute; inset: 20px auto auto 50%; width: var(--orbit-width, 360px); margin: 0; opacity: var(--orbit-opacity, 0); transform-origin: 50% 50%; transform: translateX(-50%) translate3d(var(--orbit-x, 0px), var(--orbit-y, 0px), 0) rotate(var(--orbit-angle, 0deg)) scale(var(--orbit-scale, 1)); transition: none; will-change: transform; }
.portfolio-curved .project-visual { aspect-ratio: 404 / 316; border-radius: 8px; background: var(--rose-light); box-shadow: 0 16px 36px rgb(75 24 31 / 0.0784); border: 1px solid #4b181f14; }
.portfolio-curved .project-visual img { display: block; object-fit: cover; pointer-events: none; transform: none; }
.portfolio-curved .project:hover .project-visual img { transform: none; }
.portfolio-curved .project-meta { display: none; }
.portfolio-curved .project-open { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; right: 14px; bottom: 14px; padding: 10px 17px; gap: 18px; font-size: .75rem; }
.portfolio-curved .project.is-selected:hover .project-open,
.portfolio-curved .project.is-selected:focus-visible .project-open { opacity: 1; transform: none; }
.portfolio-curved .project:focus-visible { outline-offset: 5px; }
.orbit-controls { position: relative; z-index: 25; display: flex; flex-direction: column; align-items: center; padding: 0 22px; margin-top: -235px; text-align: center; }
.orbit-drag-hint { max-height: 32px; overflow: hidden; margin: 0 0 14px; opacity: 1; color: var(--muted); font-size: .6875rem; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; transition: max-height .35s ease, margin .35s ease, opacity .25s ease; }
.orbit-drag-hint span { display: inline-block; padding-inline: 7px; font-size: 1rem; line-height: .7; }
.orbit-drag-hint.is-learned { max-height: 0; margin-bottom: 0; opacity: 0; visibility: hidden; }
.orbit-caption { display: flex; min-height: 54px; flex-direction: column; align-items: center; gap: 8px; }
.orbit-category { margin: 0; font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.orbit-title { border: 0; padding: 0 4px; color: var(--wine); background: transparent; font: inherit; font-size: clamp(1.5rem, 2.2vw, 2.25rem); line-height: 1.25; letter-spacing: -.045em; }
.orbit-title:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.portfolio-curved button:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.preview-navigation button[hidden], .preview-thumbnails[hidden] { display: none; }
.title-dissolve .title-word { display: inline-block; white-space: nowrap; }
.title-dissolve .title-letter { display: inline-block; }
.title-dissolve .title-glyph { display: inline-block; transform-origin: 50% 65%; transition: transform 700ms cubic-bezier(.2,.7,.25,1), opacity 650ms ease, filter 650ms ease; }
.title-dissolve.is-dissolving .title-glyph { transition-duration: 260ms; will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  .title-dissolve .title-glyph { transform: none !important; opacity: 1 !important; filter: none !important; }
  .orbit-drag-hint { transition: none; }
}
html[data-motion="reduced"] .title-dissolve .title-glyph { transform: none !important; opacity: 1 !important; filter: none !important; }
@media (max-width: 760px) {
  .portfolio-curved .work-heading { width: min(420px, calc(100% - 36px)); margin: 18px auto 0; }
  .portfolio-curved .work-heading h2 { font-size: clamp(2.8rem, 10vw, 4.2rem); }
  .portfolio-curved .work-heading h2 br { display: initial; }
  .portfolio-curved .work-heading > p { max-width: 300px; font-size: .875rem; margin-top: 18px; }
  .portfolio-curved .project, .portfolio-curved .project.is-selected { top: 18px; }
  .orbit-controls { margin-top: -125px; }
  .orbit-caption { min-height: 48px; }
  .orbit-title { font-size: 1.6rem; }
  .orbit-category { font-size: .5625rem; }
}
