/* Universe Digital identity within the existing Profitize layout and motion. */

/* The introduction reveals the real page through the original symbol. */
html.intro-page {
  scrollbar-gutter: stable;
}
html.is-site-intro {
  overflow: hidden;
  overscroll-behavior: none;
}
.site-intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  user-select: none;
}
html.is-site-intro .universe-hero[data-hero-scope] {
  filter: url("#intro-lens");
}
html.is-site-intro .hero-piece:not([data-hero-piece-managed]),
.hero-piece[data-hero-piece-pending] {
  opacity: 0;
}
html.is-site-intro .site-intro {
  display: block;
}
.site-intro__scene {
  display: block;
  width: 100%;
  height: 100%;
}
.site-intro__backdrop {
  fill: var(--bg, #000);
}
.site-intro__core,
.site-intro__edge,
.site-intro__cells {
  stroke-linejoin: round;
  stroke-linecap: round;
}
.site-intro__core {
  stroke: var(--universe-lilac, #a78bfa);
  stroke-width: 1.25;
}
.site-intro__edge {
  stroke: #ddd3ff;
  stroke-width: 1.5;
}
.site-intro__cells {
  stroke: var(--universe-lilac, #a78bfa);
  stroke-width: 1;
  stroke-opacity: .17;
}
.site-intro__core path,
.site-intro__edge,
.site-intro__cells path {
  vector-effect: non-scaling-stroke;
}
.site-intro__skip {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #a78bfa33;
  border-radius: 999px;
  background: #0008;
  color: var(--muted, #b8b2a9);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.site-intro__skip:hover,
.site-intro__skip:focus-visible {
  color: var(--fg, #f2ede4);
  border-color: var(--universe-lilac, #a78bfa);
}
@media (prefers-reduced-motion: reduce) {
  html.is-site-intro {
    overflow: visible;
  }
  html.is-site-intro .site-intro {
    display: none;
  }
  html.is-site-intro .universe-hero[data-hero-scope] {
    filter: none;
  }
  html .hero-piece[data-hero-piece-pending] {
    opacity: 1;
  }
}
:root {
  --universe-violet: #8b5cf6;
  --universe-indigo: #6366f1;
  --universe-lilac: #a78bfa;
  --universe-cyan: #22d3ee;
  --universe-space: #0a0a12;
  --universe-space-2: #13131f;
  --universe-paper: #f7f7fb;
  --universe-gradient: linear-gradient(
    135deg,
    var(--universe-indigo),
    var(--universe-lilac)
  );
}

::selection {
  background: var(--universe-lilac);
  color: var(--universe-space);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline-color: var(--universe-cyan);
}

/* Keep the offer and contact action readable on the first paint. Decorative
   artwork retains its motion; critical text does not wait for entrance effects. */
.nav[data-navigation-scope],
.hero[data-hero-scope] .wi[data-hero-scope],
.hero[data-hero-scope] [data-hero-scope][data-in] {
  animation: none;
}

/* A failed enhancement must never leave useful content invisible. */
html.js:not([data-ready="true"]) .rv {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: none;
}

/* Native anchors and contact links remain usable when scripting is disabled. */
html:not(.js) .nav-burger[data-navigation-scope] {
  display: none;
}
html:not(.js) .universe-project-filters,
html:not(.js) .universe-project-pagination,
html:not(.js) .universe-diagnosis__tabs,
html:not(.js) .universe-diagnosis__form > :not(noscript) {
  display: none;
}
html:not(.js) .universe-projects [data-pcard][hidden] {
  display: block !important;
}

@media (width <= 900px) {
  html:not(.js) .nav-links[data-navigation-scope] {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 8px 14px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  html:focus-within {
    scroll-behavior: auto;
  }
  html.js .rv:not(.rv-done) {
    opacity: 1;
    transition: none;
    transform: none;
    filter: none;
    clip-path: none;
  }
  .hero[data-hero-scope] .wi[data-hero-scope],
  .hero[data-hero-scope] [data-hero-scope][data-in] {
    animation: none;
  }
}

/* Use the supplied transparent wordmark, with its original proportions/colors. */
.universe-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  line-height: 1;
}

.universe-brand__logo,
.universe-brand__logo img {
  display: block;
  width: clamp(190px, 17.5vw, 238px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.nav-logo.universe-brand {
  justify-self: start;
}

.col--brand .universe-brand__logo,
.col--brand .universe-brand__logo img {
  width: 226px;
}

.universe-symbol {
  display: block;
  width: 48px;
  height: auto;
  flex: none;
}

/* Keep the reference's cream buttons, with the studio's lilac as the accent. */
.btn--primary[data-button-scope] {
  box-shadow:
    inset 0 1px #ffffff80,
    0 10px 30px -12px #a78bfa45;
}

.pill {
  border-color: color-mix(in srgb, var(--universe-lilac) 35%, var(--line));
  color: var(--universe-paper);
}

.universe-accent {
  color: var(--universe-lilac);
}

.universe-accent-gradient {
  background: var(--universe-gradient);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Desktop captures use a real 16:9 viewport, matching the monitor screen. */
.universe-project-shot {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center top;
  background: var(--universe-space-2);
}

.universe-project-tag {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid
    color-mix(in srgb, var(--tom, var(--universe-lilac)) 44%, transparent);
  border-radius: 8px;
  background: color-mix(
    in srgb,
    var(--tom, var(--universe-lilac)) 15%,
    #0a0a12
  );
  color: var(--universe-paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-shadow: none;
}

.universe-project-note {
  color: var(--muted);
  font-size: var(--t-14);
  line-height: 1.6;
}

.universe-service .card-type {
  color: var(--universe-lilac);
}

.universe-contact-link {
  overflow-wrap: anywhere;
}

.universe-contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-16);
  pointer-events: auto;
}

.contato .universe-contact-actions .btn {
  margin-top: 0;
}

.contato .universe-contact-actions button,
.contato .universe-contact-actions a {
  pointer-events: auto;
}

/* Fit the longer studio name without changing the footer's textured treatment. */
.wordmark.universe-wordmark[data-contact-scope] {
  font-size: calc(min(var(--container), 100vw - 2 * var(--gutter)) / 7.5);
  letter-spacing: -0.065em;
  line-height: 0.92;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary[data-button-scope]:hover {
    box-shadow:
      inset 0 1px #ffffff80,
      0 14px 36px -12px #a78bfa80;
  }

  .universe-contact-link:hover {
    color: var(--universe-lilac);
  }
}

@media (width <= 900px) {
  .universe-brand__logo,
  .universe-brand__logo img {
    width: 220px;
  }
}

@media (width <= 720px) and (hover: none) and (pointer: coarse) {
  /* Defer layout and paint for distant content. Keep the sticky portfolio
     outside containment so its cards retain their existing scroll behavior. */
  html:not(:has(:target)) main > section:not(:first-child):not(#projetos),
  html:not(:has(:target)) body > footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 1000px;
  }
}

@media (width <= 720px) {
  /* Scroll decoration should not repeatedly recalculate geometry or fade the
     offer on touch screens. Desktop motion and canvas artwork stay intact. */
  html .pblur,
  html .hero-copy[data-hero-scope],
  html .hero-hand[data-hero-scope],
  html .build-screen[data-build-scope] {
    animation: none;
    animation-timeline: auto;
  }

  .nav-logo.universe-brand {
    max-width: calc(100vw - 112px);
  }

  .nav-logo .universe-brand__logo,
  .nav-logo .universe-brand__logo img {
    width: min(205px, 58vw);
  }

  .universe-contact-actions {
    gap: var(--s-12);
  }

  .universe-contact-actions .btn {
    width: min(100%, 340px);
  }
}

@media (width <= 520px) {
  .hero-ctas[data-hero-scope] {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    max-width: 360px;
    margin-inline: auto;
  }
  .hero-ctas[data-hero-scope] .btn {
    min-width: 0;
    min-height: 48px;
    height: auto;
    padding: 14px;
    white-space: normal;
  }
}
