/* Six effects adapted for the existing buildless VYBE page. */
.nav__brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.stroke-text {
  display: block;
  width: 116px;
  height: 49px;
  overflow: visible;
}

.stroke-text text {
  font: 800 40px var(--font);
  letter-spacing: -.8px;
  fill: var(--fg);
  stroke: var(--fg);
  stroke-width: .7px;
  stroke-linejoin: round;
}

.stroke-text.is-drawing text {
  animation: vybe-stroke 2s both;
  animation-delay: calc(var(--letter) * 130ms);
}

@keyframes vybe-stroke {
  0% {
    fill: transparent;
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
  }
  65% {
    fill: transparent;
    stroke-dasharray: 240;
    stroke-dashoffset: 0;
  }
  100% {
    fill: var(--fg);
    stroke-dasharray: 240;
    stroke-dashoffset: 0;
  }
}

.hero__intro.blur-ready .blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px);
}

.hero__intro.blur-ready.is-visible .blur-word {
  animation: vybe-blur 850ms var(--ease) both;
  animation-delay: calc(300ms + var(--word) * 45ms);
}

@keyframes vybe-blur {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(18px);
  }
  55% {
    opacity: .75;
    filter: blur(4px);
    transform: translateY(-3px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

.hero__title {
  margin-block: .67em;
}

.hero__title .tech-word {
  display: inline-flex;
  align-items: baseline;
  color: var(--fg);
  -webkit-text-stroke: 0;
  padding-right: .35em;
}

.hero__title .tech-letter {
  display: inline-block;
  flex: none;
  position: relative;
  padding: 0;
  line-height: 0;
  touch-action: pan-y;
  user-select: none;
}

.tech-letter > svg {
  display: block;
  overflow: visible;
}

.tech-letter text {
  font-family: var(--font);
  font-weight: 800;
  stroke-linejoin: round;
}

.tech-solid {
  fill: var(--fg);
  stroke: none;
  transition: opacity 170ms;
}

.out .tech-solid {
  fill: transparent;
  stroke: var(--fg);
  stroke-width: 1.8;
}

.tech-dashes {
  fill: transparent;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 2;
  opacity: 0;
  transition: opacity 170ms;
}

.tech-letter.is-active .tech-solid, .tech-letter.is-dragging .tech-solid {
  opacity: .04;
}

.tech-letter.is-active .tech-dashes, .tech-letter.is-dragging .tech-dashes {
  opacity: 1;
}

.hero__title .tech-frame {
  position: absolute;
  inset: 10% -2px 15%;
  display: block;
  padding: 0;
  border: 1px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}

.tech-frame::before, .tech-frame::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(var(--accent), var(--accent)) left top / 5px 5px, linear-gradient(var(--accent), var(--accent)) right top / 5px 5px, linear-gradient(var(--accent), var(--accent)) left bottom / 5px 5px, linear-gradient(var(--accent), var(--accent)) right bottom / 5px 5px;
  background-repeat: no-repeat;
}

.tech-frame::after {
  content: attr(data-label);
  inset: auto auto -18px 0;
  color: var(--accent);
  background: none;
  font: 10px/1.2 ui-monospace, monospace;
  letter-spacing: .02em;
  white-space: nowrap;
}

.tech-letter.is-active .tech-frame, .tech-letter.is-dragging .tech-frame {
  opacity: 1;
}

.hero__title .marquee {
  align-items: center;
}

.hero__title .marquee, .hero__title .marquee__group {
  padding-right: 0;
}

.hero__title .marquee.is-dragging {
  animation-play-state: paused;
}

.swarm-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.brand-footer {
  margin-top: 0;
  padding-top: clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.brand-footer__label {
  margin: 0 0 32px;
  padding-inline: var(--pad);
  color: var(--muted);
  font-size: .95rem;
}

.logo-loop {
  position: relative;
  overflow: hidden;
  padding-block: 18px;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.logo-loop__track {
  display: flex;
  width: max-content;
  animation: vybe-logos 32s linear infinite;
}

.logo-loop__group {
  list-style: none;
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(44px, 6vw, 88px);
  margin: 0;
  padding: 0 clamp(44px, 6vw, 88px) 0 0;
}

.logo-loop__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  color: var(--fg);
  opacity: .62;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
}

.logo-loop__item:hover {
  opacity: 1;
  transform: scale(1.08);
}

.logo-loop__item svg {
  width: 36px;
  height: 36px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
}

.logo-loop__item span {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.04em;
}

.logo-loop:hover .logo-loop__track, .logo-loop:focus-within .logo-loop__track {
  animation-play-state: paused;
}

@keyframes vybe-logos {
  to {
    transform: translateX(-50%);
  }
}

.metal-wordmark {
  position: relative;
  display: block;
  width: calc(100% - var(--pad) * 2);
  max-width: 1600px;
  aspect-ratio: 3.22;
  margin: clamp(48px, 8vw, 112px) auto clamp(32px, 5vw, 64px);
  isolation: isolate;
}

.metal-wordmark__fallback, .metal-wordmark canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.metal-wordmark__fallback {
  overflow: visible;
  transition: opacity .3s;
}

.metal-wordmark__fallback text {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -12px;
}

.metal-wordmark.is-ready .metal-wordmark__fallback {
  opacity: 0;
}

.brand-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.brand-footer__bottom a {
  padding-block: 8px;
}

.brand-footer__bottom a:hover {
  color: var(--fg);
}

/* About: Scroll Float on the heading, Scroll Reveal on the two paragraphs. */
html {
  scroll-behavior: smooth;
}

#sobre {
  scroll-margin-top: 100px;
}

.about {
  position: relative;
  padding: clamp(72px, 10vw, 148px) var(--pad) clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--line);
}

