@font-face {
  font-family: "NON Natural Grotesk";
  src: url("/home/assets/fonts/NON-Natural-Grotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NON Natural Grotesk";
  src: url("/home/assets/fonts/NON-Natural-Grotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NON Natural Mono";
  src: url("/home/assets/fonts/NON-Natural-Mono-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FK Roman Standard";
  src: url("/home/assets/fonts/FKRomanStandard-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --dark-grey: #0f0f0f;
  --off-white: #f2f2f2;
  --off-white-fade: rgba(242, 242, 242, 0.24);
  --grey-100: rgba(242, 242, 242, 0.06);
  --grey-200: rgba(242, 242, 242, 0.1);
  --grey-300: #7d7d7d;
  --mid-grey: #7d7d7d;
  --theme-bg: #000000;
  --theme-fg: #f2f2f2;
  --theme-contrast: #00d1ff;
  --spacer-4: 4px;
  --spacer-6: 6px;
  --spacer-8: 8px;
  --spacer-12: 12px;
  --spacer-14: 14px;
  --spacer-16: 16px;
  --spacer-24: 24px;
  --spacer-32: 32px;
  --spacer-34: 34px;
  --spacer-48: 48px;
  --spacer-64: 64px;
  --spacer-88: 88px;
  --spacer-128: 128px;
  --spacer-180: 180px;
  --ease-in-out-sine: cubic-bezier(0.445, 0.05, 0.55, 0.95);
  --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
}

.theme-cyan {
  --theme-contrast: #00d1ff;
}

.theme-pink {
  --theme-contrast: #ec39b6;
}

.theme-purple {
  --theme-contrast: #5014fa;
}

:root .theme-contrast {
  color: var(--theme-contrast);
}

:root .mid-grey {
  color: #7d7d7d;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #000000;
  color: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

#site {
  position: relative;
  background-color: #000000;
  color: var(--off-white);
  min-height: 100vh;
  overflow: clip visible;
}

.layout-block {
  width: calc(100% - 24px);
  margin-inline: auto;
}

main.index > div > .layout-block {
  width: 100%;
}

.layout-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: 8px;
}

@media (min-width: 800px) {
  .layout-grid {
    grid-template-columns: repeat(16, minmax(0, 1fr));
  }
}

.site-header__overlay .layout-grid,
.site-footer__overlay .layout-grid {
  width: calc(100% - 24px);
  margin-inline: auto;
}

/* Classes Tipográficas Fluidas da Referência */
.h2, .h2-fluid, h2 {
  font-family: "NON Natural Grotesk", sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -1.6px;
  line-height: 100%;
  text-transform: uppercase;
}

.h2-fluid {
  font-size: clamp(36px, max(31px + 0.625vw, min(-44px + 5.8333333333vw, 54px)), 54px);
}

.h2-alt {
  font-family: "FK Roman Standard", serif;
  font-size: 40px;
  font-weight: 300;
  line-height: 36px;
  letter-spacing: -0.8px;
  color: var(--off-white);
  display: block;
}

.p-large-fluid {
  font-family: "FK Roman Standard", serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.36px;
  line-height: 140%;
}

@media (min-width: 800px) {
  .p-large-fluid {
    font-size: clamp(24px, max(24px + 0vw, min(-24px + 3.3333333333vw, 32px)), 32px);
    letter-spacing: -0.48px;
    line-height: 140%;
  }
}

.display {
  font-family: "FK Roman Standard", serif;
  font-size: 88px;
  font-style: normal;
  font-weight: 300;
  letter-spacing: -5.28px;
  line-height: 90%;
  text-transform: uppercase;
}

@media (min-width: 800px) {
  .display {
    font-size: clamp(130px, max(37.5px + 11.5625vw, min(-24px + 15.8333333333vw, 280px)), 280px);
    letter-spacing: -12.24px;
    line-height: 90%;
  }
}

.label {
  font-family: "NON Natural Mono", monospace;
  font-size: 10px;
  font-weight: 300;
  line-height: 7.14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--off-white);
  display: inline-block;
}

/* Palco WebGL */
#three-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

#three-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Cabeçalho Fixo */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  padding: 12px 0;
  z-index: 50;
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 82px;
  background: linear-gradient(0deg, transparent, rgba(0, 0, 0, 0.95));
  backdrop-filter: blur(2px);
  -webkit-mask: linear-gradient(transparent, #000 0 40%, transparent);
  mask: linear-gradient(transparent, #000 0 40%, transparent);
  z-index: -1;
}

.site-header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.site-header__content .a-div {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  pointer-events: auto;
}

.site-header__content .a-div span {
  pointer-events: none;
}

.site-header__content .default {
  overflow: hidden;
  position: relative;
}

.site-header__content .default span {
  display: block;
  position: relative;
  transition: transform 0.35s var(--ease-in-out-sine), opacity 0.35s var(--ease-in-out-sine);
}

.site-header__content .default.hovered span {
  opacity: 0;
  transform: translateX(-100%);
}

.site-header__content .letter-f.default {
  transform: scaleX(-1);
}

.site-header__content .a-div .extra {
  overflow: hidden;
  position: relative;
}

.site-header__content .a-div .extra > span {
  display: block;
  opacity: 0;
  position: relative;
}

.site-header__content .a-div .extra.letter-f > span {
  transform: translateX(-100%);
}

.site-header__content .a-div .extra.letter-l > span {
  transform: translateX(100%);
}

.site-header__content .a-div .extra.letter-y > span {
  transform: translateY(100%);
}

.site-header__overlay {
  position: absolute;
  inset: 0;
  padding-top: 12px;
  pointer-events: none;
  z-index: 1;
}

.site-header__overlay--left {
  grid-column: 4 / 5;
  display: flex;
  justify-content: flex-start;
}

.site-header__overlay--right {
  grid-column: 13 / 14;
  display: flex;
  justify-content: flex-end;
}

/* Barra Flutuante Central (Nav) */
.site-nav {
  position: fixed;
  top: 12px;
  inset-inline: 0;
  margin-inline: auto;
  transform: none;
  width: calc(100% - 24px);
  z-index: 90;
  user-select: none;
  isolation: isolate;
}

@media (min-width: 800px) {
  .site-nav {
    width: 382px;
  }
}

.site-nav__main {
  width: 100%;
  height: 40px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background-color: var(--grey-100);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.site-nav__col--left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-nav__col--center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav__col--right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ui-logo {
  width: 31px;
  height: 16px;
  display: block;
}

.ui-logo svg {
  width: 31px;
  height: 16px;
  display: block;
}

.site-nav__main .ui-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-in-out-sine), opacity 0.15s var(--ease-in-out-sine);
}

.site-nav__main .ui-icon.close {
  opacity: 0;
  pointer-events: none;
}

.site-nav.open .site-nav__main .ui-icon.ham {
  opacity: 0;
}

.site-nav.open .site-nav__main .ui-icon.close {
  opacity: 1;
}

.site-nav__menu {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, visibility .2s;
}

.site-nav.open .site-nav__menu {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.site-nav__menu ul {
  list-style: none;
}

.navigation-item {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease-in-out-sine), transform 0.25s var(--ease-in-out-sine);
  background-color: var(--grey-100);
  backdrop-filter: blur(6px);
  padding: 4px 4px 0;
}

.site-nav.open .navigation-item {
  opacity: 1;
  transform: translateY(0);
}

.navigation-item .a-div {
  height: 40px;
  padding: 0 12px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navigation-item .h3 {
  font-family: "NON Natural Grotesk", sans-serif;
  font-size: 16px;
  line-height: 16px;
}

.nav-num {
  color: rgba(242, 242, 242, 0.5);
}

.nav-arrow {
  color: var(--theme-contrast);
  font-family: "NON Natural Mono", monospace;
}

.site-nav__footer {
  padding: 4px;
}

.site-nav__footer--links {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.site-nav__footer--links .a-div {
  justify-content: center;
}

.site-nav__themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 4px 4px;
}

.theme-btn {
  height: 20px;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.theme-btn.active, .theme-btn:hover {
  opacity: 1;
}

.theme-btn[data-theme="theme-cyan"] { background: #00d1ff; }
.theme-btn[data-theme="theme-pink"] { background: #ec39b6; }
.theme-btn[data-theme="theme-purple"] { background: #5014fa; }

/* Conteúdo Principal & Espaçamento Entre Seções */
main.index {
  position: relative;
  z-index: 5;
}

main.index section:not(:first-child) {
  margin: var(--spacer-128) 0;
}

@media (min-width: 800px) {
  main.index section:not(:first-child) {
    margin: var(--spacer-180) 0;
  }
}

/* Bloco 1: Hero */
.home-hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#dragonfly-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.home-hero__title {
  position: absolute;
  left: 0;
  width: 100%;
  height: 201px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  user-select: none;
}

.hero-title-wrap {
  color: var(--theme-contrast);
  font-family: "NON Natural Grotesk", sans-serif;
  font-size: clamp(56px, 12vw, 56px);
  font-weight: 400;
  line-height: 100%;
  letter-spacing: -2.24px;
  text-transform: uppercase;
  position: relative;
}

@media (min-width: 800px) {
  .hero-title-wrap {
    font-size: clamp(130px, max(92.5px + 4.6875vw, min(-20px + 12.5vw, 220px)), 220px);
    letter-spacing: -6.4px;
    line-height: 100%;
  }
}

/* Lente Radial .mask-hover (compartilhada entre Hero e Large Text) */
.mask-hover {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.home-hero__title .char {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-subcopy {
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(74px, 8.2vw, 128px));
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
  padding: 18px 24px 22px;
  text-align: center;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.hero-subcopy::before {
  content: "";
  position: absolute;
  inset: -72px -120px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.6) 42%,
    rgba(0, 0, 0, 0.2) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: blur(18px);
}

.hero-subcopy__headline {
  font-family: "NON Natural Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #f5f5f5;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
  margin: 0;
}

.hero-subcopy__accent {
  color: var(--theme-contrast);
}

.hero-subcopy__lead {
  font-family: "NON Natural Grotesk", sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.45;
  color: #d0d0d0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.92);
  margin: 10px auto 0;
  max-width: 48ch;
}

.home-hero .mask-hover {
  height: 201px;
}

.mask-hover::before {
  content: "";
  position: absolute;
  top: -32px;
  left: -32px;
  width: calc(100% + 64px);
  height: calc(100% + 64px);
  background-color: var(--theme-bg);
  opacity: 0.0001;
}

.mask-hover span {
  display: block;
  white-space: nowrap;
}

.mask-hover .char {
  position: relative;
  display: inline-block;
  contain: layout style;
}

.mask-hover .mask-normal {
  --radius: 320px;
  --x: 50%;
  --y: 50%;
  -webkit-mask-image: radial-gradient(circle var(--radius) at var(--x) var(--y), transparent 0px, #000 50%);
  mask-image: radial-gradient(circle var(--radius) at var(--x) var(--y), transparent 0px, #000 50%);
  -webkit-mask-position: 50% 50%;
  mask-position: 50% 50%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.mask-hover .mask-blur {
  --radius: 200px;
  --x: 50%;
  --y: 50%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  filter: blur(0px);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--radius) at var(--x) var(--y), #000 0px, #000 15%, transparent 70%);
  mask-image: radial-gradient(circle var(--radius) at var(--x) var(--y), #000 0px, #000 15%, transparent 70%);
  -webkit-mask-position: 50% 50%;
  mask-position: 50% 50%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Bloco 2A: Common Info / 01 About / ETHOS */
.common-info {
  align-items: center;
  width: 100%;
}

.common-info__title {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-12);
  grid-column: -1 / 1;
  margin-top: auto;
  user-select: none;
  width: 100%;
}

.common-info__title--line {
  align-items: flex-end;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  gap: var(--spacer-8);
  justify-content: center;
  position: relative;
  text-align: center;
  white-space: nowrap;
  width: 100%;
}

.common-info__title--line.has-label::before {
  bottom: 0;
  color: var(--grey-300);
  content: attr(data-section);
  font-family: "NON Natural Mono", monospace;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  left: 0;
  letter-spacing: 0.4px;
  line-height: 100%;
  position: absolute;
  text-transform: uppercase;
}

.common-info__title span {
  border: 1px solid transparent;
  display: block;
  line-height: 1cap;
}

.common-info__content {
  margin-top: var(--spacer-24);
}

.common-info__content .label {
  color: var(--grey-300);
  line-height: 100%;
  position: relative;
}

.common-info__content .layout-grid .info {
  position: relative;
}

.common-info__content .layout-grid:first-child .info {
  grid-column: -1 / 1;
}

@media (min-width: 800px) {
  .common-info__content .layout-grid:first-child .info {
    grid-column: 1 / 13;
  }
}

.common-info__content .layout-grid:nth-child(2) {
  margin-top: var(--spacer-24);
}

@media (min-width: 800px) {
  .common-info__content .layout-grid:nth-child(2) {
    margin-top: 0;
  }

  .common-info__content .layout-grid:nth-child(2) .label {
    display: flex;
    grid-column: 4 / span 1;
    justify-content: flex-end;
    transform: translateY(clamp(15px, max(15px + 0vw, min(-42px + 3.9583333333vw, 34px)), 34px));
  }
}

.common-info__content .layout-grid:nth-child(2) .info {
  grid-column: -1 / 1;
}

@media (min-width: 800px) {
  .common-info__content .layout-grid:nth-child(2) .info {
    grid-column: 5 / span 11;
  }
}

.common-info__content .word {
  position: relative;
  display: inline-block;
  opacity: 0.24;
}

/* Bloco 2B: Large Text (GLOBAL SINCE DAY 1) */
.home-large-text__content {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  user-select: none;
}

@media (min-width: 800px) {
  .home-large-text__content {
    padding: var(--spacer-88) 0;
  }
}

.home-large-text__content .mask-normal,
.home-large-text__content .mask-blur {
  text-align: center;
}

/* Sem contain:layout — a contenção remove a baseline do inline-block e
   estica cada linha de 183.6px para 210.19px (ref mede 910.38px no bloco). */
.home-large-text__content .char {
  contain: none;
}

/* Espaço de rolagem para o Bloco 3 (#writing) preservar offsetTop = 2617.88px */
.home-writing {
  min-height: 2600px;
}

/* Rodapé Fixo */
.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 12px 0;
  z-index: 50;
  pointer-events: none;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(0deg, transparent, #000);
  backdrop-filter: blur(2px);
  -webkit-mask: linear-gradient(transparent, #000 0 40%, transparent);
  mask: linear-gradient(transparent, #000 0 40%, transparent);
  transform: scaleY(-1);
  z-index: -1;
}

@media (min-width: 800px) {
  .site-footer::before {
    height: 62px;
  }
}

.site-footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.site-footer__content .default {
  overflow: hidden;
  position: relative;
}

.site-footer__content .default span {
  display: block;
  position: relative;
  transition: transform 0.35s var(--ease-in-out-sine), opacity 0.35s var(--ease-in-out-sine);
}

.site-footer__content .default.hovered.letter-l span {
  opacity: 0;
  transform: translateX(-100%);
}

.site-footer__content .default.hovered.letter-y span {
  opacity: 0;
  transform: translateY(100%);
}

.site-footer .footer-dots {
  width: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer .footer-dots svg {
  width: 10px;
  height: auto;
  display: block;
}

.site-footer__overlay {
  position: absolute;
  inset: 0;
  padding-bottom: 12px;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  z-index: 1;
}

.site-footer__overlay--left {
  grid-column: 4 / 5;
  display: flex;
  justify-content: flex-start;
}

.site-footer__overlay--right {
  grid-column: 13 / 14;
  display: flex;
  justify-content: flex-end;
}

/* Barra GUI inferior (oculta parcialmente até o pré-rodapé, idêntico à referência) */
.ui-logo-gui {
  position: fixed;
  left: 50%;
  bottom: 12px;
  width: 374px;
  transform: translate(-50%, 48px);
  transition: transform 0.35s var(--ease-in-out-sine);
  pointer-events: none;
  z-index: 60;
  user-select: none;
}

.ui-logo-gui__main {
  width: 100%;
  height: 40px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background-color: var(--grey-100);
  backdrop-filter: blur(2px);
}

.ui-logo-gui__main > div:first-child { display: flex; justify-content: flex-start; }
.ui-logo-gui__main > div:nth-child(3) { display: flex; justify-content: flex-end; }

/* Cenas 3D secundárias e correção de margem do Pré-rodapé para não cortar atrás do footer fixo */
#lantern canvas,
#dragon canvas,
#blossom canvas,
#tree canvas,
#fish canvas,
#flowers canvas,
#starlogo canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#home-rest .site-pre-footer {
  margin-top: var(--spacer-180);
  margin-bottom: var(--spacer-180);
  padding-bottom: 60px;
}

#home-rest .site-pre-footer__webgl {
  width: 100%;
  height: 444px;
  position: relative;
  overflow: hidden;
}