.about__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(28px, 5vw, 72px);
}

.about__eyebrow, .about__caption {
  margin: 0;
  font-size: .95rem;
}

.about__eyebrow {
  color: var(--accent);
  font-weight: 600;
}

.about__caption {
  color: var(--muted);
}

.about__title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.6rem, 7.8vw, 8.6rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.08;
}

.scroll-float-visual {
  display: block;
  overflow: clip;
  padding-bottom: .16em;
  margin-bottom: -.16em;
}

.scroll-float-word {
  display: inline-block;
  white-space: nowrap;
}

.scroll-float-char {
  display: inline-block;
  transform-origin: 50% 0%;
}

.about__body {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 2.2fr);
  gap: clamp(32px, 6vw, 100px);
  margin-top: clamp(44px, 7vw, 104px);
}

.about__monogram {
  display: block;
  width: fit-content;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.1em;
  color: var(--accent);
}

.about__aside p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

.about__statement {
  margin: 0;
  max-width: 27ch;
  font-size: clamp(1.65rem, 3.1vw, 3.25rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.035em;
}

.about__detail {
  max-width: 52ch;
  margin: 32px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
}

.scroll-reveal-visual {
  display: block;
  transform-origin: 0% 50%;
}

.scroll-reveal-word {
  display: inline-block;
}

.about__values {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-top: clamp(56px, 8vw, 112px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .about__header {
    align-items: flex-start;
  }
  .about__caption {
    max-width: 14ch;
    text-align: right;
    line-height: 1.5;
  }
  .about__body {
    grid-template-columns: 1fr;
  }
  .about__aside {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .about__aside p {
    margin: 0;
  }
  .about__statement {
    max-width: 34ch;
  }
  .about__title {
    font-size: clamp(2.6rem, 8.6vw, 4.6rem);
  }
}

@media (max-width: 640px) {
  .stroke-text {
    width: 100px;
    height: 43px;
  }
  .hero__intro {
    max-width: 32ch;
    font-size: clamp(1.1rem, 5vw, 1.56rem) !important;
  }
  .logo-loop__item svg {
    width: 29px;
    height: 29px;
  }
  .logo-loop__item span {
    font-size: 1.1rem;
  }
  .brand-footer__bottom {
    flex-wrap: wrap;
    gap: 8px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-float-char, .scroll-reveal-word, .scroll-reveal-visual {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .stroke-text.is-drawing text, .hero__intro.blur-ready.is-visible .blur-word, .logo-loop__track {
    animation: none !important;
  }
  .stroke-text text {
    fill: var(--fg);
    stroke-dashoffset: 0;
  }
  .hero__intro.blur-ready .blur-word {
    opacity: 1;
    filter: none;
    transform: none;
  }
  .tech-dashes, .tech-frame, .swarm-canvas {
    display: none;
  }
  .tech-letter.is-active .tech-solid {
    opacity: 1;
  }
  .logo-loop {
    mask-image: none;
  }
  .logo-loop__track {
    width: 100%;
  }
  .logo-loop__group {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding-inline: var(--pad);
    gap: 24px 36px;
  }
  .logo-loop__group[aria-hidden] {
    display: none;
  }
}
